Package net.lewmc.kryptonite.kos.config
Class ServerProperties
java.lang.Object
net.lewmc.kryptonite.kos.config.ServerProperties
The ServerProperties class manages the server.properties configuration file.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Configuration values supported by this format. -
Constructor Summary
ConstructorsConstructorDescriptionServerProperties
(Kryptonite plugin) Constructor for the ServerProperties class. -
Method Summary
Modifier and TypeMethodDescriptionint
Retrieves an integer from the configuration.Retrieves a string from the configuration.void
set
(ServerProperties.Key key, String value) Sets a value.
-
Constructor Details
-
ServerProperties
Constructor for the ServerProperties class.- Parameters:
plugin
- Kryptonite - Reference to the main plugin class.
-
-
Method Details
-
set
Sets a value.- Parameters:
key
- Config - A valid configuration key.value
- String - The value to set.
-
getString
Retrieves a string from the configuration.- Parameters:
key
- Config - A valid configuration key.- Returns:
- String - The value.
-
getInt
Retrieves an integer from the configuration.- Parameters:
key
- Config - A valid configuration key.- Returns:
- int - The value.
-