Class BasePluginDescription
java.lang.Object
me.github.simonplays15.betterbansystem.api.files.BasePluginDescription
The BasePluginDescription class represents the description of a plugin. It stores
information about the plugin's name, version, main class, commands, and description.
-
Constructor Summary
ConstructorsConstructorDescriptionBasePluginDescription
(@NotNull InputStream stream) Constructs a new instance of the BasePluginDescription class with the given InputStream.BasePluginDescription
(@NotNull Reader reader) Class: BasePluginDescription Represents a plugin description. -
Method Summary
-
Constructor Details
-
BasePluginDescription
public BasePluginDescription(@NotNull @NotNull InputStream stream) throws InvalidDescriptionException Constructs a new instance of the BasePluginDescription class with the given InputStream.- Parameters:
stream
- The InputStream containing the plugin's description data.- Throws:
InvalidDescriptionException
- If the description is invalid.
-
BasePluginDescription
Class: BasePluginDescription Represents a plugin description.- Throws:
InvalidDescriptionException
-
-
Method Details
-
getName
Returns the name of the plugin.- Returns:
- The name of the plugin.
-
getMain
Returns the main class specified in the plugin description.- Returns:
- the main class specified in the plugin description
-
getCommands
Retrieves the commands stored in a map.- Returns:
- A map of commands, where the key is a string representing the command name and the value is another map object containing the command data.
-
getDescription
Retrieves the description of the plugin.- Returns:
- The description of the plugin as a string.
-
getVersion
Retrieves the version of the plugin.- Returns:
- The version of the plugin.
-