mirror of
https://github.com/RayzsYT/ProAntiTab.git
synced 2026-11-30 20:39:53 -05:00
Fix
This commit is contained in:
1 parent
c94a419c14
commit
99c0d9604a
2 files changed
+2
-2
No files matched your search
@@ -47,7 +47,7 @@ public class BungeeBlockCommandListener implements Listener {
|
||||
|
||||
List<String> cancelCommandMessage = MessageTranslator.replaceMessageList(Storage.ConfigSections.Settings.CANCEL_COMMAND.MESSAGE, "%command%", rawCommand.replaceFirst("/", ""));
|
||||
if(Storage.ConfigSections.Settings.TURN_BLACKLIST_TO_WHITELIST.ENABLED) {
|
||||
if(Storage.Blacklist.isListed(command, true, player.getServer().getInfo().getName())) return;
|
||||
if(Storage.Blacklist.isListed(player, command, true, player.getServer().getInfo().getName())) return;
|
||||
if(Storage.Blacklist.doesGroupBypass(player, command, true, player.getServer().getInfo().getName())) return;
|
||||
if(PermissionUtil.hasBypassPermission(player, command)) return;
|
||||
MessageTranslator.send(player, cancelCommandMessage);
|
||||
|
||||
+1
-1
@@ -48,7 +48,7 @@ public class VelocityBlockCommandListener {
|
||||
List<String> cancelCommandMessage = MessageTranslator.replaceMessageList(Storage.ConfigSections.Settings.CANCEL_COMMAND.MESSAGE, "%command%", command.replaceFirst("/", ""));
|
||||
|
||||
if(Storage.ConfigSections.Settings.TURN_BLACKLIST_TO_WHITELIST.ENABLED) {
|
||||
if(Storage.Blacklist.isListed(command, true, player.getCurrentServer().get().getServerInfo().getName())) return;
|
||||
if(Storage.Blacklist.isListed(player, command, true, player.getCurrentServer().get().getServerInfo().getName())) return;
|
||||
if(Storage.Blacklist.doesGroupBypass(player, command, true, player.getCurrentServer().get().getServerInfo().getName())) return;
|
||||
if(PermissionUtil.hasBypassPermission(player, command)) return;
|
||||
MessageTranslator.send(player, cancelCommandMessage);
|
||||
|
||||
Reference in new issue
Block a user