Class YamlConfiguration

All Implemented Interfaces:
AbstractYamlConfiguration, ConfigurationMethods<ConfigurationSection>, ConfigurationSection

public class YamlConfiguration extends MemorySection implements AbstractYamlConfiguration
  • Constructor Details

    • YamlConfiguration

      public YamlConfiguration(org.yaml.snakeyaml.nodes.MappingNode node, File configFile)
  • Method Details

    • save

      public boolean save()
      Saves the config to the file
      Specified by:
      save in interface AbstractYamlConfiguration
      Returns:
      true IFF the config was saved successfully (can be skipped if the config is not changed)
    • save

      public boolean save(boolean force)
      Saves the config to the file
      Specified by:
      save in interface AbstractYamlConfiguration
      Parameters:
      force - If the config should be saved even if no changes were made
      Returns:
      IFF the config was saved (can be skipped if no changes were made and force is false)