ZipExtractor - Extract and Compress ZIP, RAR, JAR, PACK, and XZ archives through minecraft


#1

This is a discussion topic for the Ore project, ZipExtractor. View the full project on Ore for downloads and more information.


Resources

Wiki | Source | Dev Builds | Issue Tracker​

ZipExtractor is an administrative utility plugin allowing the compression/extraction of archived files through minecraft command. This plugin is extremely useful for dealing with archives over FTP, which does not provide support for neither compression nor extraction. While many safeguards are in place, please note that there is no undo button. Overridden files cannot be recovered.

The source and destination file paths are saved inside of the config.yml. This means that only one can be set at a time. If you edit these values directly in the config.yml you must reload the plugin for the new values to take effect.

Donate

Features

  • Extraction of ZIP, RAR, JAR, PACK, and XZ archives.
  • Compression of any file or directory into the ZIP format.
  • Compression of any JAR file to the PACK format, and any non-directory file to the XZ format.
  • Queueable operations if you have many extractions/compressions to perform.
  • Configurable Thread Pool Executor allowing you to set a maximum queue size and maximum number of threads to run at once. Incase of an emergency the Thread Pool can be shutdown at anytime.
  • Option to be warned if an extraction/compression would result in files being overriden.
    • If enabled, users will require an additional permission in order to proceed with the process.
    • For extractions, you can view every file which would be overriden prior to proceeding with the process.
  • Metrics by bStats

You can find more extensive details on the wiki.

Wiki Contents

FAQ

Where can I find more information about this plugin?

We keep our wiki page updated to reflect the latest and most useful information about this plugin. If you have further questions don’t hesitate to ask the developer.

How can I report an issue or request a feature?

You may use our issue tracker to report issues and request new features be added. If you need immediate support you may also try contacting the developer directly.

Discord Consider also joining our Discord Server.

Which version should I use?

You should try to use the version uploaded here on the Sponge page. All versions posted here are considered releases and have undergone extensive testing.
Dev builds are also provided, however they are usually unstable and not feature complete. Only use these builds if you are interested in testing new versions or if for some reason you need the absolute latest changes.

Screenshots


Command List


Setting Source


Setting Destination


Begining Extraction


Extraction halted when conflicts are detected


Console Output

View ZipExtractor on Spigot

View ZipExtractor on DevBukkit


#2

A new version has been released for ZipExtractor, it is available for download here.


Release 2.1.0 - Added Tab Completion for File Paths

This update adds tab completions for file paths with the setsrc and setdest commands. This functions similarly to tab completion in bash, start typing the file and press tab to traverse the file tree. A new configuration option has been added to allow disabling tab completions. Please update your configs.

Console vs In-Game

Tab completions work perfectly if the path you are tabbing does not include spaces. If the path does include a space, you will need to break the tabbing operation (by adding an extra character) and then resume it (remove the character and tab again).

On Bukkit, spaces are not a problem in the console.

On Sponge, spaces are escaped in the console. You need to remove the escape characters.

Ex.
You are trying to get to ./plugins/MyPlugin/target.zip. There is another folder called My Folder in the plugins directory. You take the following steps.

  • Type /ze setsrc ./pl and then hit tab.
  • The value /ze setsrc ./plugins/ is autofilled.
  • Continue; /ze setsrc ./plugins/My and hit tab.
  • The value /ze setsrc ./plugins/My Folder is autofilled.
    • If you continue to hit tab in an attempt to have it switch to MyPlugin, the autocompletion will fail. This will confuse minecraft, because a space means that we are now in another argument. It will only update whatever is after the space. For example, the value /ze setsrc ./plugins/My ./plugins/MyPlugins would be autofilled. This is clearly not correct.
    • You would need to manually change it to /ze setsrc ./plugins/MyP and then hit tab to get the desired result.
    • Note If your target file was at ./plugins/My Folder/target.zip, you could simply type a / and hit tab. This would work.

Sponge

Additionally on Sponge, a space is added after you finish a single tab completion. Simply remove the space and tab again to keep going.

Configuration Value

Some servers may not want this tab completion feature for security reasons. A configuration value has been added to disable it. Simply change general_settings.tab_complete_files to false in the configuration.

Other changes

You no longer need to encapsulate file paths with quotes if they contain spaces. The setsrc and setdest commands will now concatenate all subsequent arguments.

Ex. /ze setsrc ./My Cool Directory/WithAlot/of spaces.txt


New Features

Changes

Dependency Upgrades