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 enum
Configuration values supported by this format. -
Constructor Summary
ConstructorsConstructorDescriptionPufferfish
(Kryptonite plugin, org.bukkit.command.CommandSender user) Constructor for the Pufferfish class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getBoolean
(Pufferfish.Key key) Gets a requested key's value.int
getInt
(Pufferfish.Key key) Gets a requested key's value.void
setBoolean
(Pufferfish.Key key, boolean value) Sets a requested key to a requested value.void
setInt
(Pufferfish.Key key, int value) Sets a requested key to a requested value.void
setString
(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.
-