If the player is still alive, make sure he dies. (/kill)

This commit is contained in:
KHobbits 2012-10-20 19:10:51 +01:00
parent 8ba7a24fd2
commit 600f99eb6b

View file

@ -38,6 +38,12 @@ public class Commandkill extends EssentialsCommand
} }
matchPlayer.damage(Short.MAX_VALUE); matchPlayer.damage(Short.MAX_VALUE);
if (matchPlayer.getHealth() > 0)
{
matchPlayer.setHealth(0);
}
sender.sendMessage(_("kill", matchPlayer.getDisplayName())); sender.sendMessage(_("kill", matchPlayer.getDisplayName()));
} }
} }