public static ChatCommand getCommand(byte cmd) {
		if (cmd == 1)
			return NAME_CHANGE;
		else if (cmd == 4)
			return TEXT_ALL;
		else if (cmd == 5)
			return TEXT_ONE;
		else if (cmd == 19)
			return VERSION;
		else if (cmd == 26)
			return PING_REQUEST;
		else if (cmd == 27)
			return PING_RESPONSE;
		else if (cmd == 30)
			return SNOOP;
		else if (cmd == 31)
			return SNOOP_DATA;
		else if (cmd == 32)
			return SNOOP_COLOR;
			
		return END;
	}