Getting online players before a shutdown.

Discussion in 'Plugin Development' started by Cowboys1919, Jan 23, 2013.

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

    Cowboys1919

    In my onDisable() I'm trying to process a save for all online players, but I think it is kicking the players before my onDisable() calls Bukkit.getServer().getOnlinePlayers()

    Is there some kind of pre-shut down event I could get my hands on :p ?
     
  2. Offline

    Nitnelave

    Maybe the serverCommandEvent?
     
  3. Offline

    bleachisback

    You can use a PlayerKickEvent to tell when a player is booted from the server due to shutting down.
     
  4. Offline

    chasechocolate

    PlayerKickEvent would be the best, but you could also use your onDisable method (although that would also be called when the server reloads).
     
Thread Status:
Not open for further replies.

Share This Page