Posted July 22, 20232 yr Hey there! How can I change players tablist header & footer using server side?
November 15, 20231 yr 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); } Edited November 15, 20231 yr by WeakInTheHead
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.