This commit is contained in:
RayzsYT committed 2024-06-02 03:34:53 +02:00
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);
@@ -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);