Save and invalidate on quit (bukkit)

This commit is contained in:
Draycia authored and Josua Parks committed 2021-11-24 21:26:29 -08:00
1 parent c36fed6f43
commit 15c994bdbd
4 files changed
+72 -8

No files matched your search

@@ -50,4 +50,13 @@ public interface UserManager<C extends CarbonPlayer> {
*/
CompletableFuture<ComponentPlayerResult<C>> savePlayer(final C player);
/**
* Saves the {@link CarbonPlayer}, returns the result, and invalidates the player entry.
*
* @param player the player to save
* @return the result
* @since 2.0.0
*/
CompletableFuture<ComponentPlayerResult<C>> saveAndInvalidatePlayer(final C player);
}