I am trying to check if a player is trying to steal from the following gui but the issue is that the gui is named using arg-1 . How can I prevent stealing?
command /stats <offlineplayer>:
trigger:
set {_p} to arg-1
open chest with 3 rows named "&b%arg-1%'s Stats" to player
wait 1 tick
format slot 13 of player with skull of {_p} named "%arg-1%"
set slot set slots (integers between 0 and 8) and (integers between 19 and 27) to gray stained glass pane named ""
on inventory click:
if event-inventory = ```