Solved Offline player head in GUI

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Xeterios

Member
Mar 13, 2020
4
1
0
20
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?
 
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?

Pls use formatting next time.

Code:
format slot 4 of player with arg 1's skull named "&7Player &8: &f%player%" to close

if not working send errors + skript version + spigot/bukkit/etc version
 
Status
Not open for further replies.