private File[] listFilesOrError(File folder) {
        File[] contents = folder.listFiles();
        if (contents == null) {
            plugin.getLogger().severe("The updater could not access files at: " + updateFolder.getAbsolutePath());
            return new File[0];
        } else {
            return contents;
        }
    }