Annotation Interface LeashFlagName


@Retention(RUNTIME) @Target(TYPE) @Inherited public @interface LeashFlagName
Declares the config-facing name of a LeashFlag implementation. The LeashFlagManager uses this annotation (walking the class hierarchy if needed) to map between the string names used in skilltree YAML and live flag instances.

Marked Inherited so that subclasses of a flag (e.g., integration-specific overrides) inherit the parent's name unless they re-declare their own.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The name server owners write in the config to enable this flag.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Optional translation node for showing this flag's name in the player's language.
  • Element Details

    • value

      String value
      The name server owners write in the config to enable this flag.
      Returns:
      the flag's config-facing name
    • translationNode

      String translationNode
      Optional translation node for showing this flag's name in the player's language.
      Returns:
      the translation node, or an empty string when there is none
      Default:
      ""