Bukkit.getOnlinePlayers() CraftBukkit 1.7.9 R0.3

Discussion in 'Plugin Development' started by electro4fun, Jul 1, 2014.

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

    electro4fun

    I was just wondering how I might invoke the non-depreciated Bukkit.getOnlinePlayers() method. I have tried:

    Code:java
    1. Bukkit.<Collection<? extends Player>>getOnlinePlayers();


    But that doesn't work (or maybe eclipse is just saying it doesn't). Either way it leaves a warning and was just wondering how I would go about fixing it.
     
  2. Offline

    SDDJ

  3. Offline

    fireblast709

  4. Offline

    SDDJ

    Oh, well then. I guess I'll need to figure out how to make it work.
     
  5. Offline

    mbaxter ʇıʞʞnq ɐ sɐɥ ı

    If you're going to run a server with the CraftBukkit 1.7.9 beta (or earlier), don't compile with a dev build that came after that beta's release. If you want to use the new Collection method, compile against the latest dev build of Bukkitand run a server with the latest dev build of CraftBukkit.
     
Thread Status:
Not open for further replies.

Share This Page