TabAPI 3.6.1

This is the updated TabAPI for 1.8/1.9/1.1

  1. Bear53
    Tested Minecraft Versions:
    • 1.8
    • 1.9
    • 1.10
    Contributors:
    IModZombies4Fun, double0negative
    The methods to call TabAPI are all listed below! :)

    This current version is currently only for minecraft 1.1
    If you are using version 1.9 download version 3.6.0 which includes the TabAPI.jar and 1.9 ProtocolLib, if you are running any version of 1.8 use version 3.5.0 which includes 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 (Text):
    - TabUtils.sendTabHeaderFooter(Player player, String header, String footer)
    Sends a player a tab header and footer
    Code (Text):
    - TabUtils.sendTabHeader(Player player, String header)
    Sends a player a tab header
    Code (Text):
    - TabUtils.sendTabFooter(Player player, String footer)
    Sends a player a tab footer
    Code (Text):
    - TabAPI.clearTab(Player p)
    Clears the tab for the player
    Code (Text):
    - TabAPI.disableTabForPlayer(Player p)
    Resets tab list to normal
    Code (Text):
    - TabAPI.getHorizSize()
    Method deprecated
    Code (Text):
    - TabAPI.getVertSize()
    Method deprecated
    Code (Text):
    - TabAPI.getHorizSize(int protocol)
    Uses the players protocol version of 47 or higher and returns horiz size
    Code (Text):
    - TabAPI.getVertSize(int protocol)
    Uses the players protocol version of 47 or higher and returns vert size
    Code (Text):
    - TabAPI.getSlotId(int x, int y)
    returns the slot numbers
    Code (Text):
    - TabAPI.resetTabList(Player p)
    Resets the tab list for a player
    Code (Text):
    - 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 (Text):
    - TabAPI.setTabString(Plugin plugin, Player p, int x, int y)
    Set the tab list for a player
    Code (Text):
    - 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 (Text):
    - TabAPI.setTabString(Plugin plugin, Player p, int x, int y, String msg, int ping)
    Sets tab list with addition of the slots ping
    Code (Text):
    - 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 (Text):
    - TabAPI.updateAll()
    Upates the tab list for all online players, should be used after setting the tab list
    Code (Text):
    - 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!

    Disclaimer*
    I am not the original author of TabAPI, I just updated it to support 1.8 as well as for developers to be able to use it in their projects.

    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.

Recent Updates

  1. Updated to 1.1
  2. Updated to 1.9.4
  3. 1.9 Update

Recent Reviews

  1. gyurix
    gyurix
    2/5,
    Version: 3.6.1
    So I am rating your source code :)
    - Inefficient data handling way (TabUtils:48 and TabUtils:53), you are always finding these 2 fields, which tooks a long time, so you should cache them instead, because that might cause a little lag when someone makes an animated Tab header-footer using your API.

    - The TabAPIs updatePlayer updates everything, not just the changes. This causes unexpected tab blinking and a huge amount of performance lose. Please make your plugin more efficient :)
  2. LosTigeros
    LosTigeros
    1/5,
    Version: 3.6.1
    [TabAPI] Unhandled exception occured in onPacketSending(PacketEvent) for TabAPI

    Its not working on 1.9.4 and on 1.9.2
  3. WillFTW
    WillFTW
    1/5,
    Version: 3.6.1
    Could not pass PlayerJoinEvent... Please help me. I added the Tab Header and Footer bit to my onJoin event and it keeps breaking :| PLEASE HELP
    1. Bear53
      Author's Response
      Please PM me, the issue will be you are using one that is not for your version. If you can tell me what version you are using I can direct you to the correct version to use
  4. Lanbert_MC
    Lanbert_MC
    5/5,
    Version: 3.6.0
    This is amazing !!!

    This help alot Thanks :D
    So Cool (....................................) ignore this!
  5. IJMX
    IJMX
    2/5,
    Version: 3.6.0
    Plugin works fine for setting tab string, but if I use the format with sendTabHeader or sendTabFooter, console gives me an error saying that it could not pass event PlayerJoinEvent please help!
    1. Bear53
      Author's Response
      Sorry about that, I haven't had time to update to newest 1.9 build yet
  6. TheGamingMoons
    TheGamingMoons
    5/5,
    Version: 3.6.0
    Good coding! Helped a lot! Thnx m8 very good work! :) GG on this!
    Thnx for doing this for people. Thx
  7. CodeForum
    CodeForum
    5/5,
    Version: 3.6.0
    I just want to thank you for this. Let people see this, it's so nice and I'm glad that you want to share it with us!!
  8. FiXed
    FiXed
    5/5,
    Version: 3.5.5
    Can you post it on git, I'd like to know what you used to set priority of a player, sounds like an amazing idea :P
    1. Bear53
      Author's Response
      I do not have any plans at the moment to post this to github sorry
  9. NickAc
    NickAc
    5/5,
    Version: 3.5.0
    Thanks for updating this plugin.
    When I first saw this plugin, I started thinking it was fake, but it worked!
    Thanks a lot bro!
    1. Bear53
      Author's Response
      :D So glad to hear that! Just know that it is a API and does nothing on its own
  10. Lazertx
    Lazertx
    5/5,
    Version: 3.0
    Really appreciate the time you put in to update the plugin because I was about to start updating it for myself.
    1. Bear53
      Author's Response
      Glad to help!