Package net.lewmc.kryptonite.kos.config
Class Spigot
java.lang.Object
net.lewmc.kryptonite.kos.config.Spigot
The Spigot class manages the spigot.yml configuration file.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Configuration values supported by this format. -
Constructor Summary
ConstructorsConstructorDescriptionSpigot
(Kryptonite plugin, org.bukkit.command.CommandSender user) Constructor for the Spigot class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getBoolean
(Spigot.Key key) Gets a requested key's value.int
getInt
(Spigot.Key key) Gets a requested key's value.getObject
(Spigot.Key key) Gets a requested key's value.void
setBoolean
(Spigot.Key key, boolean value) Sets a requested key to a requested value.void
setInt
(Spigot.Key key, int value) Sets a requested key to a requested value.void
setString
(Spigot.Key key, String value) Sets a requested key to a requested value.
-
Constructor Details
-
Spigot
Constructor for the Spigot class.- Parameters:
plugin
- Kryptonite - Reference to the main plugin class.user
- CommandSender - The user who sent the command.
-
-
Method Details
-
setInt
Sets a requested key to a requested value.- Parameters:
key
- Key - The requested key.value
- int - The requested value.
-
getInt
Gets a requested key's value.- Parameters:
key
- Key - The requested key.
-
setBoolean
Sets a requested key to a requested value.- Parameters:
key
- Key - The requested key.value
- int - The requested value.
-
getBoolean
Gets a requested key's value.- Parameters:
key
- Key - The requested key.
-
setString
Sets a requested key to a requested value.- Parameters:
key
- Key - The requested key.value
- int - The requested value.
-
getObject
Gets a requested key's value.- Parameters:
key
- Key - The requested key.
-