Interface MutableConfig

All Known Implementing Classes:
ScriptConfig

public sealed interface MutableConfig permits ScriptConfig
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addProperty(String name, String value)
    Adds a key value pair of strings to the configuration
    void
    Loads the properties from the local configs folder.
    void
    Removes a key from the configuration
  • Method Details

    • load

      void load()
      Loads the properties from the local configs folder.
    • addProperty

      void addProperty(String name, String value)
      Adds a key value pair of strings to the configuration
      Parameters:
      name - The name of the property
      value - The value of the property
      Example:
                                 
                                  ScriptConfiguration config = ...;
                                  config.addProperty("my_property", "the_value");
                                 
                                 
    • removeProperty

      void removeProperty(String name)
      Removes a key from the configuration
      Parameters:
      name - The name of the property
      Example:
                               
                                ScriptConfiguration config = ...;
                                config.removeProperty("my_property");