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

Fly Code

Discussion in 'Development' started by JUZEXMOD, May 24, 2017.

  1. JUZEXMOD

    JUZEXMOD Spider

    Messages:
    8
    GitHub:
    DevolperPHP
    Hellow

    i need a fly command code to complet my plugin

    thx :)
     
  2. Michael

    Michael Baby Zombie

    Messages:
    113
    GitHub:
    michaelm04
    If you mean the ability to fly in survival mode use
    PHP:
    /** $player instanceof Player::class | Set to false to disable */
    $player->setAllowFlight(true);
     
    JUZEXMOD likes this.
  3. [deleted]

    [deleted] Guest

    ?
    To let a player fly use this:
    PHP:
    // $player is your player object

    $player->setAllowFlight(TRUE);
     
    JUZEXMOD likes this.
  4. [deleted]

    [deleted] Guest

    Uups, as I opened this Thread, there were no posts.
     
    JUZEXMOD and Michael like this.
  5. Michael

    Michael Baby Zombie

    Messages:
    113
    GitHub:
    michaelm04
    No problem :D, I did this just the other day. This forum is too lit! XD
     
    [deleted] likes this.
  6. JUZEXMOD

    JUZEXMOD Spider

    Messages:
    8
    GitHub:
    DevolperPHP
    thx :)
     
    Michael likes this.
  7. Michael

    Michael Baby Zombie

    Messages:
    113
    GitHub:
    michaelm04
    Np! Best of luck with the development!
     
  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.