How to get Online Players UUID

Discussion in 'Plugin Development' started by greaperc4, Aug 23, 2014.

Thread Status:
Not open for further replies.
  1. Hi,

    I want to get all the online players and just saw it got deprecated.
    I know that when something is deprecated that it still works!
    But I want to know how to get all the online players from 1.7.10
     
  2. Offline

    jimbo8

    Code:java
    1. for(Player player : Bukkit.getOnlinePlayers()){
    2. UUID uuid = player.getUniqueId();
    3. //do whatever you want..
    4. }
     

  3. I just said:'getOnlinePlayers()' is Deprecated and I want to know if there is a way arround it to be short.....
     
  4. Offline

    Necrodoom

    greaperc4 compile against bukkit, method changed from array to collection. Read javadocs.
     
Thread Status:
Not open for further replies.

Share This Page