Package com.velocitypowered.api.plugin
Interface PluginDescription
public interface PluginDescription
Represents metadata for a specific version of a plugin.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the authors of thePlugin
within this container.default Collection<PluginDependency>
Gets aCollection
of all dependencies of thePlugin
within this container.default Optional<PluginDependency>
getDependency
(String id) Gets the description of thePlugin
within this container.getId()
Gets the qualified ID of thePlugin
within this container.getName()
Gets the name of thePlugin
within this container.Returns the source the plugin was loaded from.getUrl()
Gets the url or website of thePlugin
within this container.Gets the version of thePlugin
within this container.
-
Field Details
-
ID_PATTERN
The pattern plugin IDs must match. Plugin IDs may only contain alphanumeric characters, dashes or underscores, must start with an alphabetic character and cannot be longer than 64 characters.
-
-
Method Details
-
getId
String getId()Gets the qualified ID of thePlugin
within this container.- Returns:
- the plugin ID
- See Also:
-
getName
Gets the name of thePlugin
within this container.- Returns:
- an
Optional
with the plugin name, may be empty - See Also:
-
getVersion
Gets the version of thePlugin
within this container.- Returns:
- an
Optional
with the plugin version, may be empty - See Also:
-
getDescription
Gets the description of thePlugin
within this container.- Returns:
- an
Optional
with the plugin description, may be empty - See Also:
-
getUrl
Gets the url or website of thePlugin
within this container.- Returns:
- an
Optional
with the plugin url, may be empty - See Also:
-
getAuthors
Gets the authors of thePlugin
within this container.- Returns:
- the plugin authors, may be empty
- See Also:
-
getDependencies
Gets aCollection
of all dependencies of thePlugin
within this container.- Returns:
- the plugin dependencies, can be empty
- See Also:
-
getDependency
-
getSource
Returns the source the plugin was loaded from.- Returns:
- the source the plugin was loaded from or
Optional.empty()
if unknown
-