@Singleton public class PlanConfig extends Config
childNodes, comment, key, nodeOrder, parent, value
Constructor and Description |
---|
PlanConfig(java.io.File file,
WorldAliasSettings worldAliasSettings,
com.djrapitops.plugin.logging.console.PluginLogger logger) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
<T> T |
get(Setting<T> setting) |
ConfigNode |
getConfigNode(Setting<ConfigNode> setting) |
int |
getNumber(Setting<java.lang.Integer> setting)
If the settings is a number, this method should be used.
|
<T> T |
getOrDefault(Setting<T> setting,
T defaultValue) |
PluginsConfigSection |
getPluginsConfigSection() |
java.lang.String |
getString(Setting<java.lang.String> setting)
If the settings is a String, this method should be used.
|
java.util.List<java.lang.String> |
getStringList(Setting<java.util.List<java.lang.String>> setting) |
int |
getTimeZoneOffsetHours() |
WorldAliasSettings |
getWorldAliasSettings() |
int |
hashCode() |
boolean |
isFalse(Setting<java.lang.Boolean> setting) |
boolean |
isTrue(Setting<java.lang.Boolean> setting) |
<T> void |
set(Setting<T> setting,
T value) |
addChild, addNode, contains, copyAll, copyMissing, getBoolean, getBoolean, getChildren, getComment, getInteger, getInteger, getKey, getLong, getLong, getNode, getNodeDepth, getNodeOrder, getParent, getString, getString, getStringList, getStringList, getStringMap, isLeafNode, moveChild, remove, removeChild, removeNode, reorder, set, set, setComment, sort, toString, updateParent
@Inject public PlanConfig(@Named(value="configFile") java.io.File file, WorldAliasSettings worldAliasSettings, com.djrapitops.plugin.logging.console.PluginLogger logger)
public int getTimeZoneOffsetHours()
public <T> T get(Setting<T> setting)
public <T> T getOrDefault(Setting<T> setting, T defaultValue)
public boolean isTrue(Setting<java.lang.Boolean> setting)
public boolean isFalse(Setting<java.lang.Boolean> setting)
public java.lang.String getString(Setting<java.lang.String> setting)
public int getNumber(Setting<java.lang.Integer> setting)
public java.util.List<java.lang.String> getStringList(Setting<java.util.List<java.lang.String>> setting)
public ConfigNode getConfigNode(Setting<ConfigNode> setting)
public <T> void set(Setting<T> setting, T value)
public PluginsConfigSection getPluginsConfigSection()
public WorldAliasSettings getWorldAliasSettings()