9
0
mirror of https://gitlab.com/SamB440/rpgregions-2.git synced 2025-12-31 04:36:29 +00:00

Block main thread on disable to ensure data is saved

This commit is contained in:
SamB440
2021-03-20 16:05:49 +00:00
parent 8193d0b8b8
commit 64899f1e91
4 changed files with 14 additions and 7 deletions

View File

@@ -41,7 +41,7 @@ public interface IStorageManager {
* Removes an account from the storage cache and saves its data.
* @param uuid player's UUID
*/
void removeCachedAccount(UUID uuid);
CompletableFuture<Void> removeCachedAccount(UUID uuid);
/**
* Gets a UUID safe to use in databases.