@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface GroupProvider
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
Modifier and Type | Optional Element and Description |
---|---|
Color |
groupColor
Determine the color of the table header for this group.
|
Family |
iconFamily
Family of Font Awesome icon.
|
java.lang.String |
iconName
Name of Font Awesome icon.
|
java.lang.String |
text
Text displayed before the value, limited to 50 characters.
|
public abstract java.lang.String text
Should inform the user what the group names represent, for example "Town" or "Job"
public abstract Color groupColor
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
.