public boolean checkpermissions(Player player, String action) {
		try {
			if (player.isOp()) {
				return true;
			}
			if (player.hasPermission(action) || player.hasPermission(action.toLowerCase())) {
				return true;
			} else {
				sendErrorMessage(player, action);
				return false;
			}
		} catch (Exception e) {
			sendGeneralErrorMessage(player, e);
			e.printStackTrace();
			return false;
		}

	}