Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

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


Janx
 Share

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

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).

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.
 Share



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • Exultant is a survival RPG server with a custom modpack for 1.12.2 with Spigot plugins. Active server: 7-15 players online most of the time. We have: * Weekend events, arenas, minigames * Shop & auction house. * Plot claim. PVP/PVE (rare that someone PVP). * Custom NPCs with quests. * World generated with RTG, Biomes o' Plenty 170+ mods. Some of the mods: Thaumcraft, Abyssalcraft, Betweenlands, Ancient warfare, Minecolonies, Immersive Engineering , Bewitchment, Fossil Archeology, Erebus, Electroblobs Wizardry, Vampirism, Custom NPCs, Blood magic, Chocolate Quest Repoured, Animania You are not allowed to grief other players bases or around them if they have been claimed. Modpack is here: https://www.curseforge.com/minecraft/modpacks/exultantconquest Discord: https://discord.gg/u6HSWQeMfz Server spec: 64 GB RAM, I9-10900K, CPU 5.3 GHZ, SSD
    • 1.14 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
    • So I create my server and everything goes well, until I run the run.bat file which contains java -Xmx3072M -Xms3072M -jar forgeserver.jar nogui PAUSE I run that and then I get this out of the commands prompt Desktop\forge 1.14.4 server>java -Xmx3072M -Xms3072M -jar forgeserver.jar nogui 2021-10-15 17:55:54,519 main WARN Advanced terminal features are not available in this environment ←[32m[17:55:54] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmlserver, --fml.forgeVersion, 28.2.0, --fml.mcpVersion, 20190829.143755, --fml.mcVersion, 1.14.4, --fml.forgeGroup, net.minecraftforge, nogui] ←[m←[32m[17:55:54] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher 4.1.0+62+5bfa59b starting: java version 15.0.2 by Oracle Corporation ←[m←[32m[17:55:54] [main/INFO] [ne.mi.fm.lo.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust ←[mException in thread "main" ←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]: java.lang.NoClassDefFoundError: jdk/nashorn/api/scripting/NashornScriptEngineFactory ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at net.minecraftforge.coremod.CoreModEngine.loadCoreMod(CoreModEngine.java:48) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at net.minecraftforge.coremod.CoreModProvider.addCoreMod(CoreModProvider.java:12) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:658) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:274) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at net.minecraftforge.fml.loading.LoadingModList.addCoreMods(LoadingModList.java:88) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer.discoverMods(ModDiscoverer.java:125) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at net.minecraftforge.fml.loading.FMLLoader.beginModScan(FMLLoader.java:208) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at net.minecraftforge.fml.loading.FMLServiceProvider.runScan(FMLServiceProvider.java:105) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at cpw.mods.modlauncher.TransformationServiceDecorator.runScan(TransformationServiceDecorator.java:111) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at cpw.mods.modlauncher.TransformationServicesHandler.lambda$runScanningTransformationServices$8(TransformationServicesHandler.java:115) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:271) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at java.base/java.util.HashMap$ValueSpliterator.forEachRemaining(HashMap.java:1766) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at cpw.mods.modlauncher.TransformationServicesHandler.runScanningTransformationServices(TransformationServicesHandler.java:116) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at cpw.mods.modlauncher.TransformationServicesHandler.initializeTransformationServices(TransformationServicesHandler.java:63) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at cpw.mods.modlauncher.Launcher.run(Launcher.java:75) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at cpw.mods.modlauncher.Launcher.main(Launcher.java:65) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at net.minecraftforge.server.ServerMain$Runner.runLauncher(ServerMain.java:63) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at net.minecraftforge.server.ServerMain$Runner.access$100(ServerMain.java:60) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1048]:       at net.minecraftforge.server.ServerMain.main(ServerMain.java:57) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1057]: Caused by: java.lang.ClassNotFoundException: jdk.nashorn.api.scripting.NashornScriptEngineFactory ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1057]:       at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:606) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1057]:       at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:168) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1057]:       at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) ←[m←[32m[17:55:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1057]:       ... 35 more ←[m
    • 1.12 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.