Solved Skript Teleport Command Not Working

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

pokw

Active Member
Jun 3, 2019
53
1
8
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."
 
Hi, Use codeblocks and try this code
Code:
command /contracttp <player>:
    usage: /contracttp <player>
    description: &7Teleport two players to the contract room.
    trigger:
        if arg 1 is set:
            teleport arg-1 to location at 67.5, 73.5, 271.5 in world "world"
            teleport player to location at 67.5, 73.5, 267.5 in world "world"
            send "&7Succesfully teleported." to player
        else:
            send "&7Who do you want teleport into contract room?" to player
 
Hi, Use codeblocks and try this code
Code:
command /contracttp <player>:
    usage: /contracttp <player>
    description: &7Teleport two players to the contract room.
    trigger:
        if arg 1 is set:
            teleport arg-1 to location at 67.5, 73.5, 271.5 in world "world"
            teleport player to location at 67.5, 73.5, 267.5 in world "world"
            send "&7Succesfully teleported." to player
        else:
            send "&7Who do you want teleport into contract room?" to player

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?
 
Last edited:
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?
What's ur skript and server version? And if u type /skript what does it say in chat ?
 
Status
Not open for further replies.