In my gui im making a player run a command that is made in skript. It says that the command is not a text and it won't show the item in the GUI.
Output:
Code:
command /punish [<offline player>]:
trigger:
if player has permission "exige.punish":
if arg-1 is set:
if arg-1 has played before:
open chest with 3 rows named "&aExige Punisher" to player
wait 1 tick
format slot 0 of player with light gray glass named "&7" with lore "" to run ""
format slot 1 of player with light gray glass named "&7" with lore "" to run ""
format slot 2 of player with light gray glass named "&7" with lore "" to run ""
format slot 3 of player with light gray glass named "&7" with lore "" to run ""
format slot 4 of player with light gray glass named "&7" with lore "" to run ""
format slot 5 of player with light gray glass named "&7" with lore "" to run ""
format slot 6 of player with light gray glass named "&7" with lore "" to run ""
format slot 7 of player with light gray glass named "&7" with lore "" to run ""
format slot 8 of player with light gray glass named "&7" with lore "" to run ""
format slot 9 of player with light gray glass named "&7" with lore "" to run ""
format slot 11 of player with barrier named "&aBan Reasons" with lore "" to close then run [make player execute command "bpunish %arg-1%"]
format slot 17 of player with light gray glass named "&7" with lore "" to run ""
format slot 18 of player with light gray glass named "&7" with lore "" to run ""
format slot 19 of player with light gray glass named "&7" with lore "" to run ""
format slot 20 of player with light gray glass named "&7" with lore "" to run ""
format slot 21 of player with light gray glass named "&7" with lore "" to run ""
format slot 22 of player with light gray glass named "&7" with lore "" to run ""
format slot 23 of player with light gray glass named "&7" with lore "" to run ""
format slot 24 of player with light gray glass named "&7" with lore "" to run ""
format slot 25 of player with light gray glass named "&7" with lore "" to run ""
format slot 26 of player with light gray glass named "&7" with lore "" to run ""
else:
send message "{@prefix} &cThat player has never played before!"
else:
send message "{@prefix} &cYou need to specify a player to punish!"
else:
send message "Unknown Command."
command /bpunish [<offline player>]:
trigger:
if player has permission "exige.punish":
if arg-1 is set:
if arg-1 has played before:
else:
send message "{@prefix} &cThat player has never played before!"
else:
send message "{@prefix} &cYou need to specify a player to punish!"
else:
send message "Unknown Command."
Output: