Be more specific with the command blocker

This commit is contained in:
2022-05-25 23:10:20 -05:00
parent d785ef31c8
commit 53cd4b1306
3 changed files with 3 additions and 4 deletions

View File

@ -120,7 +120,7 @@ public class Plex extends PlexPlugin implements PlexApiProvider
messages.load();
toggles.load();
// Don't add default entries to indefinite ban file
// Don't add default entries to these files
indefBans.load(false);
commands.load(false);

View File

@ -75,9 +75,8 @@ public class CommandListener extends PlexListener
String[] commandArgs = blockedCommand.getCommand().split(" ");
if (arguments.toLowerCase(Locale.ROOT).startsWith(StringUtils.join(commandArgs, " ", 1, commandArgs.length).toLowerCase(Locale.ROOT)))
{
PlexLog.debug("Player attempted to use a blocked command with an alias.");
PlexLog.debug("Player attempted to use a blocked command with alias of normal command: " + blockedCommand.getCommand());
cmdRef.set(blockedCommand);
return;
}
}
});