Solved setFlying() or setAllowFlight() doesnt work

Discussion in 'Spigot Plugin Development' started by GoodOldJack12, Aug 12, 2018.

  1. (this post used to be about an event not being caught. It had nothing to do with the event in the end, so the post is edited to help any future searches)
    I had an error where an exception was thrown after trying to setFlying(true) on a player.

    As it turns out, a conflicting plugin overwrote setAllowFlight() it while the rest of my code ran.
    I had to set the setAllowFlight() just before the setFlying.

    Hopefully this will help people with a similar issue
    #1 GoodOldJack12, Aug 12, 2018
    Last edited: Aug 13, 2018
  2. Please post the full error
    • Agree Agree x 1
  3. I feel like such an idiot. Thanks for replying!
    Edited post to reflect the actual problem

Share This Page