Resolves FS-331

This commit is contained in:
Video 2022-11-13 06:55:17 -07:00 committed by Paul Reilly
parent 75cd1864f6
commit 2fbd7578ab

View File

@ -211,13 +211,10 @@ public class CommandBlocker extends FreedomService
} }
// Validate sub command // Validate sub command
if (entry.getSubCommand() != null) if (entry.getSubCommand() != null && (subCommand == null || !subCommand.startsWith(entry.getSubCommand())))
{
if (subCommand == null || !subCommand.startsWith(entry.getSubCommand()))
{ {
return false; return false;
} }
}
if (entry.getRank().hasPermission(sender)) if (entry.getRank().hasPermission(sender))
{ {