Class Spigot

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

public class Spigot extends Object
The Spigot class manages the spigot.yml configuration file.
  • Constructor Details

    • Spigot

      public Spigot(Kryptonite plugin, org.bukkit.command.CommandSender user)
      Constructor for the Spigot class.
      Parameters:
      plugin - Kryptonite - Reference to the main plugin class.
      user - CommandSender - The user who sent the command.
  • Method Details

    • setInt

      public void setInt(Spigot.Key key, int value)
      Sets a requested key to a requested value.
      Parameters:
      key - Key - The requested key.
      value - int - The requested value.
    • getInt

      public int getInt(Spigot.Key key)
      Gets a requested key's value.
      Parameters:
      key - Key - The requested key.
    • setBoolean

      public void setBoolean(Spigot.Key key, boolean value)
      Sets a requested key to a requested value.
      Parameters:
      key - Key - The requested key.
      value - int - The requested value.
    • getBoolean

      public boolean getBoolean(Spigot.Key key)
      Gets a requested key's value.
      Parameters:
      key - Key - The requested key.
    • setString

      public void setString(Spigot.Key key, String value)
      Sets a requested key to a requested value.
      Parameters:
      key - Key - The requested key.
      value - int - The requested value.
    • getObject

      public Object getObject(Spigot.Key key)
      Gets a requested key's value.
      Parameters:
      key - Key - The requested key.