Annotation Interface ZetaPlugin


@Target(TYPE) @Retention(RUNTIME) public @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 Elements
    Modifier and Type
    Optional Element
    Description
    int
    The 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.
    boolean
    Whether managed classes must be annotated with Service.
    Default is true.
  • Element Details

    • packagePrefix

      String packagePrefix
      The package to scan for services, commands and listeners.
      Defaults to the package of the main class.
      Default:
      ""
    • requireServiceAnnotation

      boolean requireServiceAnnotation
      Whether managed classes must be annotated with Service.
      Default is true.
      Default:
      true
    • commandNamespace

      String commandNamespace
      The namespace for registered commands (e.g. "myplugin" for /myplugin:command).
      Defaults to the lowercase plugin name.
      Default:
      ""
    • bstatsId

      int bstatsId
      The bStats plugin id. If set, metrics are started automatically and MetricsCustomizers can add charts.
      Default is 0 (disabled).
      Default:
      0