9
0
mirror of https://github.com/Xiao-MoMi/Custom-Fishing.git synced 2025-12-29 03:49:07 +00:00

fix lock not released if shutdown the server when editing offline player data

This commit is contained in:
XiaoMoMi
2023-09-07 04:14:32 +08:00
parent 32d309c192
commit 5edd6fbb4b
7 changed files with 14 additions and 10 deletions

View File

@@ -17,6 +17,7 @@
package net.momirealms.customfishing.api.data;
import net.momirealms.customfishing.api.data.user.OfflineUser;
import net.momirealms.customfishing.api.data.user.OnlineUser;
import java.util.Collection;
@@ -35,5 +36,5 @@ public interface DataStorageInterface {
CompletableFuture<Boolean> savePlayerData(UUID uuid, PlayerData playerData, boolean unlock);
void saveOnlinePlayersData(Collection<OnlineUser> users, boolean unlock);
void savePlayersData(Collection<? extends OfflineUser> users, boolean unlock);
}