@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface BooleanProvider
Usage: @BooleanProvider boolean method(UUID playerUUID)
The provided boolean can be used as a condition for calls to other Provider
methods by defining the name of the condition and using Conditional
on the other method with a Provider annotation.
For example:
@BooleanProvider(condition="example") boolean condition(UUID playerUUID);
@Conditional("example") @NumberProvider long someValue(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 |
conditionName
Name of the
Conditional condition limited to 50 characters. |
java.lang.String |
description
Text displayed when hovering over the value, limited to 150 characters.
|
boolean |
hidden
Should the result of this method be hidden from the user.
|
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 "Banned", "Has Island"
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: "Boat", description: "Whether or not the player is on a boat."
public abstract java.lang.String conditionName
Conditional
condition limited to 50 characters.public abstract boolean hidden
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.
public abstract boolean showInPlayerTable
true
the value from this Provider is shown on a table alongside players.
If hidden()
is true
then this value will not be shown in the table regardless of the value of this parameter.