Jump to content

Get the Information of the tablist from a Server as a String


Janx

Recommended Posts

I try to get some Information from a Tablist. I tried: Minecraft.getMinecraft().ingameGUI.getTabList().toString(), but that only gave me: net.minecraft.client.gui.GuiPlayerTabOverlay@25aa741f. How can i get the Information from the tablist?

This is the information I need is the number of the Server (in this case WC23):
Unbenannt.PNG.bf7e9c76ca7f9e50578fc60097899b49.PNG

Link to comment
Share on other sites

22 minutes ago, diesieben07 said:

ClientPlayNetHandler#getOnlinePlayers

and i dont know if this is a problem, but the scoreboard gets overwritten by another mod. ist this a problem?

 

Link to comment
Share on other sites

2 minutes ago, diesieben07 said:

There is no such thing. The view in your screenshot is achieved by playing tricks and injecting fake players into the list.

There is a header and footer to the list (not active in your screenshot) which you can get using PlayerTabOverlayGui#footer and PlayerTabOverlayGui#header respectively (need to use reflection as these are private).

if these are Fake players, will they show up under ClientPlayNetHandler#getOnlinePlayersn and is this in 1.12.2 too, because i didnt found it there

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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