Class WorldConfigurationLoader
java.lang.Object
com.gamersafer.minecraft.auth.paper.onboarding.world.WorldConfigurationLoader
Handles loading and retrieval of onboarding room configuration files.
-
Constructor Summary
ConstructorDescriptionWorldConfigurationLoader
(@NonNull GSAuthPaper plugin) ConstructsWorldConfiguration
. -
Method Summary
Modifier and TypeMethodDescription@NonNull WorldConfiguration
config()
Returns the configuration.void
load()
Loads the configuration and populates all associated values.boolean
loaded()
Returns true if the configuration is loaded.
-
Constructor Details
-
WorldConfigurationLoader
ConstructsWorldConfiguration
.- Parameters:
plugin
- the plugin
-
-
Method Details
-
load
public void load()Loads the configuration and populates all associated values.Must be ran before calling any getter methods.
- See Also:
-
config
Returns the configuration. Will error if no configuration is loaded.- Returns:
- the config
- Throws:
RuntimeException
- ifload()
wasn't called before this
-
loaded
public boolean loaded()Returns true if the configuration is loaded.- Returns:
- true or false
-