diff --git a/src/main/java/dev/plex/cmdblocker/CommandBlockerManager.java b/src/main/java/dev/plex/cmdblocker/CommandBlockerManager.java index 833bda8..2bc1ef4 100644 --- a/src/main/java/dev/plex/cmdblocker/CommandBlockerManager.java +++ b/src/main/java/dev/plex/cmdblocker/CommandBlockerManager.java @@ -53,6 +53,7 @@ public class CommandBlockerManager extends PlexBase case "e" -> Rank.IMPOSTOR; case "a" -> Rank.ADMIN; case "s" -> Rank.SENIOR_ADMIN; + default -> Rank.IMPOSTOR; }; if (rawType.equals("r")) diff --git a/src/main/java/dev/plex/listener/impl/CommandListener.java b/src/main/java/dev/plex/listener/impl/CommandListener.java index 0ba5a0a..80f9d1d 100644 --- a/src/main/java/dev/plex/listener/impl/CommandListener.java +++ b/src/main/java/dev/plex/listener/impl/CommandListener.java @@ -41,7 +41,7 @@ public class CommandListener extends PlexListener for (BaseCommand blockedCommand : plugin.getCommandBlockerManager().getBlockedCommands()) { PlexPlayer plexPlayer = DataUtils.getPlayer(player.getUniqueId()); - if (!plexPlayer.getRankFromString().isAtMost(blockedCommand.getRank())) + if (plexPlayer.getRankFromString().isAtLeast(blockedCommand.getRank())) { continue; }