summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Ward <chris@chrisgward.com>2013-02-10 01:34:53 -0800
committerChris Ward <chris@chrisgward.com>2013-02-10 01:34:53 -0800
commit40f03295a1c1c1cfd675bd3567d7f3f0be99bd09 (patch)
tree1c6560beda84b5a86bdbd4aeb9ade769bac5c718
parente9bb2df87df98dd4390b37643420ba155c11f8f4 (diff)
parent5fdb10a5bf177d06907956997daec81509cd3c65 (diff)
downloadEssentials-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.java4
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;
}
}