Class ConfigPuller

java.lang.Object
ActiverseEngine.ConfigPuller

public class ConfigPuller extends Object
ConfigPuller - Utility for loading configuration from Activerse.properties Provides centralized configuration management for ActiverseEngine applications
Version:
1.4.1
Author:
Knivier
  • Constructor Details

    • ConfigPuller

      public ConfigPuller()
  • Method Details

    • getString

      public static String getString(String key, String defaultValue)
      Gets a string property value
      Parameters:
      key - Property key
      defaultValue - Default value if property not found
      Returns:
      Property value or default
    • getInt

      public static int getInt(String key, int defaultValue)
      Gets an integer property value
      Parameters:
      key - Property key
      defaultValue - Default value if property not found or invalid
      Returns:
      Property value or default
    • getBoolean

      public static boolean getBoolean(String key, boolean defaultValue)
      Gets a boolean property value
      Parameters:
      key - Property key
      defaultValue - Default value if property not found
      Returns:
      Property value or default
    • getDouble

      public static double getDouble(String key, double defaultValue)
      Gets a double property value
      Parameters:
      key - Property key
      defaultValue - Default value if property not found or invalid
      Returns:
      Property value or default
    • reload

      public static void reload()
      Reloads the properties file from disk