the permission was flipped all those years...

This commit is contained in:
2024-07-14 14:19:55 +02:00
parent 1872ea87d7
commit e3c6103ec7
3 changed files with 5 additions and 4 deletions
@@ -100,7 +100,7 @@ public final class CommandWhitelistWaterfall extends Plugin {
for (Map.Entry<String, CWGroup> s : groups.entrySet()) {
if (s.getKey().equalsIgnoreCase("default"))
suggestionList.addAll(s.getValue().getSubCommands());
if (player.hasPermission(s.getValue().getPermission())) continue;
if (!player.hasPermission(s.getValue().getPermission())) continue;
suggestionList.addAll(s.getValue().getSubCommands());
}
return suggestionList;