Full Code:
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?
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?