Made KillCommand set the player health to 0 to allow it to work in Creative. Fixes BUKKIT-2949
This commit is contained in:
parent
f1ac9196bc
commit
0adbd6c959
@ -30,7 +30,7 @@ public class KillCommand extends VanillaCommand {
|
||||
if (ede.isCancelled()) return true;
|
||||
|
||||
ede.getEntity().setLastDamageCause(ede);
|
||||
player.damage(ede.getDamage());
|
||||
player.setHealth(0);
|
||||
sender.sendMessage("Ouch. That look like it hurt.");
|
||||
} else {
|
||||
sender.sendMessage("You can only perform this command as a player");
|
||||
|
Loading…
x
Reference in New Issue
Block a user