Posted November 30, 201311 yr Hello, I need a way to get all players in the current server, I have looked through MinecraftServer and the World classes and can't find any method for doing this. Is there a way to do it? Thanks!
November 30, 201311 yr MinecraftServer.getServer().getConfigurationManager().playerEntityList Is a List of EntityPlayerMP.
November 30, 201311 yr Hi see also http://greyminecraftcoder.blogspot.com.au/2013/10/server-side-class-linkage-map.html for ways to get a subset of all players (eg all players in a particular dimension) -TGG
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.