13
0
geforkt von Mirrors/Paper

Made KillCommand set the player health to 0 to allow it to work in Creative. Fixes BUKKIT-2949

By: EvilSeph <evilseph@gmail.com>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2012-11-15 21:08:19 -05:00
Ursprung 8cb39a7daf
Commit bf632e042c

Datei anzeigen

@ -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");