Class endstone::PluginDescription¶
ClassList > endstone > PluginDescription
Represents the basic information about a plugin that the plugin loader needs to know.
#include <endstone/plugin/plugin_description.h>
Public Functions¶
| Type | Name |
|---|---|
| PluginDescription (std::string name, std::string version, std::string description="", PluginLoadOrder load=PluginLoadOrder::PostWorld, std::vector< std::string > authors={}, std::vector< std::string > contributors={}, std::string website="", std::string prefix="", std::vector< std::string > provides={}, std::vector< std::string > depend={}, std::vector< std::string > soft_depend={}, std::vector< std::string > load_before={}, PermissionDefault default_permission=PermissionDefault::Operator, std::vector< Command > commands={}, std::vector< Permission > permissions={}) |
|
| std::string | getAPIVersion () const Gives the API version which this plugin is designed to support. |
| std::vector< std::string > | getAuthors () const Gives the list of authors for the plugin. |
| std::vector< Command > | getCommands () const Gives the list of commands the plugin will register at runtime. |
| std::vector< std::string > | getContributors () const Gives the list of contributors for the plugin. |
| PermissionDefault | getDefaultPermission () const Gives the default value of permissions registered for the plugin. |
| std::vector< std::string > | getDepend () const Gives a list of other plugins that the plugin requires. |
| std::string | getDescription () const Gives a human-friendly description of the functionality the plugin provides. |
| std::string | getFullName () const Returns the name of a plugin, including the version. |
| PluginLoadOrder | getLoad () const Gives the phase of server startup that the plugin should be loaded. |
| std::vector< std::string > | getLoadBefore () const Gets the list of plugins that should consider this plugin a soft-dependency. |
| std::string | getName () const Gives the name of the plugin. |
| std::vector< Permission > | getPermissions () const Gives the list of permissions the plugin will register at runtime, immediately proceeding enabling. |
| std::string | getPrefix () const Gives the token to prefix plugin-specific logging messages with. |
| std::vector< std::string > | getProvides () const Gives the list of other plugin APIs which this plugin provides. |
| std::vector< std::string > | getSoftDepend () const Gives a list of other plugins that the plugin requires for full functionality. |
| std::string | getVersion () const Gives the version of the plugin. |
| std::string | getWebsite () const Gives the plugin's or plugin's author's website. |
Public Functions Documentation¶
function PluginDescription¶
inline endstone::PluginDescription::PluginDescription (
std::string name,
std::string version,
std::string description="",
PluginLoadOrder load=PluginLoadOrder::PostWorld,
std::vector< std::string > authors={},
std::vector< std::string > contributors={},
std::string website="",
std::string prefix="",
std::vector< std::string > provides={},
std::vector< std::string > depend={},
std::vector< std::string > soft_depend={},
std::vector< std::string > load_before={},
PermissionDefault default_permission=PermissionDefault::Operator,
std::vector< Command > commands={},
std::vector< Permission > permissions={}
)
function getAPIVersion¶
Gives the API version which this plugin is designed to support.
Returns:
the API version supported by the plugin
function getAuthors¶
Gives the list of authors for the plugin.
Returns:
an immutable list of the plugin's authors
function getCommands¶
Gives the list of commands the plugin will register at runtime.
Returns:
the commands this plugin will register
function getContributors¶
Gives the list of contributors for the plugin.
Returns:
an immutable list of the plugin's contributions
function getDefaultPermission¶
Gives the default value of permissions registered for the plugin.
Returns:
the default value for the plugin's permissions
function getDepend¶
Gives a list of other plugins that the plugin requires.
Returns:
immutable list of the plugin's dependencies
function getDescription¶
Gives a human-friendly description of the functionality the plugin provides.
Returns:
description of this plugin, or empty if not specified
function getFullName¶
Returns the name of a plugin, including the version.
Returns:
a descriptive name of the plugin and respective version
function getLoad¶
Gives the phase of server startup that the plugin should be loaded.
Returns:
the phase when the plugin should be loaded
function getLoadBefore¶
Gets the list of plugins that should consider this plugin a soft-dependency.
Returns:
immutable list of plugins that should consider this plugin a soft-dependency
function getName¶
Gives the name of the plugin.
This name is a unique identifier for plugins.
Returns:
the name of the plugin
function getPermissions¶
Gives the list of permissions the plugin will register at runtime, immediately proceeding enabling.
Returns:
the permissions this plugin will register
function getPrefix¶
Gives the token to prefix plugin-specific logging messages with.
Returns:
the prefixed logging token, or empty if not specified
function getProvides¶
Gives the list of other plugin APIs which this plugin provides.
These are usable for other plugins to depend on.
Returns:
immutable list of the plugin APIs which this plugin provides
function getSoftDepend¶
Gives a list of other plugins that the plugin requires for full functionality.
Returns:
immutable list of the plugin's preferred dependencies
function getVersion¶
Gives the version of the plugin.
Returns:
the version of the plugin
function getWebsite¶
Gives the plugin's or plugin's author's website.
Returns:
the website of this plugin, or empty if not specified
The documentation for this class was generated from the following file include/endstone/plugin/plugin_description.h