mirror of
https://github.com/YouHaveTrouble/CommandWhitelist.git
synced 2026-05-12 06:26:57 +00:00
more permission refactoring
This commit is contained in:
+1
-1
@@ -81,7 +81,7 @@ public final class CommandWhitelistWaterfall extends Plugin {
|
||||
for (Map.Entry<String, CWGroup> s : groups.entrySet()) {
|
||||
if (s.getKey().equalsIgnoreCase("default"))
|
||||
commandList.addAll(s.getValue().getCommands());
|
||||
else if (player.hasPermission("commandwhitelist.group." + s.getKey()))
|
||||
else if (player.hasPermission(s.getValue().getPermission()))
|
||||
commandList.addAll(s.getValue().getCommands());
|
||||
}
|
||||
return commandList;
|
||||
|
||||
Reference in New Issue
Block a user