Class PlanConfig
- java.lang.Object
-
- com.djrapitops.plan.settings.config.ConfigNode
-
- com.djrapitops.plan.settings.config.Config
-
- com.djrapitops.plan.settings.config.PlanConfig
-
@Singleton public class PlanConfig extends Config
Plan configuration file.
-
-
Field Summary
-
Fields inherited from class com.djrapitops.plan.settings.config.ConfigNode
childNodes, comment, key, nodeModificationLock, nodeOrder, parent, value
-
-
Constructor Summary
Constructors Constructor Description PlanConfig(PlanFiles files, WorldAliasSettings worldAliasSettings, net.playeranalytics.plugin.server.PluginLogger logger)
PlanConfig(java.io.File configFile, PlanFiles files, WorldAliasSettings worldAliasSettings, net.playeranalytics.plugin.server.PluginLogger logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
<T> T
get(Setting<T> setting)
ExtensionSettings
getExtensionSettings()
java.nio.file.Path
getJSONExportPath()
<T> T
getOrDefault(Setting<T> setting, T defaultValue)
java.nio.file.Path
getPageExportPath()
ResourceSettings
getResourceSettings()
java.util.TimeZone
getTimeZone()
double
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)
-
Methods inherited from class com.djrapitops.plan.settings.config.Config
getConfigFilePath, read, save
-
Methods inherited from class com.djrapitops.plan.settings.config.ConfigNode
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
-
-
-
-
Constructor Detail
-
PlanConfig
@Inject public PlanConfig(PlanFiles files, WorldAliasSettings worldAliasSettings, net.playeranalytics.plugin.server.PluginLogger logger)
-
PlanConfig
public PlanConfig(java.io.File configFile, PlanFiles files, WorldAliasSettings worldAliasSettings, net.playeranalytics.plugin.server.PluginLogger logger)
-
-
Method Detail
-
get
public <T> T get(Setting<T> setting)
-
getOrDefault
public <T> T getOrDefault(Setting<T> setting, T defaultValue)
-
isTrue
public boolean isTrue(Setting<java.lang.Boolean> setting)
-
isFalse
public boolean isFalse(Setting<java.lang.Boolean> setting)
-
set
public <T> void set(Setting<T> setting, T value)
-
getTimeZone
public java.util.TimeZone getTimeZone()
-
getTimeZoneOffsetHours
public double getTimeZoneOffsetHours()
-
getPageExportPath
public java.nio.file.Path getPageExportPath()
-
getJSONExportPath
public java.nio.file.Path getJSONExportPath()
-
getExtensionSettings
public ExtensionSettings getExtensionSettings()
-
getResourceSettings
public ResourceSettings getResourceSettings()
-
getWorldAliasSettings
public WorldAliasSettings getWorldAliasSettings()
-
-