public void registerName (String name) {
			// Do nothing if the player already registered a name.
			if (this.name != null) return;
			// Do nothing if the name is invalid.
			if (name == null) return;
			name = name.trim();
			if (name.length() == 0) return;
			// Store the player's name.
			this.name = name;
			// Add a "connected" message to everyone's chat frame, except the new player.
			String message = name + " connected.";
			for (Player player : players)
				if (player != this) player.frame.addMessage(message);
			// Set the names on everyone's chat frame.
			updateNames();
		}