9
0
mirror of https://github.com/Xiao-MoMi/Custom-Nameplates.git synced 2025-12-24 17:39:25 +00:00
This commit is contained in:
XiaoMoMi
2024-02-02 02:19:17 +08:00
parent f7628c2db9
commit c69735ea2b
3 changed files with 28 additions and 7 deletions

View File

@@ -41,6 +41,13 @@ public interface DataStorageInterface {
*/
StorageType getStorageType();
/**
* Get a player's data by uuid
* This player can be an offline one
*
* @param uuid uuid
* @return player data
*/
CompletableFuture<Optional<PlayerData>> getPlayerData(UUID uuid);
CompletableFuture<Boolean> updatePlayerData(UUID uuid, PlayerData playerData);