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 enumConfiguration values supported by this format. -
Constructor Summary
ConstructorsConstructorDescriptionSpigot(Kryptonite plugin, org.bukkit.command.CommandSender user) Constructor for the Spigot class. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetBoolean(Spigot.Key key) Gets a requested key's value.intgetInt(Spigot.Key key) Gets a requested key's value.getObject(Spigot.Key key) Gets a requested key's value.voidsetBoolean(Spigot.Key key, boolean value) Sets a requested key to a requested value.voidsetInt(Spigot.Key key, int value) Sets a requested key to a requested value.voidsetString(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.
-