From 5fdb10a5bf177d06907956997daec81509cd3c65 Mon Sep 17 00:00:00 2001 From: Necrodoom Date: Sun, 10 Feb 2013 11:04:55 +0200 Subject: throw exception on banexempt match rest of moderator commands --- Essentials/src/com/earth2me/essentials/commands/Commandban.java | 4 ++-- 1 file 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; } } -- cgit v1.2.3