Solved How to Effect All Players?

Discussion in 'Plugin Development' started by Gater12, Sep 1, 2013.

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

    Gater12

    I can't figure it out. Basically what I am trying to do is when something happens, then it will put a effect on all the players online, but I don't know how. Need help
     
  2. Code:
    for( Player player : Bukkit.getOnlinePlayers() )
    {
        player.addPotionEffect(...);
    }
    Should do the job.
     
    Gater12 likes this.
  3. Offline

    Gater12

    Thank you!
     
  4. Always happy to help :)
     
Thread Status:
Not open for further replies.

Share This Page