Solved Player Quit

Discussion in 'Plugin Development' started by duker02, Apr 2, 2014.

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

    duker02

    I've been wondering this for a while. When I use Bukkit.getOnlinePlayers().length on PlayerQuitEvent, does it calculate the length including the player that triggers the event or does it detect the length AFTER the player leaves?

    Thanks.
     
  2. Offline

    Gater12

    duker02
    I believe it counts after because it's triggered when a player leaves. So they already left.
     
    duker02 and The Fancy Whale like this.
  3. Offline

    duker02

    Alrighty! Thank you sir.
     
  4. Offline

    amhokies

    duker02
    I've just tested it's the number of players *before* the player leaves, so including the player.
     
    DukerHD likes this.
Thread Status:
Not open for further replies.

Share This Page