Пример #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));
 }