diff options
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandkill.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandkill.java b/Essentials/src/com/earth2me/essentials/commands/Commandkill.java index 03afeadc4..0b403ca7d 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandkill.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandkill.java @@ -23,6 +23,10 @@ public class Commandkill extends EssentialsCommand for (Player p : server.matchPlayer(args[0])) { + EntityDamageEvent ede = new EntityDamageEvent(p, EntityDamageEvent.DamageCause.CUSTOM, 1000); + server.getPluginManager().callEvent(ede); + //if (ede.isCancelled()) return; + p.setHealth(0); sender.sendMessage(Util.format("kill", p.getDisplayName())); } |