Class ConfigValue

java.lang.Object
wtf.nucker.kitpvpplus.api.objects.ConfigValue

public class ConfigValue extends Object
  • Constructor Details

    • ConfigValue

      public ConfigValue(org.bukkit.configuration.file.FileConfiguration config, String path)
      Used for initiating instance of ConfigValueClass
      Parameters:
      config - The file config that the value is in
      path - the path to the value
  • Method Details

    • getAsObject

      public Object getAsObject()
      Returns:
      the value as an object
    • getAsString

      public String getAsString()
      Returns:
      the value as an string
    • getAsInt

      public int getAsInt()
      Returns:
      the value as an integer
    • getAsBool

      public boolean getAsBool()
      Returns:
      the value as a boolean
    • getAsStringList

      public List<String> getAsStringList()
      Returns:
      the value as a string list
    • getAsDouble

      public double getAsDouble()
      Returns:
      the value as a double
    • getAs

      public Object getAs(Class def)
      Parameters:
      def - the class def you want to be returned
      Returns:
      the value as specified object