Posted September 15, 20169 yr I have severall classes requiring MinecraftServer.getServer() like: MinecraftServer.getServer().getPlayerProfileCache().getProfileByUUID(id); This often also happens in an NBT and therefore I don't have a WorldObject to get the Server Object. Is there any other way in 1.10?
September 15, 20169 yr If you have a server-side World , use World#getMinecraftServer . If you don't have a World , use FMLCommonHandler#getMinecraftServerInstance . Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
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.