diff options
author | KHobbits <rob@khobbits.co.uk> | 2012-10-20 19:24:33 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2012-10-20 19:24:33 +0100 |
commit | 411a4cc7ee09ae19da93b45cd9cd51c83d98900f (patch) | |
tree | ea2dd6e184fcfe9d7c9949d342f65ea4602d900d | |
parent | 5d42895173c3985a11c906ca8caa423f652bac4a (diff) | |
download | Essentials-411a4cc7ee09ae19da93b45cd9cd51c83d98900f.tar Essentials-411a4cc7ee09ae19da93b45cd9cd51c83d98900f.tar.gz Essentials-411a4cc7ee09ae19da93b45cd9cd51c83d98900f.tar.lz Essentials-411a4cc7ee09ae19da93b45cd9cd51c83d98900f.tar.xz Essentials-411a4cc7ee09ae19da93b45cd9cd51c83d98900f.zip |
Fix perm check in /kill
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandkill.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandkill.java b/Essentials/src/com/earth2me/essentials/commands/Commandkill.java index 306bfd58e..a83b0d490 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandkill.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandkill.java @@ -32,7 +32,7 @@ public class Commandkill extends EssentialsCommand { final EntityDamageEvent ede = new EntityDamageEvent(matchPlayer, sender instanceof Player && ((Player)sender).getName().equals(matchPlayer.getName()) ? EntityDamageEvent.DamageCause.SUICIDE : EntityDamageEvent.DamageCause.CUSTOM, Short.MAX_VALUE); server.getPluginManager().callEvent(ede); - if (ede.isCancelled() && !sender.hasPermission("essentials.kill.force")) + if (ede.isCancelled() && sender instanceof Player && !ess.getUser(sender).isAuthorized("essentials.kill.force")) { continue; } |