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<eletrasportato 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"