Failender Posted March 16, 2017 Share Posted March 16, 2017 Hey there, Im just not sure how to send a message to all players on the server and could use a hint in the right direction Greetz Failender Quote Link to comment Share on other sites More sharing options...
Failender Posted March 16, 2017 Author Share Posted March 16, 2017 how to obtain the PlayerList instance? Quote Link to comment Share on other sites More sharing options...
Failender Posted March 16, 2017 Author Share Posted March 16, 2017 PlayerList has no static getter method. Most of the methods calling stuff on the PlayerList are doing so by using the MinecraftServer::getPlayerList (sadly I dont really see a way to obtain the MinecraftServer Instance either, all the classes I see using it get it via constructor) So yeah. I searched for it otherwise I wouldnt be asking, maybe im just tarded Quote Link to comment Share on other sites More sharing options...
Failender Posted March 17, 2017 Author Share Posted March 17, 2017 and how am i supposed to get the MinecraftServer? The getter method is not static. Quote Link to comment Share on other sites More sharing options...
Failender Posted March 17, 2017 Author Share Posted March 17, 2017 thank you. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.