|
@@ -57,7 +57,7 @@ public class Player extends GPlayer {
|
|
|
|
|
|
this.refreshNewDay();
|
|
|
|
|
|
- for (ModuleManager manager : allManagers.values()) {
|
|
|
+ for (ModuleManager manager : this.allManagers.values()) {
|
|
|
try {
|
|
|
manager.onPlayerEvent(PlayerEventType.AFTER_LOGIN);
|
|
|
} catch (Exception e) {
|
|
@@ -99,7 +99,11 @@ public class Player extends GPlayer {
|
|
|
|
|
|
@Override
|
|
|
public void onLogoutUpdate() {
|
|
|
- this.logger.info("退出更新, 退出清理...");
|
|
|
+ this.logger.info("处理玩家下线逻辑 : {}, {}", this.getId(), this.data.name);
|
|
|
+
|
|
|
+ for (ModuleManager manager : this.allManagers.values()) {
|
|
|
+ manager.onPlayerEvent(PlayerEventType.OFFLINE);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@Override
|