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

i need teleport to world code

Comments in 'Plugin Development' started by JUZEXMOD, Oct 4, 2016.

  1. JUZEXMOD
    Offline

    JUZEXMOD New Member

    Joined:
    May 28, 2016
    Posts:
    19
    Minecraft User:
    JUZEXMOD
    Hellow

    i need teleport world plugin to make minigame plugin
  2. PaulchenHD
    Offline

    PaulchenHD Active Member

    Joined:
    Jan 17, 2016
    Posts:
    111
    Minecraft User:
    Paulchen_HD
    I use this ;)
    PHP:
    $player->teleport($this->getServer()->getLevelbyName("world")->getSafeSpawn());
    Last edited: Oct 4, 2016
    JUZEXMOD likes this.
  3. Nawaf_Craft1b
    Offline

    Nawaf_Craft1b Active Member Plugin Developer

    Joined:
    May 8, 2015
    Posts:
    232
    Plugins:
    1
    Minecraft User:
    Nawaf_Craft1b
    $level !== $name;
    To teleport Player TO X Y Z $level
    PHP:
    $player->teleport(new Position($x,$y,$z,$level));
    JUZEXMOD likes this.
  4. CraftYourBukkit
    Offline

    CraftYourBukkit Notable Member Plugin Developer

    Joined:
    Jan 20, 2015
    Posts:
    1,022
    Plugins:
    2
    Minecraft User:
    CraftYourBukkit
    You should explain in more detail. Maybe he doesn't use an event?

    @JUZEXMOD You can teleport players by Player::teleport($pos)
    while $pos is your position. Could be the spawnpoint a world ($this->getServer()->getLevelByName("WORLDNAME")->getSafeSpawn()) or any position of your choice. (Vector3 or Position)
    HotFireyDeath likes this.

Share This Page

Advertisement