* @param client
	 */
	private void cmd_mail(final String arg, final Client client) {

		final Player player = getPlayer(client);

		if (arg.equals("")) { // if no arguments
			client.write("Checking for unread messages...\n");

			int messages = player.getMailBox().numUnreadMessages();

			if (messages == 0) {
				client.write("You have no unread messages.\n");
			}
			else {
				client.write("You have " + String.valueOf(messages) + " unread messages.\n");
			}
		}
		else {
			final int msg = Utils.toInt(arg, -1);

			if (msg > -1 && msg < player.getMailBox().numUnreadMessages()) {
				final Mail mail = player.getMailBox().get(msg);

				send("Message #: " + msg, client);

				for (final String s : mail.getLines()) {
					send(s, client);
				}

				if (mail.isUnread()) {
					mail.markRead();
					send("< mail marked as read >", client);
				}
			}
			else {
				send("No such existing message!", client);
			}
		}
	}