Getting all players on a BungeeCord proxy

Discussion in 'Spigot Plugin Development' started by Incomp, Apr 12, 2014.

  1. Hi, I'm making a chat-channel plugin but I don't know how to return a list of all players online in the same proxy as the player chatting. I've looked around the documentation and couldn't find anything. Google was of no help, either.
    • Agree Agree x 1
  2. Is this a bungee cord plugin or a Bukkit Plugin?
    Is this what you mean?
    Code (Java):

    List<String> playernames = new ArrayList<String>();
            for(ProxiedPlayer p: BungeeCord.getInstance().getPlayers()){
    • Like Like x 1