mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-04 19:46:27 +00:00
throw exception on banexempt
match rest of moderator commands
This commit is contained in:
parent
e9bb2df87d
commit
5fdb10a5bf
1 changed files with 2 additions and 2 deletions
|
@ -41,7 +41,7 @@ public class Commandban extends EssentialsCommand
|
||||||
if (sender instanceof Player
|
if (sender instanceof Player
|
||||||
&& !ess.getUser(sender).isAuthorized("essentials.ban.offline"))
|
&& !ess.getUser(sender).isAuthorized("essentials.ban.offline"))
|
||||||
{
|
{
|
||||||
sender.sendMessage(_("banExempt"));
|
throw new Exception(_("banExempt"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -49,7 +49,7 @@ public class Commandban extends EssentialsCommand
|
||||||
{
|
{
|
||||||
if (user.isAuthorized("essentials.ban.exempt") && sender instanceof Player)
|
if (user.isAuthorized("essentials.ban.exempt") && sender instanceof Player)
|
||||||
{
|
{
|
||||||
sender.sendMessage(_("banExempt"));
|
throw new Exception(_("banExempt"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue