Class WorldConfigurationLoader

java.lang.Object
com.gamersafer.minecraft.auth.paper.onboarding.world.WorldConfigurationLoader

public class WorldConfigurationLoader extends Object
Handles loading and retrieval of onboarding room configuration files.
  • Constructor Details

    • WorldConfigurationLoader

      public WorldConfigurationLoader(@NonNull GSAuthPaper plugin)
      Constructs WorldConfiguration.
      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

      public @NonNull WorldConfiguration config()
      Returns the configuration. Will error if no configuration is loaded.
      Returns:
      the config
      Throws:
      RuntimeException - if load() wasn't called before this
    • loaded

      public boolean loaded()
      Returns true if the configuration is loaded.
      Returns:
      true or false