public boolean userExists(String name) { int i; connection you; for (i = 0; i < connections.size(); i++) { you = (connection) connections.elementAt(i); if (you.getNickname().equals(name)) { return true; } } return false; }
public void removeConnection(connection c) { connections.removeElement(c); sendGlobalServerMsg("Benutzer " + c.getNickname() + " hat den Server verlassen"); }