thekeenant / tabbed

:book: Minecraft library for manipulating the tablist per player.
MIT License
50 stars 23 forks source link

Player names are visible when custom is not full #10

Closed thekeenant closed 7 years ago

thekeenant commented 8 years ago

image

TableTabList tab = (TableTabList) Atlas.getTabbed().getTabList(player);
if (tab == null)
  tab = Atlas.getTabbed().newTableTabList(player, 3);
tab.set(0, 1, new TextTabItem("Boop"));

They only appear when the tab list isn't 4x20.

thekeenant commented 8 years ago

Somehow Tabbed will have to cancel vanilla PlayerInfoData sent, though not cancelling them prior to a player is spawned.

thekeenant commented 8 years ago

Possible solution?

  1. Listen to player info data sent
  2. If it starts with $ or is not ADD_PLAYER then ignore
  3. Schedule REMOVE_PLAYER a few ticks later

And also every second or so send every player a vanilla player info packet ADD_PLAYER for every player online.

thekeenant commented 7 years ago

Resolved since 1.8.