| 1 | package App::minecraft; | ||
| 2 | |||
| 3 | 1 | our $VERSION = '0.001'; | |
| 4 | |||
| 5 | =head1 NAME | ||
| 6 | |||
| 7 | App::minecraft - Backup and restore your Minecraft. Install mods. | ||
| 8 | |||
| 9 | =head1 USAGE | ||
| 10 | |||
| 11 | $ minecraft.pl backup | ||
| 12 | $ minecraft.pl install Shelf.zip | ||
| 13 | $ minecraft.pl install --jar /usr/local/bin/jar Shelf.zip | ||
| 14 | $ minecraft.pl restore --verbose | ||
| 15 | |||
| 16 | =head1 DESCRIPTION | ||
| 17 | |||
| 18 | As it stands this script is very limited. However, I did manage to successfully backup my Minecraft folder, install the Shelf mod in the sample directory and restore my Minecraft without any problems. | ||
| 19 | Remember to always perform a backup using the 'backup' parameter before installing any mod, because this script can, and probably will, corrupt your main jar file. So use it at your own peril! | ||
| 20 | |||
| 21 | In the future I'd like it to properly check the contents of each zip before doing anything. Some mods have different formats, and App::minecraft needs to be smart enough to handle those and know what to do with them. | ||
| 22 | |||
| 23 | =head1 AUTHOR | ||
| 24 | |||
| 25 | Brad Haywood <brad@perlpowered.com> | ||
| 26 | |||
| 27 | =head1 LICENSE | ||
| 28 | |||
| 29 | This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. | ||
| 30 | |||
| 31 | =cut | ||
| 32 | |||
| 33 | 1 | 1; |