Posted April 23, 20214 yr I'd like to get a list of all online players when hooking into the ServerTickEvent event. Is there a static way of getting the MinecraftServer instance to get the player list from that? In 1.12.2, we had FMLCommonHandler.instance().getMinecraftServerInstance() but FMLCommonHandler is not in 1.16.5 and I don't see anything similar. Edited April 26, 20214 yr by Furgl https://i.gyazo.com/9d22a3d74363977ac76d662e7c22effb.png[/img]
April 26, 20214 yr Author Perfect - thank you! https://i.gyazo.com/9d22a3d74363977ac76d662e7c22effb.png[/img]
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.