if (this.isLoggedIn() != paramLoggedIn) { this.loggedIn = paramLoggedIn;   if (paramLoggedIn) {   if (this.isGuest()) { this.userAdministration.incNumCurrentGuests(); } else { this.userAdministration.incNumCurrentUsers();
if (this.isLoggedIn() != paramLoggedIn) { this.loggedIn = paramLoggedIn;  if (paramLoggedIn) {  if (this.isGuest()) { this.userAdministration.incNumCurrentGuests(); } else { this.userAdministration.incNumCurrentUsers(); } Debug.println(Debug.MEDIUM, "User: logged in"); }  else {  this.setCurrentChannel(null); this.setClientServant(null);  if (this.isGuest()) { this.userAdministration.decNumCurrentGuests(); this.removeYou(); }  else { this.userAdministration.decNumCurrentUsers(); } Debug.println(Debug.MEDIUM, "User: logged out"); }
  public synchronized void setIsLoggedIn(boolean paramLoggedIn) {    // nur wenn sich der Status ndert    if (this.isLoggedIn() != paramLoggedIn) {      this.loggedIn = paramLoggedIn;      // User wird eingeloggt      if (paramLoggedIn) {        // Gast bzw. Userzaehler in userAdministration erhoehen        if (this.isGuest()) {          this.userAdministration.incNumCurrentGuests();        } else {          this.userAdministration.incNumCurrentUsers();        }        Debug.println(Debug.MEDIUM, "User: logged in");      }      // User wird ausgeloggt      else {        // betroffene assocs aktualisieren        this.setCurrentChannel(null);        this.setClientServant(null);        // falls Gast, Objekt aus der Userliste entfernen, Gastzhler erniedrigen        if (this.isGuest()) {          this.userAdministration.decNumCurrentGuests();          this.removeYou();        }        // kein Gast, nur Userzhler erniedrigen        else {          this.userAdministration.decNumCurrentUsers();        }        Debug.println(Debug.MEDIUM, "User: logged out");      }    }  }