Class PluginInfo

java.lang.Object
me.ryun.plugintools.PluginInfo

public class PluginInfo extends Object
The class for easily retrieving the values of plugin.yml from JavaPlugin
Author:
SSS Ryun
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    The Factory for setting the Plugin Info
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The default return value if the value cannot be found in the plugin.yml
  • Method Summary

    Modifier and Type
    Method
    Description
    static PluginInfo
    get()
    Get the instance of this class or fail-fast if it's not instantiated beforehand
    Get the API Version of the JavaPlugin according to the plugin.yml
    Get the Author of the JavaPlugin according to the plugin.yml
    Get the Description of the JavaPlugin according to the plugin.yml
    Get the Main Class of the JavaPlugin according to the plugin.yml
    Get the Name of the JavaPlugin according to the plugin.yml
    Get the Prefix of the JavaPlugin according to the plugin.yml
    Get the Version of the JavaPlugin according to the plugin.yml

    Methods inherited from class java.lang.Object

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

    • NO_VALUE_SET

      public static final String NO_VALUE_SET
      The default return value if the value cannot be found in the plugin.yml
      See Also:
  • Method Details

    • get

      public static PluginInfo get()
      Get the instance of this class or fail-fast if it's not instantiated beforehand
      Returns:
      The latest instance of this class
    • getAPIVersion

      public String getAPIVersion()
      Get the API Version of the JavaPlugin according to the plugin.yml
      Returns:
      String
    • getAuthor

      public String getAuthor()
      Get the Author of the JavaPlugin according to the plugin.yml
      Returns:
      String
    • getDescription

      public String getDescription()
      Get the Description of the JavaPlugin according to the plugin.yml
      Returns:
      String
    • getMainClass

      public String getMainClass()
      Get the Main Class of the JavaPlugin according to the plugin.yml
      Returns:
      String
    • getName

      public String getName()
      Get the Name of the JavaPlugin according to the plugin.yml
      Returns:
      String
    • getPrefix

      public String getPrefix()
      Get the Prefix of the JavaPlugin according to the plugin.yml
      Returns:
      String
    • getVersion

      public String getVersion()
      Get the Version of the JavaPlugin according to the plugin.yml
      Returns:
      String