Package net.lewmc.kryptonite.kos.config
Class Pufferfish
java.lang.Object
net.lewmc.kryptonite.kos.config.Pufferfish
The Pufferfish class manages the pufferfish.yml configuration file.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumConfiguration values supported by this format. -
Constructor Summary
ConstructorsConstructorDescriptionPufferfish(Kryptonite plugin, org.bukkit.command.CommandSender user) Constructor for the Pufferfish class. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetBoolean(Pufferfish.Key key) Gets a requested key's value.intgetInt(Pufferfish.Key key) Gets a requested key's value.voidsetBoolean(Pufferfish.Key key, boolean value) Sets a requested key to a requested value.voidsetInt(Pufferfish.Key key, int value) Sets a requested key to a requested value.voidsetString(Pufferfish.Key key, String value) Sets a requested key to a requested value.
-
Constructor Details
-
Pufferfish
Constructor for the Pufferfish 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.
-