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.


  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • So, I try to make a katana, with katana and scabbard, is that possible to make 2 different models to be on player while he holding item? Katana in hands, and scabbard at belt. 
    • I created a server with the Pixelmon mod, it's fine and everything but a person enters and the server closes, I don't know how to explain it very well but I attach the detailed file of the error that happens to me https://mclo.gs/eSemvtq This error had not happened to me until now, so I don't understand very well why this happens, could you help me solve it?
    • When I create the server and log in it lets me play, but a person ends up joining and it sends me an error and the server closes The report says Exception in server tick Loop I put here what the console tells me because I honestly don't know how to explain it: https://mclo.gs/eSemvtq I use Forge mods and this has not happened to me until now 
    • Sorry I wasn't on this site for a few days. But anyways, if you just simply want to install forge to play with mods, you need to click on the installer option, thqat way, forge will be automatically installed to your device at the version you chose. Then you could just open Minecraft launcher to play on that version.
    • I've been putting together a modpack for a few weeks, and it's worked just fine. Until today, I logged onto my survival world and went exploring. As soon as I entered my boat the game froze and crashed. Now when I try to start the world, nothing loads and the game crashes. I tried creating a new world and the same thing happened when I tried to use a boat. Here's the latest crash report from the original world: If anyone knows how to fix the issue, I'd really appreciate the help, thanks.
  • Topics

×
×
  • Create New...

Important Information

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