how to check if they CAN fly not if they are flying.

Discussion in 'Spigot Plugin Development' started by NaJated, May 11, 2015.

  1. Says it in the title. All I can check for atm is if (player#.isFlying() is there like a thing like if (player#.canFly()?
     
  2. Well matters. What would player#canFly() check for?
    • Permissions? Then you can do player#hasPermission(string);
    • Gamemode 1? Then you can do player#getGamemode() == GameMode.CREATIVE
     
  3. Is player.getAllowFlight() what you're looking for?
     
    • Like Like x 1
    • Useful Useful x 1
    • Agree Agree x 1
  4. Thx