Class MurmelConfiguration

java.lang.Object
de.murmelmeister.murmelapi.configuration.MurmelMemory
de.murmelmeister.murmelapi.configuration.MurmelConfiguration

public class MurmelConfiguration extends MurmelMemory
MurmelConfiguration is a configuration management class that extends MurmelMemory for handling YAML configuration files. It provides functionality to load and save configurations in a thread-safe manner.
  • Constructor Details

    • MurmelConfiguration

      public MurmelConfiguration()
  • Method Details

    • load

      public void load(File file)
      Loads the configuration data from the specified file.
      Parameters:
      file - the file to load the data from
    • save

      public void save(File file)
      Saves the configuration data to the specified file.
      Parameters:
      file - the file to save the data to
    • loadConfiguration

      public static MurmelConfiguration loadConfiguration(File file)
      Loads the configuration data from the specified file and returns a MurmelConfiguration object.
      Parameters:
      file - the file to load the data from
      Returns:
      a MurmelConfiguration object with the loaded configuration data