-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
if ((tUser == null || tUser.isLocked()) && this.mRetry <= RETRY_COUNT) {
Log.debug("Load user data " + this.mName + " fail " + mRetry + (tUser == null ? "(no data and wait)" : "(Locked)"));
} else {
if (tUser != null && tUser.isLocked()) {
if (!this.mPlugin.getConfigManager().mForceUseLockData) {
if (this.tryKickIfError()) {
Log.info("用户数据锁定,踢出玩家");
return;
}
}
Log.warn("Use locked data to restore user " + this.mName);
}
this.restoreUser(tUser, false);
Bukkit.getScheduler().callSyncMethod(this.mPlugin, Executors.callable(() -> Bukkit.getPluginManager().callEvent(new PlayerDataLoadCompleteEvent(this.mPlayer.getPlayer()))));
break;
}
这里要是lock为1 就不会走restore 崩服或者直接x掉服务器时 数据库中 lock会变成1 然后就进不去服了
Metadata
Metadata
Assignees
Labels
No labels