public class PluginConfig
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
addMetadata(java.lang.String key,
java.lang.Object value) |
static PluginConfig |
createConfig(java.lang.String pluginName,
java.lang.String pluginAuthor,
Version version)
Generate a PluginConfig with the following values.
|
static PluginConfig |
createConfig(java.lang.String pluginName,
java.lang.String pluginAuthor,
Version version,
boolean registerEvents)
Generate a PluginConfig with the following values.
|
java.lang.String |
getAuthor() |
java.util.Map<java.lang.String,java.lang.Object> |
getMetadataMap() |
java.lang.String |
getName() |
Version |
getVersion() |
void |
removeMetadata(java.lang.String key) |
void |
setPluginAuthor(java.lang.String authorName) |
void |
setPluginName(java.lang.String pluginName) |
void |
setPluginVersion(Version pluginVersion) |
boolean |
shouldRegisterEvents() |
public static PluginConfig createConfig(java.lang.String pluginName, java.lang.String pluginAuthor, Version version)
pluginName - the name of the pluginpluginAuthor - the plugin's authorversion - the version of the pluginpublic static PluginConfig createConfig(java.lang.String pluginName, java.lang.String pluginAuthor, Version version, boolean registerEvents)
pluginName - the name of the pluginpluginAuthor - the plugin's authorversion - the version of the pluginregisterEvents - whether event listeners should be looked for, and registeredpublic final void setPluginName(java.lang.String pluginName)
throws InvalidPluginException
pluginName - the nameInvalidPluginException - if pluginName is null, or if it contains any non-alphanumeric characters, or if length < 3 || > 64public final void setPluginAuthor(java.lang.String authorName)
throws InvalidPluginException
authorName - the author nameInvalidPluginException - if authorName is null, or if it contains any non-alphanumeric characters, or if length < 3 || > 64public final void setPluginVersion(Version pluginVersion) throws InvalidPluginException
pluginVersion - the VersionInvalidPluginException - if the given Version is nullpublic final java.lang.String getName()
public final java.lang.String getAuthor()
public final boolean shouldRegisterEvents()
public Version getVersion()
public void addMetadata(java.lang.String key,
java.lang.Object value)
public void removeMetadata(java.lang.String key)
public java.util.Map<java.lang.String,java.lang.Object> getMetadataMap()