9
0
mirror of https://github.com/WiIIiam278/HuskSync.git synced 2025-12-19 14:59:21 +00:00

feat: skip offline users on user data apply

This commit is contained in:
William278
2025-03-20 19:53:31 +00:00
parent ae657acee3
commit 370712c5b2

View File

@@ -44,6 +44,10 @@ public class LockstepDataSyncer extends DataSyncer {
@Override
public void syncApplyUserData(@NotNull OnlineUser user) {
this.listenForRedisData(user, () -> {
if (user.isOffline()) {
plugin.debug("Not applying data for offline user %s".formatted(user.getName()));
return false;
}
if (getRedis().getUserCheckedOut(user).isPresent()) {
return false;
}