TabAPI 3.5.5

No permission to download
This is the updated TabAPI for 1.8
Tags
Tags
None
I decided to take the current TabAPI that Double_0_negative had and update it from its current version to support 1.8 instead!

The methods to call TabAPI are all listed below! :)


Included in the .zip file is TabAPI jars for 1.8.1 - 1.8.8 as well as the ProtocolLib.jar file needed. Add these plugins to your projects buildpath and server and you will be set!

Version 3.5.5 is the most stable version and is the most recommended to use!

Methods:
Code:
- TabUtils.sendTabHeaderFooter(Player player, String header, String footer)
Sends a player a tab header and footer

Code:
- TabUtils.sendTabHeader(Player player, String header)
Sends a player a tab header

Code:
- TabUtils.sendTabFooter(Player player, String footer)
Sends a player a tab footer

Code:
- TabAPI.clearTab(Player p)
Clears the tab for the player

Code:
- TabAPI.disableTabForPlayer(Player p)
Resets tab list to normal

Code:
- TabAPI.getHorizSize()
Method deprecated

Code:
- TabAPI.getVertSize()
Method deprecated

Code:
- TabAPI.getHorizSize(int protocol)
Uses the players protocol version of 47 or higher and returns horiz size

Code:
- TabAPI.getVertSize(int protocol)
Uses the players protocol version of 47 or higher and returns vert size

Code:
- TabAPI.getSlotId(int x, int y)
returns the slot numbers

Code:
- TabAPI.resetTabList(Player p)
Resets the tab list for a player

Code:
- TabAPI.setPriority(Plugin plugin, Player player, int priority)
-2 = no longer active, -1 = backround only show if nothing else is there, 0 = normal, 1 = high, 2 = highest and always show

Code:
- TabAPI.setTabString(Plugin plugin, Player p, int x, int y)
Set the tab list for a player

Code:
- TabAPI.setTabString(Plugin plugin, Player p, int x, int y, String msg)
Sets the tab list for a player with a message in the specific slot (x, y)

Code:
- TabAPI.setTabString(Plugin plugin, Player p, int x, int y, String msg, int ping)
Sets tab list with addition of the slots ping

Code:
- TabAPI.setTabString(Plugin plugin, Player p, int x, int y, String msg, int ping, WrappedGameProfile gameProfile)
Sets tab list with addition of the gamer profile

Code:
- TabAPI.updateAll()
Upates the tab list for all online players, should be used after setting the tab list

Code:
- TabAPI.updatePlayer(Player p)
Updates the tab list for a specific player, should be used after setting the tab list
If this helps you it would make my day to leave a nice review or comment!

My spigot resources can be found here

Known Bugs:
- Players names are set near bottom of Tab list
- On right side of the tab there are 2 small white lines.
These bugs should not affect the use of TabAPI.

Author

Bear53

Owner
Author
Bear53
Downloads
35
Views
1,186
First release
Last update
Rating
0.00 star(s) 0 ratings
Top
You need to upgrade!
Our dark style is reserved for our Premium members. Upgrade here.