Hello so I have a script to make a command that allows you to see an offline player's inventory which worked until I updated SkBee past 2.0 or 2.5, don't remember and now i just get the error : "world/playerdata/%the UUID of the 1st argument%" is not a date - when using "nbt compound from"
here's the code :
for versions, check SS
here's the code :
Code:
command /invsee <offline player>:
permission: staff.admin
trigger:
if arg-1 is online:
open inventory of arg-1 to player
else if arg-1 has played before:
set {_c} to (chest inventory with 4 rows)
set {_inv::*} to (tag "Inventory" of file nbt compound from "{@world}/playerdata/%arg-1's uuid%")
loop {_inv::*}:
set {_s} to (tag "Slot" of loop-value)
delete (tag "Slot" of loop-value)
set slot {_s} of {_c} to item from nbt loop-value
open {_c} to player
else:
send "&c%arg% &chas not played before"
for versions, check SS
Last edited: