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.

Teleporting to other world

Discussion in 'Skript' started by Sander Vereecke, Apr 13, 2020.

Thread Status:
Not open for further replies.
  1. Sander Vereecke

    Joined:
    Dec 19, 2019
    Messages:
    31
    Likes Received:
    2
    Hello Forum,
    I have a problem when I wanna send "arg-1" to my new world "ul_Parkour".
    Thanks.

    Code (Text):
    1. command /parkourteleport <player> <text> <integer>:
    2.     permission: rank.admin
    3.     permission message: &8[&f&lServer&8] &7No Permissions!
    4.     trigger:
    5.         if arg-3 is 1:
    6.             send "&8[&f&lServer&8] Complete the previous ones first!" to arg-1
    7.         if arg-3 is 2:
    8.             if arg-2 is "plains":
    9.                 teleport arg-1 to location at 9.5, 15, 6.5 in world "ul_Parkour"
    10.             if arg-2 is "sunflowerplains":
    11.                 teleport arg-1 to location at 134.5, 26, 196.5 in world "ul_Parkour"
    Code (Text):
    1. Line 431: Can't understand this condition/effect: teleport arg-1 to location at 9.5, 15, 6.5 in world "ul_Parkour" (line 431: teleport arg-1 to location at 9.5, 15, 6.5 in world "ul_Parkour"') (The Parser doesn't support every syntax element.)
    2.  
    3. Line 433: Can't understand this condition/effect: teleport arg-1 to location at 134.5, 26, 196.5 in world "ul_Parkour" (line 433: teleport arg-1 to location at 134.5, 26, 196.5 in world "ul_Parkour"') (The Parser doesn't support every syntax element.)
     
  2. HiqqhFive

    Supporter

    Joined:
    Jan 28, 2017
    Messages:
    60
    Likes Received:
    6
    Hey, try this:

    Code (Text):
    1. command /parkourteleport <player> <text> <integer>:
    2.     permission: rank.admin
    3.     permission message: &8[&f&lServer&8] &7No Permissions!
    4.     trigger:
    5.         if arg-3 is 1:
    6.             send "&8[&f&lServer&8] Complete the previous ones first!" to arg-1
    7.         if arg-3 is 2:
    8.             if arg-2 is "plains":
    9.                 teleport player to world "ul_Rarkour"
    10.                 teleport player to location at 9.5, 15, 6.5
    11.                 #teleport arg-1 to location at 9.5, 15, 6.5 in world "ul_Parkour"
    12.             if arg-2 is "sunflowerplains":
    13.                 teleport player to world "ul_Rarkour"
    14.                 teleport player to location at 134.5, 26, 196.5
    15.               #teleport arg-1 to location at 134.5, 26, 196.5 in world "ul_Parkour"
    16.  
     
  3. Sander Vereecke

    Joined:
    Dec 19, 2019
    Messages:
    31
    Likes Received:
    2
    It didn't work but I got it fixed
     
  4. HiqqhFive

    Supporter

    Joined:
    Jan 28, 2017
    Messages:
    60
    Likes Received:
    6
    On my Server it works without errors.
     
  5. dxcf

    dxcf Member

    Joined:
    Apr 8, 2020
    Messages:
    26
    Likes Received:
    0
    I suggest using set command then use variable for location

    set {parkour} to player’s location

    teleport player to {parkour}
     
Thread Status:
Not open for further replies.

Share This Page

Loading...