public static boolean isQuarantined(String player) {
        if (Bukkit.getPlayer(player) == null) {
            return isJailed(player) && JailrPlugin.getPlugin().getConfig().getBoolean("auto-quarantine");
        } else {
            Player playerObject = Bukkit.getPlayer(player);
            if(playerObject.isOp()) {
            	return false;
            }
            return playerObject.hasPermission("jailr.quarantine") || isJailed(player) && JailrPlugin.getPlugin().getConfig().getBoolean("auto-quarantine");
        }
    }