Class ConfigurationHelper

java.lang.Object
org.sgrewritten.stargate.config.ConfigurationHelper

public final class ConfigurationHelper extends Object
Contains various methods for getting values of current settings
  • Method Details

    • getInteger

      public static int getInteger(ConfigurationOption configurationOption)
      Gets the integer value of a setting
      Parameters:
      configurationOption -

      The setting to get

      Returns:

      The value of the setting

    • getDouble

      public static double getDouble(ConfigurationOption configurationOption)
      Gets the double value of a setting
      Parameters:
      configurationOption -

      The setting to get

      Returns:

      The value of the setting

    • getString

      public static String getString(ConfigurationOption configurationOption)
      Gets the string value of a setting
      Parameters:
      configurationOption -

      The setting to get

      Returns:

      The value of the setting

    • getBoolean

      public static boolean getBoolean(ConfigurationOption configurationOption)
      Gets the boolean value of a setting
      Parameters:
      configurationOption -

      The setting to get

      Returns:

      The value of the setting

    • getStringList

      @NotNull public static @NotNull List<String> getStringList(ConfigurationOption configurationOption)
      Parameters:
      configurationOption -

      The configuration option to get the data from

      Returns:

      A list of strings from the configuration option