cleanup code

This commit is contained in:
kforbro
2021-10-26 12:52:40 +03:00
parent d43bde0750
commit cd3d527119
8 changed files with 27 additions and 21 deletions
@@ -10,7 +10,7 @@ public class CWGroup {
public CWGroup(String id, Collection<String> commands, Collection<String> subCommands, String custom_command_denied_message) {
this.id = id;
this.permission = "commandwhitelist.group."+id;
this.permission = "commandwhitelist.group." + id;
this.commands.addAll(commands);
this.custom_command_denied_message = custom_command_denied_message;
this.subCommands.addAll(subCommands);
@@ -24,9 +24,13 @@ public class CWGroup {
return permission;
}
public HashSet<String> getCommands() { return commands; }
public HashSet<String> getCommands() {
return commands;
}
public String getCustomCommandDeniedMessage() { return custom_command_denied_message; }
public String getCustomCommandDeniedMessage() {
return custom_command_denied_message;
}
public void addCommand(String command) {
commands.add(command);
@@ -18,6 +18,7 @@ public enum CWPermission {
/**
* Allows to check specific group permission
*
* @param configCache
* @param groupId
* @return