Resolves FS-331

This commit is contained in:
Video 2022-11-13 06:55:17 -07:00
parent b1f08c3b7f
commit 22161b2e90

View File

@ -203,13 +203,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))
{ {