diff options
author | Chris Ward <chris@chrisgward.com> | 2013-02-10 01:34:53 -0800 |
---|---|---|
committer | Chris Ward <chris@chrisgward.com> | 2013-02-10 01:34:53 -0800 |
commit | 40f03295a1c1c1cfd675bd3567d7f3f0be99bd09 (patch) | |
tree | 1c6560beda84b5a86bdbd4aeb9ade769bac5c718 | |
parent | e9bb2df87df98dd4390b37643420ba155c11f8f4 (diff) | |
parent | 5fdb10a5bf177d06907956997daec81509cd3c65 (diff) | |
download | Essentials-40f03295a1c1c1cfd675bd3567d7f3f0be99bd09.tar Essentials-40f03295a1c1c1cfd675bd3567d7f3f0be99bd09.tar.gz Essentials-40f03295a1c1c1cfd675bd3567d7f3f0be99bd09.tar.lz Essentials-40f03295a1c1c1cfd675bd3567d7f3f0be99bd09.tar.xz Essentials-40f03295a1c1c1cfd675bd3567d7f3f0be99bd09.zip |
Merge pull request #316 from necrodoom/patch-46
throw exception on banexempt
-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; } } |