Annotation Interface GroupProvider
Method annotation to provide
String[]
array of Group names about a Player.
This method annotation only works when used with UUID
or String
as a method parameter (for Players).
For example:
@GroupProvider public String[] getJobs(UUID playerUUID) {}
Group data is parsed as Table for /server and /network page and similar to StringProvider
for /player page.
Requires Capability DATA_EXTENSION_GROUPS
-
Element Details
-
text
String textText displayed before the value, limited to 50 characters.Should inform the user what the group names represent, for example "Town" or "Job"
- Returns:
- String of max 50 characters, remainder will be clipped.
- Default:
"Group"
-
groupColor
Color groupColorDetermine the color of the table header for this group.- Returns:
- Preferred color. If none are specified defaults are used.
- Default:
NONE
-
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:
"circle"
-
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
-