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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user