Limited Flight

Discussion in 'Spigot Plugin Development' started by Spedwards, May 30, 2016.

  1. I'm working on a plugin which includes a method to give all players flight for a limited time. Obviously, I'm iterating over the online players and running `player.setAllowFlight(true);`, though I have a few questions that I'm currently unable to test.

    1. Does fly persist after a player's death?
    2. If a player logs off, will they have flight when they log back in?
     
  2. If there is no event that remove the FLY the player when I die or go to the server, if'd with the FLY
     
  3. Yes to both. I know this because once, when I was playing with NBT tags using NBT edit, I found a tag called isFlying or somethig like that and one for flyEnabled.