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,12 +211,9 @@ public class CommandBlocker extends FreedomService
}
// 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))