is an opensource tablist API made for the Spigot API.
We currently support the following NMS versions, v1_16_R3
, v1_15_R1
, v1_14_R1
, v1_12_R1
, v1_10_R1
, v1_9_R1
, v1_8_R3
and v1_7_R4
, we're willing to support more versions in the future, and feel free to open a pull request if you are able to add a version.
- Probably add wrapper classes to reduce the amount of code duplication, however I'm lazy.
The usage is very easy - here's an example:
Replace "TabImpl" with the TabElementHandler you're using (this is where the tab api gets the elements from.)
@Override
public void onEnable() {
new TabHandler(new TabImpl(), this, 20L);
}
public class TabImpl implements TabElementHandler {
/**
* Get the tab element of a player
*
* @param player the player
* @return the element
*/
@Override
public TabElement getElement(Player player) {
final TabElement element = new TabElement();
for (int i = 0; i < 80; i++) {
final int x = i % 4;
final int y = i / 4;
element.add(x, y, ChatColor.GREEN + "Slot: " + ChatColor.GRAY + x + ", " + y);
}
return element;
}
}
You're free to use this product for anything, including selling and running on your own server. However, if you're going to sell a plugin using this, please leave credits and/or a link to the repository.