idk fix it

This commit is contained in:
Telesphoreo 2022-04-08 18:19:06 -05:00
parent b939219fc9
commit 271b8a1df4
2 changed files with 2 additions and 1 deletions

View File

@ -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"))

View File

@ -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;
}