Class WorldConfigurationLoader
java.lang.Object
com.gamersafer.minecraft.auth.paper.onboarding.world.WorldConfigurationLoader
Handles loading and retrieval of onboarding room configuration files.
-
Constructor Summary
ConstructorsConstructorDescriptionWorldConfigurationLoader(@NonNull GSAuthPaper plugin) ConstructsWorldConfiguration. -
Method Summary
Modifier and TypeMethodDescription@NonNull WorldConfigurationconfig()Returns the configuration.voidload()Loads the configuration and populates all associated values.booleanloaded()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
-