Carpet

Carpet

2M Downloads

[Feature Request][Scarpet] Allow scarpet to reference to old/offline players

Crec0 opened this issue ยท 3 comments

commented

It would be amazing if we could refer to old/offline players and ability to use all the functions along with.
Current behavior
player('offlinePlayerName') -> null

commented

Would be difficult though, since most functions require internally a ServerPlayerEntity, which is basically an online player.

Maybe fake players with those names could be spawned for those purposes, given they share most info with the real offline players (as a workaround).

commented

I mainly want to work with statistics app, checking if players were fake or real, their inventory, their last pos and stuff like that. If fake players are used, it might fail the the fake player test so the process of filtering out the reals from fakes.
Is there no way to get the data from the playerdata folder ?

commented

Then that looks a bit like #808. Maybe you could move it manually and it may work by renaming to .nbt, but right now there's no way, no. I also think it could be useful to have a way to access it even if it's just as nbt data.