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 Skript Teleport Command Not Working

Discussion in 'Skript' started by pokw, Apr 17, 2020.

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

    pokw Active Member

    Joined:
    Jun 3, 2019
    Messages:
    52
    Likes Received:
    1
    No errors are shown, but when I try to execute the command /contracttp, it says it's an unknown command.

    command /contracttp <player> <player>:
    usage: /contracttp <player1> <player2>
    description: &7Teleport two players to the contract room.
    trigger:
    teleport %arg-1% to location at 67.5, 73.5, 271.5 in world "world"
    teleport %arg-2% to location at 67.5, 73.5, 267.5 in world "world"
    send "&7Succesfully teleported."

     
  2. Best Answer:
    Post #5 by IDuckz_, Apr 25, 2020
  3. PanHack

    PanHack Active Member

    Joined:
    Dec 18, 2019
    Messages:
    143
    Likes Received:
    8
    Hi, Use codeblocks and try this code
    Code (Text):
    1. command /contracttp <player>:
    2.     usage: /contracttp <player>
    3.     description: &7Teleport two players to the contract room.
    4.     trigger:
    5.         if arg 1 is set:
    6.             teleport arg-1 to location at 67.5, 73.5, 271.5 in world "world"
    7.             teleport player to location at 67.5, 73.5, 267.5 in world "world"
    8.             send "&7Succesfully teleported." to player
    9.         else:
    10.             send "&7Who do you want teleport into contract room?" to player
     
  4. pokw

    pokw Active Member

    Joined:
    Jun 3, 2019
    Messages:
    52
    Likes Received:
    1
    I tried that code, but whenever I use /contracttp, it still says it's an unknown command. I've had this happen before and I haven't figured it out every time I did it, so now I'm just posting it on the forums (which I'm new to.)
    Also how do I use code blocks?
     
    #3 pokw, Apr 17, 2020
    Last edited: Apr 17, 2020
  5. PanHack

    PanHack Active Member

    Joined:
    Dec 18, 2019
    Messages:
    143
    Likes Received:
    8
    What's ur skript and server version? And if u type /skript what does it say in chat ?
     
  6. IDuckz_

    IDuckz_ Active Member

    Joined:
    Jul 25, 2019
    Messages:
    106
    Likes Received:
    2
    @pokw Are you sure you added that script file in "scripts" folder and reloading the file?
     
Thread Status:
Not open for further replies.

Share This Page

Loading...