コード例 #1
0
  private void onExit(Player player) {
    User user = UserManager.getUser(player);
    if (user == null) return;
    user.setOffline();

    EventManager.call(new UserExitEvent(user));
    UserManager.removeUser(player);
  }
コード例 #2
0
 @Override
 public void register(User user) {
   user.addManager(new UserSkillManager(user));
 }