1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Solved fly

Discussion in 'Development' started by Teamblocket, May 7, 2017.

  1. Teamblocket

    Teamblocket Zombie

    Messages:
    301
    GitHub:
    teamblocket
    hey , how can i check if a player has allowed flight on
     
  2. XdmingXD

    XdmingXD Baby Zombie

    Messages:
    158
    GitHub:
    xdmingxd
    $player->isFlying()
    This not the best but it is one way to check
     
  3. Teamblocket

    Teamblocket Zombie

    Messages:
    301
    GitHub:
    teamblocket
    nvm i found a better way i wasn't thinking straight , i can use permissions
     
  4. LucGamesDE

    LucGamesDE Baby Zombie

    Messages:
    170
    You can simply use if($player->getAllowFlight()) {
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.