/tp doesn't work for whatever reason

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

GK_Nico

Member
Jan 6, 2019
31
0
0
32
Hey I don't know what's wrong with that, could someone help me with this?




Code:
command /tp [<player>] [<player>]:
    permission: system.tp
    permission message: &7[&eSystem&7] &cDu hast keine Rechte dazu.
    trigger:
        if arg 1 is not set:
            message "&7[&eSystem&7] &7Benutze /tp player"
            stop
        if arg 1 is set:
            if arg 2 is not set:
                teleport player to arg 1
                message "&7[&eSystem&7] &7Du hast dich zum Spieler &e%arg 1% &7Teleportet"
                stop
        if arg 1 is set:
            if arg 2 is set:
                message "&7[&eSystem&7] &7Du hast &e%arg 1% &7zu dir Teleportet"
                teleport arg 1 to player
 
Hey I don't know what's wrong with that, could someone help me with this?




Code:
command /tp [<player>] [<player>]:
    permission: system.tp
    permission message: &7[&eSystem&7] &cDu hast keine Rechte dazu.
    trigger:
        if arg 1 is not set:
            message "&7[&eSystem&7] &7Benutze /tp player"
            stop
        if arg 1 is set:
            if arg 2 is not set:
                teleport player to arg 1
                message "&7[&eSystem&7] &7Du hast dich zum Spieler &e%arg 1% &7Teleportet"
                stop
        if arg 1 is set:
            if arg 2 is set:
                message "&7[&eSystem&7] &7Du hast &e%arg 1% &7zu dir Teleportet"
                teleport arg 1 to player
This section of the forum is to ask for specific skripts, not to ask for help on a skript created by yourself. Regarding your problem, this should work:
code_language.skript:
command /tp [<player>] [<player>]:
    permission: permission.usage
    permission mesasge: No permission message.
    trigger
        if arg 1 is not set:
            message "&7[&eSystem&7] &7Benutze /tp player"
            stop
        if arg 1 is set:
            if arg 2 is not set:
                teleport player to arg 1
                message "&7[&eSystem&7] &7Du hast dich zum Spieler &e%arg 1% &7Teleportet"
                stop
        if arg 1 is set:
            if arg 2 is set:
                message "&7[&eSystem&7] &7Du hast &e%arg 1% &7zu dir Teleportet"
                teleport arg 1 to arg 2
At the end of the code, you didn't put argument 1 to teleport to argument 2. That was the glitch. Because the rest of the code is correct. Although, you must specify what part of the code does not work for you.