Interface ModuleSettings


@Deprecated public interface ModuleSettings
Deprecated.
Use ModuleConfigAPI instead for better flexibility
Provides access to module-specific settings from settings.yml

This interface allows game modules to read configuration values from their settings.yml file using dot-notation paths. Supports common data types and provides default value overloads for safe configuration reading.

  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Deprecated.
    Checks if a configuration path exists.
    boolean
    Deprecated.
    Gets a boolean value from the configuration.
    boolean
    getBoolean(String path, boolean def)
    Deprecated.
    Gets a boolean value with a default fallback.
    double
    Deprecated.
    Gets a double value from the configuration.
    double
    getDouble(String path, double def)
    Deprecated.
    Gets a double value with a default fallback.
    int
    getInt(String path)
    Deprecated.
    Gets an integer value from the configuration.
    int
    getInt(String path, int def)
    Deprecated.
    Gets an integer value with a default fallback.
    Deprecated.
    Gets a string value from the configuration.
    getString(String path, String def)
    Deprecated.
    Gets a string value with a default fallback.
    Deprecated.
    Gets a list of strings from the configuration.
  • Method Details

    • getString

      String getString(String path)
      Deprecated.
      Gets a string value from the configuration.
      Parameters:
      path - the dot-notation path to the value
      Returns:
      the string value, or null if not found
    • getString

      String getString(String path, String def)
      Deprecated.
      Gets a string value with a default fallback.
      Parameters:
      path - the dot-notation path to the value
      def - the default value if path not found
      Returns:
      the string value, or the default if not found
    • getInt

      int getInt(String path)
      Deprecated.
      Gets an integer value from the configuration.
      Parameters:
      path - the dot-notation path to the value
      Returns:
      the integer value, or 0 if not found
    • getInt

      int getInt(String path, int def)
      Deprecated.
      Gets an integer value with a default fallback.
      Parameters:
      path - the dot-notation path to the value
      def - the default value if path not found
      Returns:
      the integer value, or the default if not found
    • getDouble

      double getDouble(String path)
      Deprecated.
      Gets a double value from the configuration.
      Parameters:
      path - the dot-notation path to the value
      Returns:
      the double value, or 0.0 if not found
    • getDouble

      double getDouble(String path, double def)
      Deprecated.
      Gets a double value with a default fallback.
      Parameters:
      path - the dot-notation path to the value
      def - the default value if path not found
      Returns:
      the double value, or the default if not found
    • getBoolean

      boolean getBoolean(String path)
      Deprecated.
      Gets a boolean value from the configuration.
      Parameters:
      path - the dot-notation path to the value
      Returns:
      the boolean value, or false if not found
    • getBoolean

      boolean getBoolean(String path, boolean def)
      Deprecated.
      Gets a boolean value with a default fallback.
      Parameters:
      path - the dot-notation path to the value
      def - the default value if path not found
      Returns:
      the boolean value, or the default if not found
    • getStringList

      List<String> getStringList(String path)
      Deprecated.
      Gets a list of strings from the configuration.
      Parameters:
      path - the dot-notation path to the list
      Returns:
      the string list, or an empty list if not found
    • contains

      boolean contains(String path)
      Deprecated.
      Checks if a configuration path exists.
      Parameters:
      path - the dot-notation path to check
      Returns:
      true if the path exists, false otherwise