public static GameMode getGameMode(String gamemode) {
		if (gamemode.equalsIgnoreCase("survival")
				|| gamemode.equalsIgnoreCase("0")) {
			return GameMode.SURVIVAL;
		} else if (gamemode.equalsIgnoreCase("creative")
				|| gamemode.equalsIgnoreCase("1")) {
			return GameMode.CREATIVE;
		} else if (gamemode.equalsIgnoreCase("adventure")
				|| gamemode.equalsIgnoreCase("2")) {
			return GameMode.ADVENTURE;
		} else {
			return GameMode.SURVIVAL;
		}
	}