help me

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

    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.

yonis

Member
Jul 14, 2019
2
0
0
Code:
command /warp [<text>]:
    permission: warp.create
    description: crea un warp
    trigger:
        if arg 1 is set:
            if {Warps::*} is not arg 1:
                message "&c(!)il warp %arg 1% non esiste"
            else:
                teleport the player to {warpto::%arg 1%::loc}
                message "&b&lteletrasportato al warp %arg 1%" to player
                stop
            if arg 1 is not set:
                message "&c(!) inserisci il nome del warp"
                
        
command /setwarp [<text>]:
    trigger:
        if player has permission "warps.setwarp" or "warps.*":
            if arg 1 is set:
                if {Warps::*} is not arg 1:
                    message "<white><bold>il warp <orange><bold>%arg 1% <white><bold>è stato creato con successo."
                    add "%arg 1%" to {Warps::*}
                    set {warpto::%arg 1%::loc} to location of player
                else:
                    message "&b&lil warp %arg 1% esiste già"
            if arg 1 is not set:
                message "&c(!) inserisci il nome del warp."


command /del warp [<text>]:
    trigger:
        if player has permission "warps.delwarp" or "warps.*":
            if arg 1 is set:
                if {Warps::*} is not arg 1:
                    message "&c(!) il warp %arg 1% non esiste"
                else:
                    message "<white><bold>warp <orange><bold>%arg 1% <white><bold>è stato eliminato"
                    remove "%arg 1%" from {Warps::*}
            if arg 1 is not set:
                message "&c(!) inserisci il nome del warp"



command /warps:
    trigger:
        send "&8&m-----------------------"
        send "&e&l -  Warps  - "
        send "&8&m-----------------------"
        loop {Warps::*}:
            message "  &f&l»&7 %loop-value%"

he say me:"the 1st argument is already a text so you should not put it in one"
 
Code:
command /warp [<text>]:
    permission: warp.create
    description: crea un warp
    trigger:
        if arg 1 is set:
            if {Warps::*} is not arg 1:
                message "&c(!)il warp %arg 1% non esiste"
            else:
                teleport the player to {warpto::%arg 1%::loc}
                message "&b&lteletrasportato al warp %arg 1%" to player
                stop
            if arg 1 is not set:
                message "&c(!) inserisci il nome del warp"
               
       
command /setwarp [<text>]:
    trigger:
        if player has permission "warps.setwarp" or "warps.*":
            if arg 1 is set:
                if {Warps::*} is not arg 1:
                    message "<white><bold>il warp <orange><bold>%arg 1% <white><bold>è stato creato con successo."
                    add "%arg 1%" to {Warps::*}
                    set {warpto::%arg 1%::loc} to location of player
                else:
                    message "&b&lil warp %arg 1% esiste già"
            if arg 1 is not set:
                message "&c(!) inserisci il nome del warp."


command /del warp [<text>]:
    trigger:
        if player has permission "warps.delwarp" or "warps.*":
            if arg 1 is set:
                if {Warps::*} is not arg 1:
                    message "&c(!) il warp %arg 1% non esiste"
                else:
                    message "<white><bold>warp <orange><bold>%arg 1% <white><bold>è stato eliminato"
                    remove "%arg 1%" from {Warps::*}
            if arg 1 is not set:
                message "&c(!) inserisci il nome del warp"



command /warps:
    trigger:
        send "&8&m-----------------------"
        send "&e&l -  Warps  - "
        send "&8&m-----------------------"
        loop {Warps::*}:
            message "  &f&l»&7 %loop-value%"

he say me:"the 1st argument is already a text so you should not put it in one"
It's just a warning. You can remove it by remove the quotes and percentage signs around `arg 1` from line 22 and 38
 
Status
Not open for further replies.