Jump to content

WeakInTheHead

Members
  • Posts

    1
  • Joined

  • Last visited

WeakInTheHead's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. You can change player tablist header and footer by creating ClientboundTabListPacket and sending it to player. Example: public static ClientboundTabListPacket tabListPacket = new ClientboundTabListPacket(MutableComponent.create(new LiteralContents("Its header")), MutableComponent.create(new LiteralContents("Its footer"))); @SubscribeEvent public static void onLoggedInEvent(PlayerEvent.PlayerLoggedInEvent loggedInEvent) { ServerPlayer serverPlayer = (ServerPlayer) loggedInEvent.getEntity(); serverPlayer.connection.send(tabListPacket); }
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.