mirror of
https://github.com/RayzsYT/ProAntiTab.git
synced 2026-11-30 20:39:53 -05:00
Fix Logic Error
This commit is contained in:
1 parent
b646d1ca2e
commit
d8efaff9b0
2 files changed
+2
-2
No files matched your search
@@ -47,8 +47,8 @@ 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(player, command, true, player.getServer().getInfo().getName())) return;
|
||||
if(Storage.Blacklist.doesGroupBypass(player, command, true, player.getServer().getInfo().getName())) return;
|
||||
if(Storage.Blacklist.isListed(player, command, true, player.getServer().getInfo().getName())) return;
|
||||
if(PermissionUtil.hasBypassPermission(player, command)) return;
|
||||
MessageTranslator.send(player, cancelCommandMessage);
|
||||
event.setCancelled(true);
|
||||
|
||||
+1
-1
@@ -48,8 +48,8 @@ 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(player, command, true, player.getCurrentServer().get().getServerInfo().getName())) return;
|
||||
if(Storage.Blacklist.doesGroupBypass(player, command, true, player.getCurrentServer().get().getServerInfo().getName())) return;
|
||||
if(Storage.Blacklist.isListed(player, command, true, player.getCurrentServer().get().getServerInfo().getName())) return;
|
||||
if(PermissionUtil.hasBypassPermission(player, command)) return;
|
||||
MessageTranslator.send(player, cancelCommandMessage);
|
||||
event.setResult(CommandExecuteEvent.CommandResult.denied());
|
||||
|
||||
Reference in new issue
Block a user