O ohTaylr New Member Dec 11, 2019 #1 How do I get the instance of all players on the server? I can't seem to find a way to do it. EDIT: So for example I want to be able to put EVERYONE on the server in fly mode or something like that.
How do I get the instance of all players on the server? I can't seem to find a way to do it. EDIT: So for example I want to be able to put EVERYONE on the server in fly mode or something like that.
WhackDevelopment Supporter Dec 11, 2019 #2 for(Player player : Server.getInstance().getOnlinePlayers().values()) { // do sth with player }
O ohTaylr New Member Dec 11, 2019 #3 depascaldc said: for(Player player : Server.getInstance().getOnlinePlayers().values()) { // do sth with player } Click to expand... Alright thank you!
depascaldc said: for(Player player : Server.getInstance().getOnlinePlayers().values()) { // do sth with player } Click to expand... Alright thank you!