TuSKe ma zepsute użycie run w ten sposób. Zamiast tego spróbuj użyć funkcji:
format gui slot <slot> of player with <item> to close then run function jakasfunkcja()
Wtedy tworzysz sobie funkcję, np.:
function nadajRange(gracz: player, cel: player, ranga: text, nazwa: text):
execute {_gracz} command "lp user %{_cel}% parent set %{_ranga}%"
send "&fOd teraz Twoja ranga to: %{_nazwa}%" to {_cel}
i formatujesz slot w ten sposób:
format gui slot 1 of player with netherite block named "&4Wlasciciel" to close then run function nadajRange(player, arg 1, "wlasciciel", "&4Wlasciciel")