1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-25 15:41:21 +02:00

Console should be able to kick everyone.

This commit is contained in:
KHobbits
2012-04-07 03:07:07 +01:00
parent 1c28990221
commit ae06bc80c6

View File

@@ -24,7 +24,7 @@ public class Commandkick extends EssentialsCommand
} }
final User user = getPlayer(server, args, 0); final User user = getPlayer(server, args, 0);
if (user.isAuthorized("essentials.kick.exempt")) if (sender instanceof Player && user.isAuthorized("essentials.kick.exempt"))
{ {
throw new Exception(_("kickExempt")); throw new Exception(_("kickExempt"));
} }