I'm working on my tpa system and have made a lot of progress, but I've run into an issue.
On line 8 it says that "can't understand this condition '{%arg-1%.accept}'" What that line it supposed to do is check if the variable {"Player the Player wants to teleport to".accept} is true, but it seems I can't do that by just inserting %arg-1%. Help would be appreciated.
Code:
command /tpa <player>:
description: Request to teleport to a player
trigger:
if arg-1 is online:
send "%player% would like to teleport to you, do /tpaccept to accept" to arg 1
send "Sending a teleport request to %arg 1%" to player
loop 10 times:
if {%arg-1%.accept}:
send "Request accepted!" to player
wait 1 seconds
send "Teleport request expired" to player
else:
send "That player is not online" to player
command /tpaccept:
description: Accept a teleport request
trigger:
loop 10 times:
set {%player%.accept} to true
wait 1 seconds
set {%player%.accept} to false