Hot Summer Deals are Here!
Celebrate with up to 99% off on 18,000 resources
00
Days
01
Hours
35
Mins
57
Secs

[Open Source] - Tab API

NV6

the opensource person(?)
Premium
Feedback score
8
Posts
383
Reactions
223
Resources
1
Tab API
This is an opensource tablist api with several NMS implementations, with more coming soon. It's still heavily in development, and has not been thoroughly tested.

Supported Versions
We currently support NMS versions 1_16_R3, v1_15_R1, v1_14_R1, v1_12_R1, v1_10_R1, v1_9_R1, v1_8_R3 and v1_7_R4, with more versions coming soon.

(taken from README.md on github repository)

The usage is very easy - here's an example:

Registering the handler itself:

Replace "v1_7_R4TabAdapter" with the version of NMS you're using (for example: v1_7_R4TabAdapter). Replace "TabImpl" with the TabElementHandler you're using (this is where the tab api gets the elements from.)

Code:
@Override
public void onEnable() {
   new TabHandler(new v1_7_R4TabAdapter(), new TabImpl(), this, 20L);
}

Making a new TabElementHandler implementation

Code:
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;
   }
}
0l3aNj3.png

OZUAIE0.png

Dl3Nr8N.png
68747470733a2f2f692e696d6775722e636f6d2f656b34794252552e706e67

Prices
- Fully opensource, and free to use. (https://github.com/NoSequel/TabAPI)

Test Server
There is currently no real test server up, however I can startup a small test server on request, however it's recommended to just test it out yourselves - since it's free and opensource.

Bug Policy
Report any bugs to the owner (NV6) or on the github repository.
 
Type
Offering
Last edited:
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

growlygg

Transaction Restricted
Feedback score
1
Posts
185
Reactions
84
Resources
0
VOUCH FOR BIG MAN NV6!!! <3

TABAPI is awesome too, TabAPI > Outlast > Ziggurat > Any other tab API!
 

Function

Minecraft Plugin Developer
Supreme
Feedback score
38
Posts
938
Reactions
332
Resources
0
Vouch for this dude!
 

Trackgg

Feedback score
9
Posts
152
Reactions
65
Resources
0
Tab API
This is an opensource tablist api with several NMS implementations, with more coming soon. It's still heavily in development, and has not been thoroughly tested.

Supported Versions
We currently only support NMS version v1_7_R4 and v1_8_R3, however I'm planning on adding more supported versions soon.

(taken from README.md on github repository)

The usage is very easy - here's an example:

Registering the handler itself:

Replace "v1_7_R4TabAdapter" with the version of NMS you're using (for example: v1_7_R4TabAdapter). Replace "TabImpl" with the TabElementHandler you're using (this is where the tab api gets the elements from.)

Code:
@Override
public void onEnable() {
   new TabHandler(new v1_7_R4TabAdapter(), new TabImpl(), this, 20L);
}

Making a new TabElementHandler implementation

Code:
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;
   }
}
Dl3Nr8N.png
68747470733a2f2f692e696d6775722e636f6d2f656b34794252552e706e67

Prices
- Fully opensource, and free to use. (https://github.com/NoSequel/TabAPI)

Bug Policy
Report any bugs to the owner (NV6) or on the github repository.
Vouch a mi amigo
 

NV6

the opensource person(?)
Premium
Feedback score
8
Posts
383
Reactions
223
Resources
1
Last edited:

Scifi

Supreme
Feedback score
4
Posts
577
Reactions
208
Resources
4
Vouch heavily recommend this.
 

NV6

the opensource person(?)
Premium
Feedback score
8
Posts
383
Reactions
223
Resources
1
Update
  • A few bug fixes:
    • Fixed slight skin flickering on tablist due to overlapping tablists
    • Don't send PacketPlayOutPlayerListHeaderFooter to client if both the provided header and footer are null
    • Fixed error in v1_15_R1 implementation related to header and footer (from growlygg's pull request)
  • Added features:
    • Added a SkinUtil class to get the skull of players by UUID
Also, thanks everybody for the kind words!
 

Inviss

Management / Head of Development @ AkumaMC
Supreme
Feedback score
21
Posts
734
Reactions
267
Resources
3
Vouch for NV6, forcing me to do this whilst in a call with him
 

NV6

the opensource person(?)
Premium
Feedback score
8
Posts
383
Reactions
223
Resources
1
Update
  • Added new constructor and deprecated previous constructor:
    • TabHandler#TabHandler(TabAdapter, TabElementHandler, JavaPlugin, long) -> TabHandler#TabHandler(TabElementHandler, JavaPlugin, long).
      • This new constructor automatically grabs the current NMS version and tries to find an implementation by that version.
  • Added TabElement#addEntry(TabEntry) method.
  • Removed the unused listener, this listener has remained unregistered for a while but I never deleted the class.
Planned for Future Updates
  • 1.17+ implementation
 
Top