mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-20 05:21:21 +02:00
If the player is still alive, make sure he dies. (/kill)
This commit is contained in:
@@ -38,6 +38,12 @@ public class Commandkill extends EssentialsCommand
|
||||
}
|
||||
|
||||
matchPlayer.damage(Short.MAX_VALUE);
|
||||
|
||||
if (matchPlayer.getHealth() > 0)
|
||||
{
|
||||
matchPlayer.setHealth(0);
|
||||
}
|
||||
|
||||
sender.sendMessage(_("kill", matchPlayer.getDisplayName()));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user