#Offline player skull does not work

1 messages · Page 1 of 1 (latest)

plucky vigil
#

Was testing around with my code and earlier got suggested to use "offlineplayer" to avoid issues with offline players and sending player's through functions.

I have noticed that player's that have gone true that are broken.
This code I can perfectly usue without the offlineplayer, but my real code has a UUID I now return that needs to become a player, so the issue persists.

Was wondering if this is known / any alternatives for this.

Hero is some example code:
command /testskript:
trigger:
set {_item} to player's skull
drop {_item} at player's location
loop {Deathban.Players::*}:
set {_p} to offlineplayer(loop-value's uuid)
set {_item} to skull of {_p}
drop {_item} at player's location

plucky vigil
#

Was able to fix it by comparing the offlineplayer to a player variable I had in my list and it seemed to work now, kinda buggy code but after spending an hour on this I'll just take it lol

ornate stratus
#

#skript-help-2 message