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

Allowing Fly

Discussion in 'Help' started by Brant, Apr 21, 2019.

  1. Brant

    Brant Baby Zombie

    Messages:
    104
    GitHub:
    tetroyt
    How to I allow flying in my server so players don’t get kicked? I set flight in the server properties file to true but they still get kicked
     
  2. DrakerZR

    DrakerZR Silverfish

    Messages:
    21
    GitHub:
    drakerzr
    You could use this at PlayerJoinEvent
    PHP:
    public function onJoin(PlayerJoinEvent $event){
        
    $player $event->getPlayer();
        
    $player->setAllowFlight(true); #This allow the player flight
    }
     
  3. Brant

    Brant Baby Zombie

    Messages:
    104
    GitHub:
    tetroyt
    Could you put that into words for someone that doesn’t understand coding
     
  4. Mr174

    Mr174 Baby Zombie

    Messages:
    187
    GitHub:
    mr174
    Did you edit the file while the server was on?
     
  5. Brant

    Brant Baby Zombie

    Messages:
    104
    GitHub:
    tetroyt
    Yes
     
  6. Mr174

    Mr174 Baby Zombie

    Messages:
    187
    GitHub:
    mr174
    Ok turn the server off then reedit the file save it then start the server back up.
    The file will overwrite its self if the server is on.
    You have to make sure the server is off when editing the server properties or pocketmine.yml
     
    EdwardHamHam likes this.
  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.