mirror of
https://github.com/plexusorg/Plex.git
synced 2024-12-23 01:27:37 +00:00
idk fix it
This commit is contained in:
parent
b939219fc9
commit
271b8a1df4
@ -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"))
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user