diff options
author | EvilSeph <evilseph@gmail.com> | 2012-11-15 21:08:19 -0500 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-11-15 22:52:10 -0500 |
commit | 0adbd6c9597403614f7a74be037c1fd310b2f4b7 (patch) | |
tree | b723f8a3a2259614ffb0848160a113f004adb0b0 /src | |
parent | f1ac9196bc63eff451191b8368f650fc795fdd04 (diff) | |
download | bukkit-0adbd6c9597403614f7a74be037c1fd310b2f4b7.tar bukkit-0adbd6c9597403614f7a74be037c1fd310b2f4b7.tar.gz bukkit-0adbd6c9597403614f7a74be037c1fd310b2f4b7.tar.lz bukkit-0adbd6c9597403614f7a74be037c1fd310b2f4b7.tar.xz bukkit-0adbd6c9597403614f7a74be037c1fd310b2f4b7.zip |
Made KillCommand set the player health to 0 to allow it to work in Creative. Fixes BUKKIT-2949
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/command/defaults/KillCommand.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/command/defaults/KillCommand.java b/src/main/java/org/bukkit/command/defaults/KillCommand.java index 84f783f2..90b59816 100644 --- a/src/main/java/org/bukkit/command/defaults/KillCommand.java +++ b/src/main/java/org/bukkit/command/defaults/KillCommand.java @@ -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"); |