code_language.skript:
command /uninviti:
trigger:
open an anvil gui named "Name2" to player with default text "USERNAME TO UNTRUST" and with item light blue stained glass
on close anvil gui named "Name2":
set {_INPUT2} to event-text
wait 1 tick
execute player command "/plot remove %{_INPUT2}% untrust"
I was wondering how I would go about formatting the middle slot of this anvil GUI as a green glass pain that is named Submit and when clicked closes the Anvil GUI to run the "on close anvil gui" code. (Credit to: ShaneBee for this code).