Package net.lewmc.kryptonite.kos.config
Class Purpur
java.lang.Object
net.lewmc.kryptonite.kos.config.Purpur
The Purpur class manages the purpur.yml configuration file.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Configuration values supported by this format. -
Constructor Summary
ConstructorsConstructorDescriptionPurpur
(Kryptonite plugin, org.bukkit.command.CommandSender user) Constructor for the Purpur class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getBoolean
(Purpur.Key key) Gets a requested key's value.int
getInt
(Purpur.Key key) Gets a requested key's value.void
setBoolean
(Purpur.Key key, boolean value) Sets a requested key to a requested value.void
setInt
(Purpur.Key key, int value) Sets a requested key to a requested value.void
setString
(Purpur.Key key, String value) Sets a requested key to a requested value.
-
Constructor Details
-
Purpur
Constructor for the Purpur 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.
-