TabAPI
TabAPI
Check it out in action! Join play.mc-sg.org
What is it
TabAPI is an API that is designed to allow developers make use of the Player Tab List in their plugins. It allows a simple way for Dev's to take control of it on a per-player basis to provide ingame stats, custom tab menus, hud's and more!
Examples
Requirements
This plugin requires Protocollib to function.
For Server Owners
If you are a server owner, then simply select the version that matches your server version and download it. This will allow plugins that use this API to take advantage of the API to change the tab list.
Plugins Using TabAPI
- SuperSpleef - When the New update is released.
- TabConfig - Fully Customizable Tab list!
- McMMO TabSkillz - View your McMMO skills on the tab!
- TabToTheMax - Customizable Tab List!
- More Coming Soon!
Limits
- The minecraft tab list does not support two tabs of the same content. So for example, if you set one square to "test" and anther to "test", only one will be displayed. A workaround for this is you can just add either spaces or color codes to the end to make them unique.
- the updatePlayer function has to clear the entire tab list and resend it due to mc just appending new packets to the end of the list. therefor, only call this functions as needed (ie once a loop is done, not in the loop), otherwise it will end up causing both lag and high bandwidth usage.
- Currently only supports tab list with three columns (dev release issue)
- Currently If no plugin takes control of the tab list, it will show a blank list instead of the default player list (dev release issue)
Graphics and Page design by Malo
@frdfsnlght
add more slots.
@realiez
{displayname}
Does anyone have any fixes to the pinging issue with bungee?
Well, I would like to add TagAPI as a dependency. I have a Maven project and no idea how to add it
This is probably a stupid question, but the tab list in my client is single column, not 3 columns as shown in the various screenshots. And this plugin's code has 3 columns hard-coded.
How do I get 3 columns displayed in my client?
Isn't it confusing that it is Y by X rather the X by Y when setting the tab list contents...
How do you get it to show your in game rank?
Update for 1.5? :D Please? :D
@bestlike2
cus tab list is limited and if you try to go above 60 it spams array out of bound. So you have to limit it to around 60.
Getting this spammed at me:
[SEVERE] java.lang.ArrayIndexOutOfBoundsException 16:34:46 CONSOLE: [SEVERE] java.lang.ArrayIndexOutOfBoundsException 16:34:46 CONSOLE: [SEVERE] java.lang.ArrayIndexOutOfBoundsException 16:34:48
Plugins: RealWeather, ColourMotd, GroupManager, BukkitCompat, AllNewJoin, EzSoup, Buycraft, MoarStuff, Vault, AntiRelog, Wither, ExtraExplosion, FusionMessage, TradeMod, Shopkeepers, CraftBay, Permissions, AntiAdvertising, FancyText, PluginSpy, DrugMeUp, Tracking-Plugin, ProtocolLib, PlayerVaults, Votifier, MobArena, mcMMO, TabAPI, GAListener, HardZombies, ChunkFixer, Citizens, LagMeter, HideStream, WorldEdit, NoCheatPlus, TagAPI, MineStats, SimpleExtras, MCdigr, FireWorkLogin, PlayerHeads, BloodMoon, WorldGuard, PvPTimer, boosCooldowns, mChatSuite, WGRegionEvents, BorderGuard, NoEnderChest, OPLock, FusionDamage, BKCommonLib, SmartServerTool-Recipes, MonsterFix, ZavAutoMessager, Auto arm, FirstJoinPlus, NewRecipes, Essentials, TabConfig, SilkSpawners, DisguiseCraft, NoLagg, EssentialsChat, EssentialsProtect, EssentialsSpawn, EssentialsAntiBuild, Factions, MobDisguisePVPControl, FactionTagPlayer
@MaloCrafted
Latest Bungee (Netty) and pinging doesn't work.
Works with 1.5!
Please update for 1.5
@ImTheFool
Well Thx Anyway, ill keep trying
@Banks_Nussman
Really? Strange. It fixed mine D:.
@ImTheFool
Did Not Work :(
I found out why it's displaying in the top left.. It's the colored tablist names from the plugin "ColorMe". Will support for this be added?
@MaloCrafted
I wasn't disguised as anyone in this situation.
For those of you getting the org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: I've recompiled this plugin using Java 6. This is likely your problem. You can get it here: https://mega.co.nz/#!iYITQCQC!FzP-LSi4nHvMQOS-vhySOTdQLFBADaHjhvANoepU1Ts.
I am having trouble using this and I was wondering if you could help me. Here is my code :
TabAPI.setPriority(plugin, player, 2);
TabAPI.updatePlayer(player);
TabAPI.setTabString(plugin, player, 0, 0, ChatColor.RED+"Red Team");
TabAPI.setTabString(plugin, player, 0, 1, "Bases: 0"+0);
TabAPI.setTabString(plugin, player,0, 2,"Score: 0"+0);
TabAPI.setTabString(plugin, player,1, 0, "");
TabAPI.setTabString(plugin, player, 1, 1, "");
TabAPI.setTabString(plugin, player,1, 2,"");
TabAPI.setTabString(plugin, player,2, 0, ChatColor.BLUE+"Blue Team");
TabAPI.setTabString(plugin, player, 2, 1, "Bases: 0"+0);
TabAPI.setTabString(plugin, player,2, 2,"Score: 0"+0);
TabAPI.updatePlayer(player);
And here is what the tab ends up looking like :