mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-01 22:07:10 +00:00
45 lines
880 B
Java
45 lines
880 B
Java
|
package me.totalfreedom.totalfreedommod.permissions;
|
||
|
|
||
|
import java.util.List;
|
||
|
import me.totalfreedom.totalfreedommod.TotalFreedomMod;
|
||
|
|
||
|
|
||
|
public enum PermissionEntry
|
||
|
{
|
||
|
REMOVE("remove"),
|
||
|
OPERATORS("operators"),
|
||
|
MASTER_BUILDERS("master_builders"),
|
||
|
SUPER_ADMINS("super_admins"),
|
||
|
TELNET_ADMINS("telnet_admins"),
|
||
|
SENIOR_ADMINS("senior_admins");
|
||
|
|
||
|
|
||
|
private final String configName;
|
||
|
|
||
|
PermissionEntry(String configName)
|
||
|
{
|
||
|
this.configName = configName;
|
||
|
}
|
||
|
|
||
|
public String getConfigName()
|
||
|
{
|
||
|
return configName;
|
||
|
}
|
||
|
|
||
|
public List<?> getList()
|
||
|
{
|
||
|
return getConfig().getList(this);
|
||
|
}
|
||
|
|
||
|
@SuppressWarnings("unchecked")
|
||
|
public List<String> getEntry()
|
||
|
{
|
||
|
return (List<String>)getList();
|
||
|
}
|
||
|
|
||
|
private PermissionConfig getConfig()
|
||
|
{
|
||
|
return TotalFreedomMod.plugin().permissions;
|
||
|
}
|
||
|
}
|