Annotation Interface StringProvider
Usage: @StringProvider String method(UUID playerUUID)
The returned value is limited to 100 characters, remainder will be clipped.
If the value is a player name, provide value for playerName=true. This will allow linking between pages.
-
Required Element Summary
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionText displayed when hovering over the value, limited to 150 characters.Color preference of the plugin.Family of Font Awesome icon.Name of Font Awesome icon.boolean
Determine if this value represents a Player name, for example a mayor of a town.int
Display-priority of the value, highest value is placed top most.boolean
When the parameter is set totrue
the value from this Provider is shown on a table alongside players.
-
Element Details
-
text
String textText displayed before the value, limited to 50 characters.Should inform the user what the value represents, for example "Town Name", "Pet Name"
- Returns:
- String of max 50 characters, remainder will be clipped.
-
priority
int priorityDisplay-priority of the value, highest value is placed top most.Two values with same priority may appear in a random order.
- Returns:
- Priority between 0 and
Integer.MAX_VALUE
.
- Default:
0
-
description
String descriptionText displayed when hovering over the value, limited to 150 characters.Should be used to clarify what the value is if not self evident, for example text: "Power", description: "Faction power, affects ability of faction to perform actions. Regenerates"
- Returns:
- String of max 150 characters, remainder will be clipped.
- Default:
""
-
playerName
boolean playerNameDetermine if this value represents a Player name, for example a mayor of a town.- Returns:
true
if the name can be used as a link to another player's page.
- Default:
false
-
iconName
String iconNameName 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:
"question"
-
iconFamily
Family iconFamilyFamily 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
-
iconColor
Color iconColorColor preference of the plugin.This color will be set as the default color to use for plugin's elements.
- Returns:
- Preferred color. If none are specified defaults are used.
- Default:
NONE
-
showInPlayerTable
boolean showInPlayerTableWhen the parameter is set totrue
the value from this Provider is shown on a table alongside players.- Returns:
- false by default.
- Default:
false
-