1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

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

Solved Teleport player in world?

Discussion in 'Skript' started by CassioTDS, Jul 8, 2019.

Thread Status:
Not open for further replies.
  1. CassioTDS

    CassioTDS Member

    Joined:
    Jul 8, 2019
    Messages:
    13
    Likes Received:
    0
    Hello.

    Whenever I try teleporting a player in a specific wold and location, it dosen't work... Also.. I forgot how to set the spawn point of the player to its location?
    This is the error:
    Code (Text):
    1.  
    2. [20:59:11 ERROR]: '-67, 67, 58' is not an entity type (simple motd.sk, line 285: teleport player to -67, 67, 58 in world "survival"')
    3.  
    Here is my code:

    Code (Text):
    1.  
    2. command /survival:
    3.     trigger:
    4.         teleport player to -67, 67, 58 in world "survival"
    5.         set player's spawn location
    6.         message "&aWHOSHH.. Tips:"
    7.         message "&a-Try to hide your house! Players can greif your home!"
    8.         message "&a-Try to survive!"
    9.         message "&a-Even if the server restarts, you die or you leave, YOUR HOUSE WILL STILL BE THERE!"
    10.         message "&aThanks for playing BlobDob lands survival!"
    11.  


     
  2. Best Answer:
    Post #4 by PatoFrango, Jul 9, 2019
  3. Skriptex

    Skriptex Member

    Joined:
    Jul 9, 2019
    Messages:
    4
    Likes Received:
    1
    This should work:

    Code (Text):
    1. command /survival:
    2.     executable by: players
    3.     trigger:
    4.         set {_x} to -67
    5.         set {_y} to 67
    6.         set {_z} to 58
    7.         set {_world} to "survival"
    8.         set {_location} to the location at {_x}, {_y}, {_z} in {_world}
    9.         teleport the player to {_location}
     
  4. CassioTDS

    CassioTDS Member

    Joined:
    Jul 8, 2019
    Messages:
    13
    Likes Received:
    0
    Does not work
     
  5. PatoFrango

    PatoFrango Active Member

    Joined:
    Jul 12, 2017
    Messages:
    240
    Likes Received:
    14
    For setting the player's spawn point, use
    http://skriptlang.github.io/Skript/expressions.html#ExprRespawnLocation

    For teleporting the player, use
    Code (Text):
    1. teleport player to location at -67, 67, 58 in world "survival"
    If you're trying to teleport the player to a different world, make sure your world has been imported through your multiworld plugin.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...