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

noob question

Discussion in 'Facepalm' started by Levi, Sep 23, 2017.

  1. Levi

    Levi Skeleton

    Messages:
    955
    GitHub:
    captainleviftw
    what does this code say? sure.. call me noob or move this to facepalm.

    PHP:
    if(($x >= 188 || $x <= 202) || ($y >= || $y <= 100) || ($z >= 276 || $z <= 279)){
           
    $event->getPlayer()->teleport(Server::getInstance()->getLevelByName("mines")->getSafeSpawn());
        }
     
  2. Derpific

    Derpific Spider Jockey

    Messages:
    44
    GitHub:
    Derpific
    It basically says this:
    If the Player is in a certain area, it teleports them to the level : "mines"'s safe Spawn
     
    Levi likes this.
  3. Levi

    Levi Skeleton

    Messages:
    955
    GitHub:
    captainleviftw
    thanks
     
  4. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    Maybe it's irrelevant, but I really wonder, what makes this snippet so difficult to understand?
     
  5. Karanpatel567

    Karanpatel567 Baby Zombie

    Messages:
    115
    GitHub:
    Karanpatel567
    True
     
  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.