Warp script deleting warps

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

Kuzifes

Member
Apr 25, 2017
16
0
0
26
Full Code:
Code:
:
   trigger:
       if player has permission "warp.setwarp" or "warp.*":
           if arg 1 is set:
               remove arg 1 from {warps::*}
               wait 1 tick
               message " "
               message "&e&l(!) %arg 1% has been set as a Warp."
               message " "
               add arg 1 to {warps::*}
               set {warpTP::%arg 1%} to location of player
           if arg 1 is not set:
               message "&c(!) Please specify a warp name."
       else:
           message "&cYou do not have permission to set a warp."
command /warps:
   trigger:
       message "&6&lWarps:"
       loop {warps::*}:
           message "&7* %loop-value%"

command /delwarp [<text>]:
   trigger:
       if player has permission "warp.delwarp" or "warp.*":
           if arg 1 is set:
               message " "
               message "&c(!) %arg 1% has been removed from the list of warps."
               message " "
               remove arg 1 from {warps::*}
           if arg 1 is not set:
               message "&c(!) Please specify a warp name."
       else:
           message "&c(!) You do not have permission to execute this command."


Troubleshooting: When I use /delwarp to delete the warp, the location is still stored in the list without a name, anyone now how I can delete them with delwarp too?
 
Status
Not open for further replies.