Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Teleporting code please

Comments in 'Plugin Development' started by MyNameIsTriXz, Nov 30, 2015.

  1. MyNameIsTriXz
    Offline

    MyNameIsTriXz Notable Member

    Joined:
    Aug 17, 2015
    Posts:
    538
    Minecraft User:
    MyNameIsTriXz
    I dont know why, I did $this->getServer()->loadLevel("level"); and after it teleported to that level, but I just spawn in the map I am at those coordinates, but dont get teleported to that level, I used Verctor3 and new Position but both arent teleporting me to that level, I dont even get an issue message on the console.... Can you give me a working teleporting code please?
  2. Nawaf_Craft1b
    Offline

    Nawaf_Craft1b Active Member Plugin Developer

    Joined:
    May 8, 2015
    Posts:
    232
    Plugins:
    1
    Minecraft User:
    Nawaf_Craft1b
    PHP:
    $p->teleport(new Postiton($x,$y,$z,$this->getServer()->getLevelByName("level"));
    You Can Set Your World IN The Level
    iDirtPlayzMC likes this.

Share This Page

Advertisement