Hello friends, is there any possible way I can make /trade [<player>] wait for {%player%.accept} to be true?
Heres the code:
thanks for the help <3
Heres the code:
Code:
command /tradeaccept [<player>]:
trigger:
if {%player%.request} is true:
set {%player%.accept} to true
send message "%player% has accepted your request!" to arg-1
make player execute command "/1 %arg-1%"
command /trade [<player>]:
trigger:
if {%player%.request} is false:
set {%player%.request} to "true"
send message "&6%player% &7has sent a trade request to you! do &6/tradeaccept %player% &7to begin trading!" to arg-1
if {%player%.accept} is true:
make player execute command "/1 [<player>]"
command /1 [<player>]:
trigger:
wait 30 ticks
open chest with 6 rows named "&6Trade" to player
format slot 0 of player with red stained glass pane named " " to be unstealable
format slot 1 of player with gray stained glass pane named " " to be unstealable
format slot 2 of player with player's head named "&8&l%player%" to be unstealable
format slot 3 of player with gray stained glass pane named " " to be unstealable
format slot 4 of player with gray stained glass pane named " " to be unstealable
format slot 5 of player with gray stained glass pane named " " to be unstealable
format slot 6 of player with arg-1's head named "&8&l%arg-1%" to be unstealable
format slot 7 of player with gray stained glass pane named " " to be unstealable
format slot 8 of player with red stained glass pane named " " to be unstealable
format slot 9 of player with gray stained glass pane named " " to be unstealable
format slot 17 of player with gray stained glass pane named " " to be unstealable
format slot 18 of player with gray stained glass pane named " " to be unstealable
format slot 26 of player with gray stained glass pane named " " to be unstealable
format slot 27 of player with gray stained glass pane named " " to be unstealable
format slot 35 of player with gray stained glass pane named " " to be unstealable
format slot 36 of player with gray stained glass pane named " " to be unstealable
format slot 44 of player with gray stained glass pane named " " to be unstealable
format slot 45 of player with gray stained glass pane named " " to be unstealable
format slot 46 of player with gray stained glass pane named " " to be unstealable
format slot 47 of player with gray stained glass pane named " " to be unstealable
format slot 48 of player with gray stained glass pane named " " to be unstealable
format slot 49 of player with gray stained glass pane named " " to be unstealable
format slot 50 of player with gray stained glass pane named " " to be unstealable
format slot 51 of player with gray stained glass pane named " " to be unstealable
format slot 52 of player with gray stained glass pane named " " to be unstealable
format slot 53 of player with gray stained glass pane named " " to be unstealable
format slot 13 of player with gray stained glass pane named " " to be unstealable
format slot 22 of player with gray stained glass pane named " " to be unstealable
format slot 31 of player with gray stained glass pane named " " to be unstealable
format slot 40 of player with gray stained glass pane named " " to be unstealable
command /tradereset:
trigger:
set {%player%.request} to false
set {%player%.accept} to false
command /tradecheck:
trigger:
send message "%{%player%.request}%" to player
send message "%{%player%.accept}%" to player
thanks for the help <3