[SPIGOT-6262] Offline player persistent data storage Created: 01/Dec/20  Updated: 28/Feb/21

Status: Open
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: tristanverduzco Assignee: Unassigned
Resolution: Unresolved Votes: 5
Labels: None

Version: git-Spigot-a19903d-e1ebdd9
Guidelines Read: Yes

 Description   

I'm not 100% sure if this is possible, but it would be a really nice feature if you could access the PersistentDataContainer of an offline player. The only workaround currently is to add offline players to a que of sorts, so the data can be edited on login.



 Comments   
Comment by V v [ 28/Feb/21 ]

@Phillip I want to be able to do this programmatically, not with an nbt editing program. As in, automatically when certain events fire in the game.

Comment by Phillip [ 28/Feb/21 ]

It has already been commented that there are methods to complete the task's.

Are you just being confused by terminology?

Comment by V v [ 27/Feb/21 ]

This would be a great feature to add. Extremely useful. If anyone is able to, please PR this.

Comment by Airtheon Thesalion [ 12/Dec/20 ]

I mean you can, but not using the Spigot API. Persistent player data is stored in the player's NBT file and that is readable and writable using an NBT editor program. The cases where it isn't stored there is when plugins use their own persistent data storage solution, but this change won't help you with that.

Also, I am not entirely sure about this, but I think you can use the API to access a list of all players that have ever joined the server.

Generated at Wed Dec 25 06:44:06 UTC 2024 using Jira 9.12.15#9120015-sha1:4d9c4bd7a744d02f6fd1c40b1e7bc5cff95adbdc.