mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-18 00:25:32 +01:00
Merge pull request #316 from necrodoom/patch-46
throw exception on banexempt
This commit is contained in:
commit
40f03295a1
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user