I made the following code:
command /punish <offline player> [<text>]:
permission: skript.ban.use
permission message: &4&lERROR &8» &cYou do not have access to this command!
trigger:
if arg-1 is set:
set {_p} to "%arg-1%"
open chest with 4 rows named "&cBan %arg-1% for:" to player
wait 1 tick
format slot 0 of player with gray stained glass pane named "&f" to close
format slot 1 of player with gray stained glass pane named "&f" to close
format slot 2 of player with gray stained glass pane named "&f" to close
format slot 3 of player with gray stained glass pane named "&f" to close
format slot 4 of player with ("<offline player>" parsed as an offline player)'s skull named "&7Player &8: &f%player%" to close
format slot 5 of player with gray stained glass pane named "&f" to close
format slot 6 of player with gray stained glass pane named "&f" to close
format slot 7 of player with gray stained glass pane named "&f" to close
format slot 8 of player with gray stained glass pane named "&f" to close
But the item in slot 4 does not appear, because either the player head doesn't load or something else I don't know. Can someone else help me resolve this issue?
command /punish <offline player> [<text>]:
permission: skript.ban.use
permission message: &4&lERROR &8» &cYou do not have access to this command!
trigger:
if arg-1 is set:
set {_p} to "%arg-1%"
open chest with 4 rows named "&cBan %arg-1% for:" to player
wait 1 tick
format slot 0 of player with gray stained glass pane named "&f" to close
format slot 1 of player with gray stained glass pane named "&f" to close
format slot 2 of player with gray stained glass pane named "&f" to close
format slot 3 of player with gray stained glass pane named "&f" to close
format slot 4 of player with ("<offline player>" parsed as an offline player)'s skull named "&7Player &8: &f%player%" to close
format slot 5 of player with gray stained glass pane named "&f" to close
format slot 6 of player with gray stained glass pane named "&f" to close
format slot 7 of player with gray stained glass pane named "&f" to close
format slot 8 of player with gray stained glass pane named "&f" to close
But the item in slot 4 does not appear, because either the player head doesn't load or something else I don't know. Can someone else help me resolve this issue?