Annotation Interface StatisticsProvider


@Retention(RUNTIME) @Target(METHOD) public @interface StatisticsProvider
Method annotation to provide a Statistics.

Usage: @StatisticsProvider Statistics method(UUID playerUUID)

Used for key-number statistical data.

It is recommended to place each statistics set on their own tab with a Tab annotation on the same method.

Requires capability DATA_EXTENSION_STATISTICS_API.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Family of Font Awesome icon.
    Name of Font Awesome icon.
    Determine the color of the table header.
  • Element Details

    • tableColor

      Color tableColor
      Determine the color of the table header.
      Returns:
      Preferred color. If none are specified defaults are used.
      Default:
      NONE
    • iconName

      String iconName
      Name of Font Awesome icon.

      See FontAwesome (select 'free')) for icons and their Family.

      Returns:
      Name of the icon, if name is not valid no icon is shown.
      Default:
      "square-poll-horizontal"
    • iconFamily

      Family iconFamily
      Family of Font Awesome icon.

      See FontAwesome (select 'free')) for icons and their Family.

      Returns:
      Family that matches an icon, if there is no icon for this family no icon is shown.
      Default:
      SOLID