mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 22:16:22 +00:00
Add ChannelSettings, allow commands to be disabled
This commit is contained in:
1 parent
349fa385e8
commit
addef98b8e
20 files changed
+255
-159
No files matched your search
@@ -0,0 +1,32 @@
|
||||
package net.draycia.carbon.storage;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class CommandSettings {
|
||||
|
||||
private boolean enabled;
|
||||
private String name;
|
||||
private List<String> aliases;
|
||||
|
||||
public CommandSettings(boolean enabled, String name, List<String> aliases) {
|
||||
this.enabled = enabled;
|
||||
this.name = name;
|
||||
this.aliases = aliases;
|
||||
}
|
||||
|
||||
public String[] getAliasesArray() {
|
||||
return aliases.toArray(new String[0]);
|
||||
}
|
||||
|
||||
public List<String> getAliases() {
|
||||
return aliases;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public boolean isEnabled() {
|
||||
return enabled;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user