diff options
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandban.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandban.java b/Essentials/src/com/earth2me/essentials/commands/Commandban.java index b0f15e695..3523499fe 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandban.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandban.java @@ -41,7 +41,7 @@ public class Commandban extends EssentialsCommand if (sender instanceof Player && !ess.getUser(sender).isAuthorized("essentials.ban.offline")) { - sender.sendMessage(_("banExempt")); + throw new Exception(_("banExempt")); return; } } @@ -49,7 +49,7 @@ public class Commandban extends EssentialsCommand { if (user.isAuthorized("essentials.ban.exempt") && sender instanceof Player) { - sender.sendMessage(_("banExempt")); + throw new Exception(_("banExempt")); return; } } |