Package | Description |
---|---|
net.glowstone.util.config |
Modifier and Type | Method and Description |
---|---|
static ServerConfig.Key |
ServerConfig.Key.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ServerConfig.Key[] |
ServerConfig.Key.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
boolean |
ServerConfig.getBoolean(ServerConfig.Key key) |
org.bukkit.configuration.ConfigurationSection |
ServerConfig.getConfigFile(ServerConfig.Key key)
Returns the file that contains a given setting.
|
int |
ServerConfig.getInt(ServerConfig.Key key) |
List<Map<?,?>> |
ServerConfig.getMapList(ServerConfig.Key key)
Retrieves a section as a list of maps.
|
String |
ServerConfig.getString(ServerConfig.Key key) |
void |
ServerConfig.set(ServerConfig.Key key,
Object value)
Change a configuration value at runtime.
|
Constructor and Description |
---|
ServerConfig(File directory,
File configFile,
Map<ServerConfig.Key,Object> parameters)
Initialize a new ServerConfig and associated settings.
|
Copyright © 2021. All rights reserved.