public class GlobalSettings
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DISABLED_SERVICES |
static java.lang.String |
MAX_AGE_IN_HISTORY_SETTING |
static java.lang.String |
MAX_BLOCKS_IN_HISTORY_SETTING |
static java.lang.String |
PRESET_CACHE_TIMEOUT_SETTING |
static java.lang.String |
USE_METRICS |
static java.lang.String |
USE_PERMISSIONS |
Constructor and Description |
---|
GlobalSettings(Debugger debugger) |
Modifier and Type | Method and Description |
---|---|
org.bukkit.configuration.file.FileConfiguration |
getConfiguration()
Retrieves the current updated configuration file.
|
org.bukkit.configuration.file.FileConfiguration |
getConfiguration(boolean updated)
Retrieves the current configuration file.
|
java.util.List<java.lang.String> |
getDisabledServices() |
int |
getMaxAgeInHistory() |
int |
getMaxBlocksInHistory() |
int |
getPresetCacheTimeout()
Retrieves the number of seconds a player's preset configuration is cached.
|
boolean |
isUseMetrics() |
boolean |
isUsePermissions() |
void |
loadFromConfig(org.bukkit.configuration.file.FileConfiguration config)
Initialize configuration from a configuration section.
|
void |
setDisabledServices(java.util.List<java.lang.String> disabledServices) |
void |
setMaxAgeInHistory(int maxAgeInHistory) |
void |
setMaxBlocksInHistory(int maxBlocksInHistory) |
void |
setPresetCacheTimeout(int presetCacheTimeout)
Sets the number of seconds a player's preset configuration is cached
|
void |
setUseMetrics(boolean useMetrics) |
void |
setUsePermissions(boolean usePermissions) |
public static final java.lang.String MAX_BLOCKS_IN_HISTORY_SETTING
public static final java.lang.String MAX_AGE_IN_HISTORY_SETTING
public static final java.lang.String PRESET_CACHE_TIMEOUT_SETTING
public static final java.lang.String USE_PERMISSIONS
public static final java.lang.String USE_METRICS
public static final java.lang.String DISABLED_SERVICES
public GlobalSettings(Debugger debugger)
public void loadFromConfig(org.bukkit.configuration.file.FileConfiguration config)
config
- - configuration section to load from.public org.bukkit.configuration.file.FileConfiguration getConfiguration()
public org.bukkit.configuration.file.FileConfiguration getConfiguration(boolean updated)
updated
- - whether or not it needs to be updated with the current values.public boolean isUseMetrics()
public void setUseMetrics(boolean useMetrics)
public int getPresetCacheTimeout()
public void setPresetCacheTimeout(int presetCacheTimeout)
presetCacheTimeout
- - new cache timeout in seconds.public int getMaxBlocksInHistory()
public void setMaxBlocksInHistory(int maxBlocksInHistory)
public int getMaxAgeInHistory()
public void setMaxAgeInHistory(int maxAgeInHistory)
public boolean isUsePermissions()
public void setUsePermissions(boolean usePermissions)
public java.util.List<java.lang.String> getDisabledServices()
public void setDisabledServices(java.util.List<java.lang.String> disabledServices)