java.lang.Object
com.github.cyberryan1.cybercore.spigot.config.YmlReader
com.github.cyberryan1.cybercore.spigot.config.YmlEditor

public class YmlEditor extends YmlReader
Allows one to read and write data from a YML file.
See Also:
  • Constructor Details

    • YmlEditor

      public YmlEditor(YmlLoader ymlLoader)
      Constructs a new YmlEditor instance using the provided YmlLoader
      Parameters:
      ymlLoader - The YmlLoader to use
    • YmlEditor

      public YmlEditor(YmlLoader ymlLoader, boolean sendPathNotFoundWarns)
      Constructs a new YmlEditor instance using the provided YmlLoader
      Parameters:
      ymlLoader - The YmlLoader to use
      sendPathNotFoundWarns - Whether or not to send warnings when a path is not found
  • Method Details

    • save

      public void save()
      Saves the configuration to the file.
    • set

      public void set(String path, Object value)
      Sets the value of the provided path. To save this, use save()
      Parameters:
      path - The path to set the value of
      value - The value to set the path to