Annotation Interface ZetaPlugin
Optional settings for a
ZetaCorePlugin main class.
Every value has a sensible default, so the annotation is only needed to override them.
@ZetaPlugin(packagePrefix = "com.example.myplugin")
public final class MyPlugin extends ZetaCorePlugin {}
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionintThe bStats plugin id.The namespace for registered commands (e.g.The package to scan for services, commands and listeners.
Defaults to the package of the main class.booleanWhether managed classes must be annotated withService.
Default is true.
-
Element Details
-
packagePrefix
String packagePrefixThe package to scan for services, commands and listeners.
Defaults to the package of the main class.- Default:
""
-
requireServiceAnnotation
boolean requireServiceAnnotationWhether managed classes must be annotated withService.
Default is true.- Default:
true
-
commandNamespace
String commandNamespaceThe namespace for registered commands (e.g. "myplugin" for /myplugin:command).
Defaults to the lowercase plugin name.- Default:
""
-
bstatsId
int bstatsIdThe bStats plugin id. If set, metrics are started automatically andMetricsCustomizers can add charts.
Default is 0 (disabled).- Default:
0
-