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

World Teleport

Discussion in 'Plugin Help' started by TwistedFellow, Aug 15, 2019.

  1. TwistedFellow

    TwistedFellow Silverfish

    Messages:
    22
    GitHub:
    SilverzPlayz
    How do I make it when I press a button on a form using FormApi that it teleports the player to a certain coordinate in a certain world?
     
  2. VirVolta

    VirVolta Silverfish

    Messages:
    16
    GitHub:
    VirvoltaSurMC
    do you know the API of FormAPI well?
    There are many examples on the forum.
    And for the player's teleport you can use the Postion class to teleport a player to a specific world with specific coordinates

    Exemple

    PHP:
    $player->teleport(new Position($x$y$z$level));

    //NOTE : $level is not name of the world is instance of Level
     
  3. TwistedFellow

    TwistedFellow Silverfish

    Messages:
    22
    GitHub:
    SilverzPlayz
    how do I set the coordinate for it and the world name tho
     
  4. VirVolta

    VirVolta Silverfish

    Messages:
    16
    GitHub:
    VirvoltaSurMC
  5. TwistedFellow

    TwistedFellow Silverfish

    Messages:
    22
    GitHub:
    SilverzPlayz
    ok ima test
     
  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.