I can't find anything wrong with my script but there is apparently errors, keep in mind that some of the commands that the script forces the player to run commands that have not been implemented yet and the GUI won't open when the script is ran.
CODE:
command /punish [<offline player>]:
trigger:
open chest with 3 rows named &4&lPunish %player% to player
format slot 0 with light gray glass named "&4" to be unstealable
format slot 1 with light gray glass named "&4" to be unstealable
format slot 2 with light gray glass named "&4" to be unstealable
format slot 3 with light gray glass named "&4" to be unstealable
format slot 4 of player with skull of ("%player%" parsed as an offline player) to be unstealable
format slot 5 with light gray glass named "&4" to be unstealable
format slot 6 with light gray glass named "&4" to be unstealable
format slot 7 with light gray glass named "&4" to be unstealable
format slot 8 with light gray glass named "&4" to be unstealable
format slot 9 with red terracotta named "&c&lBan" to be unstealable and run:
[make player execute command "/punishreasons"]
format slot 10 with red glazed terracotta named "&c&lTempban" to be unstealable and run:
[make player execute command "/punishtimes"]
format slot 12 with blue terracotta named "&b&lMute" to be unstealable and run:
[make player execute "/punishreasons"]
format slot 13 with blue glazed terracotta named "&b&lTempmute" to be unstealable and run: [make player execute "/punishtimes"]
format slot 15 with red terracotta named "&3&lWarn" to be unstealable and run: [make player execute "/punishreasons"]
CODE:
command /punish [<offline player>]:
trigger:
open chest with 3 rows named &4&lPunish %player% to player
format slot 0 with light gray glass named "&4" to be unstealable
format slot 1 with light gray glass named "&4" to be unstealable
format slot 2 with light gray glass named "&4" to be unstealable
format slot 3 with light gray glass named "&4" to be unstealable
format slot 4 of player with skull of ("%player%" parsed as an offline player) to be unstealable
format slot 5 with light gray glass named "&4" to be unstealable
format slot 6 with light gray glass named "&4" to be unstealable
format slot 7 with light gray glass named "&4" to be unstealable
format slot 8 with light gray glass named "&4" to be unstealable
format slot 9 with red terracotta named "&c&lBan" to be unstealable and run:
[make player execute command "/punishreasons"]
format slot 10 with red glazed terracotta named "&c&lTempban" to be unstealable and run:
[make player execute command "/punishtimes"]
format slot 12 with blue terracotta named "&b&lMute" to be unstealable and run:
[make player execute "/punishreasons"]
format slot 13 with blue glazed terracotta named "&b&lTempmute" to be unstealable and run: [make player execute "/punishtimes"]
format slot 15 with red terracotta named "&3&lWarn" to be unstealable and run: [make player execute "/punishreasons"]