Try this it's a tp ask command
Command are: /tpask <player> ( /tpa ) /tpaccept ( /tpac ) /tpdeny ( /tpd )
command /tpask [<player>]:
aliases: /tpa
trigger:
if arg-1 is set:
if arg-1 is online:
if {tpalist::*} contains arg-1:
send "&a%arg-1% &falready have a tpa request pending."
else:
if arg-1 is player:
send "&fThis is &ayou!"
else:
add arg-1 to {tpalist::*}
add player to {tpalist.%arg-1%::*}
send "&bYou have a tpa request.%newline%&aType /tpaccept to accept it.%newline%&cType /tpdeny to deny it." to arg-1
send "&fYou have sent a tpa request to &a%arg-1%." to player
else:
send "&a%arg-1% &fis &coffline."
else:
send "&fPlease define a &aplayer."
command /tpaccept:
aliases: /tpac
trigger:
if {tpalist::*} contains player:
send "&aAccepting &ftpa request..."
remove player from {tpalist::*}
send "&fYou have accepted &a%player%&f's tpa request." to player
wait 1 second
teleport {tpalist.%player%::*} to player
else:
send "&fYou have &cno &ftpa requests."
command /tpdeny:
aliases: /tpd
trigger:
if {tpalist::*} contains player:
send "&cDenying &ftpa request..."
remove player from {tpalist::*}
send "&fYou have &cdenied &a%player%&f's tpa request." to player
else:
send "&fYou have &cno &ftpa requests."