Class PaperWorld

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

public class PaperWorld extends Object
The PaperWorld class manages the paper-world-defaults.yml configuration file.
  • Constructor Details

    • PaperWorld

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

    • setInt

      public void setInt(PaperWorld.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(PaperWorld.Key key)
      Gets a requested key's value.
      Parameters:
      key - Key - The requested key.
    • setBoolean

      public void setBoolean(PaperWorld.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(PaperWorld.Key key)
      Gets a requested key's value.
      Parameters:
      key - Key - The requested key.
    • getObject

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

      public String getString(PaperWorld.Key key)
      Gets a requested key's value.
      Parameters:
      key - Key - The requested key.
    • setString

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