mirror of
https://github.com/YouHaveTrouble/CommandWhitelist.git
synced 2026-05-11 22:16:57 +00:00
cleanup code
This commit is contained in:
+7
-3
@@ -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);
|
||||
|
||||
+1
@@ -18,6 +18,7 @@ public enum CWPermission {
|
||||
|
||||
/**
|
||||
* Allows to check specific group permission
|
||||
*
|
||||
* @param configCache
|
||||
* @param groupId
|
||||
* @return
|
||||
|
||||
Reference in New Issue
Block a user