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