Annotation Interface Plugin
Annotation to mark a class as a Numdrassl plugin.
Example usage:
@Plugin(
id = "my-plugin",
name = "My Plugin",
version = "1.0.0",
authors = {"Author1", "Author2"},
description = "A sample plugin for Numdrassl"
)
public class MyPlugin {
@Inject
private ProxyServer proxy;
@Subscribe
public void onProxyInit(ProxyInitializeEvent event) {
// Plugin initialization
}
}
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional Elements
-
Element Details
-
id
String idThe unique ID of this plugin. Should be lowercase and may contain alphanumeric characters, dashes, and underscores.- Returns:
- the plugin ID
-
name
String nameThe display name of this plugin. Defaults to the ID if not specified.- Returns:
- the plugin name
- Default:
""
-
version
-
description
-
authors
-
dependencies
String[] dependenciesThe dependencies of this plugin.- Returns:
- an array of plugin IDs this plugin depends on
- Default:
{}
-
softDependencies
String[] softDependenciesThe optional dependencies of this plugin.- Returns:
- an array of plugin IDs this plugin optionally depends on
- Default:
{}
-