exclamation marks are important

This commit is contained in:
PiggyPiglet
2026-02-03 17:15:46 +08:00
parent 13e492cf44
commit d49c76c560

View File

@@ -128,7 +128,7 @@ public final class PlaceholderCommandRouter implements CommandExecutor, TabCompl
final PlaceholderCommand target = this.commands.get(args[0].toLowerCase(Locale.ROOT));
if (target != null) {
if (target.getPermission() != null && target.getPermission().isEmpty() && !sender.hasPermission(target.getPermission())) {
if (target.getPermission() != null && !target.getPermission().isEmpty() && !sender.hasPermission(target.getPermission())) {
return suggestions;
}