Package me.ryun.plugintools
Class PluginInfo
java.lang.Object
me.ryun.plugintools.PluginInfo
The class for easily retrieving the values of plugin.yml from
JavaPlugin- Author:
- SSS Ryun
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe Factory for setting the Plugin Info -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe default return value if the value cannot be found in the plugin.yml -
Method Summary
Modifier and TypeMethodDescriptionstatic PluginInfoget()Get the instance of this class or fail-fast if it's not instantiated beforehandGet the API Version of theJavaPluginaccording to the plugin.ymlGet the Author of theJavaPluginaccording to the plugin.ymlGet the Description of theJavaPluginaccording to the plugin.ymlGet the Main Class of theJavaPluginaccording to the plugin.ymlgetName()Get the Name of theJavaPluginaccording to the plugin.ymlGet the Prefix of theJavaPluginaccording to the plugin.ymlGet the Version of theJavaPluginaccording to the plugin.yml
-
Field Details
-
NO_VALUE_SET
The default return value if the value cannot be found in the plugin.yml- See Also:
-
-
Method Details
-
get
Get the instance of this class or fail-fast if it's not instantiated beforehand- Returns:
- The latest instance of this class
-
getAPIVersion
Get the API Version of theJavaPluginaccording to the plugin.yml- Returns:
- String
-
getAuthor
Get the Author of theJavaPluginaccording to the plugin.yml- Returns:
- String
-
getDescription
Get the Description of theJavaPluginaccording to the plugin.yml- Returns:
- String
-
getMainClass
Get the Main Class of theJavaPluginaccording to the plugin.yml- Returns:
- String
-
getName
Get the Name of theJavaPluginaccording to the plugin.yml- Returns:
- String
-
getPrefix
Get the Prefix of theJavaPluginaccording to the plugin.yml- Returns:
- String
-
getVersion
Get the Version of theJavaPluginaccording to the plugin.yml- Returns:
- String
-