Class Bukkit

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

public class Bukkit extends Object
The Bukkit class manages the bukkit.yml configuration file.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    Configuration values supported by this format.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Bukkit(Kryptonite plugin, org.bukkit.command.CommandSender user)
    Constructor for the Bukkit class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Gets a requested key's value.
    void
    setInt(Bukkit.Key key, int value)
    Sets a requested key to a requested value.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Bukkit

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

    • setInt

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