void loggedIn (CharacterConnection c, Character character) {
c.character = character;
// Add existing characters to new logged in connection.
for (Character other : loggedIn) {
AddCharacter addCharacter = new AddCharacter();
addCharacter.character = other;
c.sendTCP(addCharacter);
}
loggedIn.add(character);
// Add logged in character to all connections.
AddCharacter addCharacter = new AddCharacter();
addCharacter.character = character;
server.sendToAllTCP(addCharacter);
}