summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNecrodoom <doomed.war@gmail.com>2013-02-10 11:04:55 +0200
committerNecrodoom <doomed.war@gmail.com>2013-02-10 11:04:55 +0200
commit5fdb10a5bf177d06907956997daec81509cd3c65 (patch)
tree1c6560beda84b5a86bdbd4aeb9ade769bac5c718
parente9bb2df87df98dd4390b37643420ba155c11f8f4 (diff)
downloadEssentials-5fdb10a5bf177d06907956997daec81509cd3c65.tar
Essentials-5fdb10a5bf177d06907956997daec81509cd3c65.tar.gz
Essentials-5fdb10a5bf177d06907956997daec81509cd3c65.tar.lz
Essentials-5fdb10a5bf177d06907956997daec81509cd3c65.tar.xz
Essentials-5fdb10a5bf177d06907956997daec81509cd3c65.zip
throw exception on banexempt
match rest of moderator commands
-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;
}
}