public interface ConfigurationAdapter
Modifier and Type | Method and Description |
---|---|
boolean |
getBoolean(String path,
boolean def)
Gets a boolean from the specified path.
|
Collection<String> |
getGroups(String player)
Get all groups this player is in.
|
int |
getInt(String path,
int def)
Gets an integer from the specified path.
|
Collection<?> |
getList(String path,
Collection<?> def)
Get a list from the specified path.
|
Collection<ListenerInfo> |
getListeners()
Get information about all hosts to bind the proxy to.
|
Collection<String> |
getPermissions(String group)
Get all permission corresponding to the specified group.
|
Map<String,ServerInfo> |
getServers()
Get the configuration all servers which may be accessible via the proxy.
|
String |
getString(String path,
String def)
Gets a string from the specified path.
|
void |
load()
Reload all the possible values, and if necessary cache them for
individual getting.
|
void load()
int getInt(String path, int def)
path
- the path to retrieve the integer fromdef
- the default valueString getString(String path, String def)
path
- the path to retrieve the string from.def
- the default valueboolean getBoolean(String path, boolean def)
path
- the path to retrieve the boolean form.def
- the default valueCollection<?> getList(String path, Collection<?> def)
path
- the path to retrieve the list form.def
- the default valueMap<String,ServerInfo> getServers()
Collection<ListenerInfo> getListeners()
Collection<String> getGroups(String player)
player
- the player to checkCollection<String> getPermissions(String group)
group
- the group to checkCopyright © 2012–2020 SpigotMC. All rights reserved.