@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface NumberProvider
If you want to return int values, use this provider with a long as return type of the method.
Usage: @NumberProvider long method(UUID playerUUID)
Modifier and Type | Required Element and Description |
---|---|
java.lang.String |
text
Text displayed before the value, limited to 50 characters.
|
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String |
description
Text displayed when hovering over the value, limited to 150 characters.
|
FormatType |
format
Apply special formatting to the value before presentation.
|
Color |
iconColor
Color preference of the plugin.
|
Family |
iconFamily
Family of Font Awesome icon.
|
java.lang.String |
iconName
Name of Font Awesome icon.
|
int |
priority
Display-priority of the value, highest value is placed top most.
|
boolean |
showInPlayerTable
When the parameter is set to
true the value from this Provider is shown on a table alongside players. |
public abstract java.lang.String text
Should inform the user what the value represents, for example "Owned Chickens", "Claimed Blocks"
public abstract int priority
Two values with same priority may appear in a random order.
Integer.MAX_VALUE
.public abstract java.lang.String description
Should be used to clarify what the value is if not self evident, for example text: "Fished", description: "How long the player has fished for"
public abstract FormatType format
FormatType
that best represents the long value.for available formatters.
public abstract java.lang.String iconName
See https://fontawesome.com/icons (select 'free')) for icons and their Family
.
public abstract Family iconFamily
See https://fontawesome.com/icons (select 'free')) for icons and their Family
.
public abstract Color iconColor
This color will be set as the default color to use for plugin's elements.