Class ServerProperties

java.lang.Object
net.lewmc.kryptonite.kos.config.ServerProperties

public class ServerProperties extends Object
The ServerProperties class manages the server.properties configuration file.
  • Constructor Details

    • ServerProperties

      public ServerProperties(Kryptonite plugin)
      Constructor for the ServerProperties class.
      Parameters:
      plugin - Kryptonite - Reference to the main plugin class.
  • Method Details

    • set

      public void set(ServerProperties.Key key, String value)
      Sets a value.
      Parameters:
      key - Config - A valid configuration key.
      value - String - The value to set.
    • getString

      public String getString(ServerProperties.Key key)
      Retrieves a string from the configuration.
      Parameters:
      key - Config - A valid configuration key.
      Returns:
      String - The value.
    • getInt

      public int getInt(ServerProperties.Key key)
      Retrieves an integer from the configuration.
      Parameters:
      key - Config - A valid configuration key.
      Returns:
      int - The value.