Solved Admin Chat

Discussion in 'Plugin Help/Development/Requests' started by bubblefat_, Jan 22, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    bubblefat_

    So Im making an admin chat where you type /admin <message> and I need to know how to get all the players on the server. So basically I will do staff.sendMessage(message); but I need to find out how to make staff get all the players on the server. I have tried Player staff = Bukkit.getOnlinePlayers();
     
  2. Offline

    pie_flavor

    @bubblefat_
    Code:java
    1. for (Player staff : Bukkit.getOnlinePlayers) {
    2. //staff is your Player. put your code here.
    3. }
     
Thread Status:
Not open for further replies.

Share This Page