private String getCommand(String txt) {
		String mes = txt;
		String result = "";
		// get payload
		if (txt.contains("payload")) {
			int tmpbeg = txt.lastIndexOf("payload");
			tmpbeg = tmpbeg + 8;
			String gamePlayerId = txt.substring(tmpbeg, tmpbeg + 3);
			txt = txt.substring(tmpbeg + 3);
			int tmpend = txt.indexOf("$");
			// set content == data from client (for example input data)
			// get hole content!
			try {
				content = txt.substring(1, tmpend);
			} catch (Exception e) {
				System.out.println("Kein Inhalt vorhanden");
			}
			// if active player found: set active player
			try {
				getactivePlayer(gamePlayerId);
			} catch (Exception e) {
				System.out.println("Player not found");
				return "PLAYERNOTFOUND";
			}
		}
		// get reason-command
		if (mes.contains("reason")) {
			int beg = mes.lastIndexOf("reason");
			beg = beg + 7;
			mes = mes.substring(beg);
			int end = mes.indexOf("$");
			String message = "";
			message = mes.substring(0, end);
			return message;
		}
		return result;
	}