SimpleZIPMapRestorer
Introduction : what is this plugin about ?
I'm french, so please do not expect a perfect English.
Hello world ! Today i present my brand new plugin.
I was looking for a plugin to restore maps in order not to have to re-upload and restart special maps like Towers or Platform Power on my server. I never found anything like that, so i decided to make my own very simple plugin to do that.
How to use this plugin
Getting started
Install it like any plugin, then run your server. In plugins/SimpleZIPMapRestorer folder, you will see a folder called "backups". In this folder, you have to put your map's zip (note : in the zip there must be THE folder of the map, not just the files that are in there).
The commands
Now you have to use those commands :
- worldrestorer (or restoreworld or rw or wr) <mapname> [timetowaitinseconds] : main command. It will teleport all the players in the world to the main world, unload the world, delete the world folder and then extract the world folder from the zip. You can specify a time to wait in seconds before restoring the world, which is really useful when you use command blocks.
- worldloader (or loadworld or lw or wl) <mapname> : because you may not want to use a multi-world management like Multiverse, you can load worlds with this command. Note : if the world isn't found, it will try to extract the world from a backup file.
- worldtp (or wtp or tpw) <worldname> : will teleport you to the world's spawn you specified.
Note that you can use spaces in the world's name, but it can't finish by a combo : space + number.
Another note : you can put "this" as the world name (players and command block only) so that it will reload the world you/he/she/it is in.
When do I need to use this plugin ?
You may need this plugin when you want to automatize your server FUN maps management. Actually, you can use this with a command block ! So if you put a command block at the end of the map's redstone, you can make it reload with this plugin. Be sure you have activated command blocks first. :p
Advanced use
Command list
Here is the full command list :
- worldrestorer:
- aliases: [restoreworld, rw, wr]
- usage: /<command> <worldname> [timetowaitinseconds]
- description: Ask for a restore of a world from a backup zip file.
- permission: worldrestorer.restore
- worldloader:
- aliases: [loadworld, lw, wl]
- usage: /<command> <worldname>
- description: Loads a world, if possible from the backup zip file.
- permission: worldrestorer.load
- worldunloader:
- aliases: [unloadworld, ulw, wul]
- usage: /<command> <true/false> <worldname>
- description: Unload a world, saving it or not.
- permission: worldrestorer.unload
- worlddeleter:
- aliases: [deleteworld, dw, wd]
- usage: /<command> <worldname>
- description: Delete a world.
- permission: worldrestorer.delete
- worldzipper:
- aliases: [zipworld, zipw, wzip]
- usage: /<command> <worldname>
- description: Create zip of a world.
- permission: worldrestorer.worldzip
- worldtp:
- aliases: [wtp, tpw]
- usage: /<command> <worldname>
- description: Tp to a world.
- permission: worldrestorer.tp
World name
You can use " " (spacebar) in your world name. But because of the possibility to add a delay to the restoration, when the plugin parses the sent command and it sees it ends with a space then a number, it will think of it as an asked delay (only for the restore command though). So please DO NOT USE A WORLD NAME THAT IS LIKE : [string] + " " + [number].
It seemed to be working fine, but now, after it restores a world, i get a console error that says the save is being accessed from another location. The server seems to work fine but the consoles spams this error. Do you know what causes this? I've tried deleting the playerdata folder and the uid.dat file. Neither helped. Any suggestions would be appreciated. I really like this plugin.....
To everyone : I am currently focusing on my studies BUT hopefully i will update it soon :)
Hi there, will this work with 1.7.9? :D
Can you make this for 1.7.9?
I run a modded server and all my secondary maps are inside my main world folder for example
world / dim7 / Region / files here
So say i wanted to use this to reset just my Dim7 map this plugin cant do it right because it would delete the whole world folder and all maps not just the map I want. Bukkit is running on the server with the use of cauldron.
I think it would work if i could disable the deleting part and just over write because I could make a backup with the correct file structure that only contains the region files for the map I want.
That being said I don't know how all the mods will take it if Bukkit tries to unload a map that the mod loaded I somehow don't see that ending well.. It would have to be well tested before trying it on a real server.
awesome for adventure maps. Cool Thanks
@Yuxanne
C'est-à-dire en mode "normal" ?
Bonjour, j'utilise depuis quelques temps ce plugin et il est simple et léger pour un petit serveur comme le mien donc merci.
Je souhaitais faire un donjon dans l'ender qui soit resetable mais malheureusement lorsque je fais /rw ender (nom de ma carte) je me retrouve sur une map entierement regen en mode normal.
Y aurait il une solution à mon problème?
(désolé mon anglais est pire que pourris et comme le concepteur du plugin est français j'en profite)
@vlaster77
Not a bad idea.
And what about region restore? i cant find any plugin to restore a region! Even mojang add a that in 1.8. Cmon!
@RustyDagger
It loads the map after a restore. ;) Well you gave me the idea to make some kind of API ! :D
Wow You have no idea how long iv been looking for a plugin like this.
My main question I have is does it load the map after the restore on its own or do I need to run the other command. I guess a little bit of testing on my part will answer this.
I have some Idea's in my head now :D getting other plugins to activate this may be a challenge.
@donbuster66
Thank you very much ! I'll work on it, you have good ideas :D
Vouch... this plugin is simple, useful, and, despite being in planning, works perfectly. Though missing a few useful features, it is very much in a useable state. I would recommend this plugin to anyone running a server with minigames as a lightweight alternative to python scripts or whatnot for map restoration, or even to restore normal backups quickly after griefing. I look forward to seeing how this plugin progresses over it's development period.
if you think you might need it, go ahead and download it
I like the idea of this plugin, and have needed it for a long time. It seems to work, but there are a few options I would like
1) the ability to unload and delete worlds on the fly. when I try to delete a world, even when the server is off, it comes back preloaded when I start up the server, taking up resources. 2) the ability to update worlds, say I modify one, and one to make it the backup map, I want there to be a command to overwrite it.
also, I ran into an error loading a world, but it might have been a fluke. EDIT: It appears this issue is an error with the "wl" alias. using this alias causes this error, but the map loads properly into this plugin, it then throws another error when you try to load it into multiverse. both plugins work fine with the map preloaded after a restart