WorldRebuild
Features
Create, manage, delete and restore multiple backups of your worlds!
No configuration. Fast and simple!
IMPORTANT
Install MultiVerse (Link) and import your worlds (Link)!I recommend you to use MultiVerse but it is now longer needed.
(If you run Bukkit >1.4.5 use the latest devBuild (Link)!)
Just Type "/wr tp <world>" to create a world or teleport to one if it already exists.
-> Please write me some feedback into a comment
or in a mail ([email protected])!
Usage
Commands (<needed> [optional]) | Use | Permissions |
---|---|---|
</wr> <save> [me/world] [index] | Creates a backup | - worldrebuild.save |
</wr> <rebuild> [me/world] [index] | Restores world from a backup | - worldrebuild.rebuild |
</wr> <list> [me/world] | Lists all backups | - worldrebuild.list |
</wr> <delete> <me/world> <index> | Deletes a backup | - worldrebuild.delete |
</wr> <help> | Shows all commands | - worldrebuild.help |
</wr> <tp> <world> | Teleports you to a world | - worldrebuild.tp |
If you don't know the name of your current world just type "me" instead of the worlds name.
The index is the name you can give a backup. So it is possible to create unlimited backups.
If you don't type an index the standard index "default" will be used.
To check wether it works correctly with MultiVerse try the following steps:
1. type "/mv create test normal -t flat" -> now MultiVerse creates the new, flat map "test", wait until it says "Complete!"
2. teleport yourself to this world by typing "/mvtp test"
3. type "/wr save" to create a backup of this world and wait until WorldRebuild finishes
4. place some random blocks
5. type "/wr rebuild" to restore from the backup you created in step 3 and wait until WorldRebuild finishes
6. if you now see the flat map without the random blocks than everything worked correctly and you can start using WorldRebuild for your other worlds
To check wether it works correctly without MultiVerse try the following steps:
1. type "/wr tp test" -> now WorldRebuild creates the new, flat map "test", wait until your were teleported
2. type "/wr save" to create a backup of this world and wait until WorldRebuild finishes
3. place some random blocks
4. type "/wr rebuild" to restore from the backup you created in step 3 and wait until WorldRebuild finishes
5. if you now see the flat map without the random blocks than everything worked correctly and you can start using WorldRebuild for your other worlds
Configuration
1. Put the WorldRebuild.jar into your plugins folder.
2. Restart/Reload your Server.
3. config.yml:
- Autosave:
- Enabled -> set to true and restart/reload you Server to enable autosave
- Frequency (in min) -> set the frequency for autosave -> restart/reload after changes
Support
To get support, give feedback or report a bug please use the comments below.
Planned features
- timestamps for autosave
- backup organization in own folder
Warning
I will not take over any liability for possible data loss.
If you experience any data loss or other bugs and errors please mail me ([email protected]) or write a comment below with a detailed description and the server log.
@tuscent
Are your world files located in your normal bukkit folder or are you using a plugin to load them from somewhere else? Do this files have a special permission so that your OS blocks the copy-process?
@thetobynextdoor
ok so what i did is i tested wr rebuild in all worlds then i even tried to save a world called towny and it basically unloaded the world and then it didnt work so then i tried to reload the world i got this error Error trying to load world 'towny'! here is what i saw in the console at the time http://pastie.org/7986373
@thetobynextdoor
here is the error with the new version of world rebuild 1.2.3 http://pastie.org/7986115
@tuscent
It seems that WorldRebuild has problems to copy the files.
Maybe the newest version will help: Your text to link here...
Is "Spleef" your only world or does it (not) function with other worlds?
when ever i type /wr rebuild Spleef i get this error (spleef is one of my worlds by the way) http://pastie.org/7982382
@thetobynextdoor
Ok thanks anyhow.
@policiu
I'm really sorry but I don't know why. :/ Maybe it helps if you type /reload sometimes.
@thetobynextdoor
After Testing it with and with out WR that it goes down in memory much slower without WR.
@thetobynextdoor
My plugins: WorldBorder, GroupManager, BacktoSpawn, WorldEdit, WorldRebuild, NoSwear, Vault, Vote, Multiverse-Core, SClear, WorldGuard, Permissions, BKCommonLib, Votifier, GAListener, Essentials, EssentialsProtect, Multiverse-Portals, HeavySpleef, Multiverse-Inventories, Enjin Minecraft Plugin, EssentialsAntiBuild, NoLagg, EssentialsChat.... I will test the server without the plugin today. Also there are no errors until the server crashes from lack of mem. Edit: I am using command blocks to restart the map. I'm not sure this helps but I thought you might want to know.
@policiu
Which plugins do you have installed? Does this happen, if you disable WorldRebuild? I can not imagine that WorldRebuild eats a lot of Ram because it is not saving anything at all. Maybe you have loaded to many worlds at the same time. Are there any error messages in your log?
I have a question/bug. My server uses this plugin to reloads a world about every 30 min depending on how fast the match goes. After about the fifth reload with more than five people online the plugin (or other plugin) will start taking up more memory without giving it back. Eventually the server crashes from lack of memory. Help me. Thanks in advance!
@Noblauch
Thank you very much!
The Plugin works great! Also together with CommandBlocks! I use it for my "League of Miners"-Server (League of legends maps in Minecraft) And all the worlds (pvp adventure) have to be reseted after each game (cause the maps are done :D) Well, I hardcoded everything with command blocks and till now it seems to work just fine! (We are still in the beta state) Thanks a lot for this plugin! I really appreciate it! :)
@vahanar
It's a very good idea but it sounds very difficult because I would have to interpret the region files of minecraft and to restore single blocks from the byte array they are saved in. I have to do a little bit of research but I think that this is to complicated.
very nice,but do u think to use the super pic axe from worldedit to restore a part of the saved map ?
@thetobynextdoor
Yea that would be very nice.
@Sonorpearl
Ah ok.
Currently the autosave creates a backup with the index "autosave" so in your bukkit folder you will find a folder named "<worldname>_autosave#backup" and every time, you run the autobackup, the plugin will overwrite this folder with the newest version.
But I can build in that WorldRebuild creates multiple autosaveBackups like you described it.
@thetobynextdoor
I meant it so. There is limit HOW many Auto-Backups CAN be created. Because if you would run an Server with Autobackup about 1 Year, every half an hour. There are over thousends of them.
When there are 10 Backups in the Folder and the Plugin want to create a new Backup. The First (The Oldest) got deleted and than there are still 10 Backups
@Sonorpearl
I don't really get your first request. If you use the same backup index more times, the existing backup with the same index will be overwritten. So if you create 10 Backups with the indexes 1..10 and you want to create a 11th than just use the index 1.
And to your second request: An autosave is already implemented. Just download the latest version. Then if you want to enable autosave, open the file "config.yml" in the folder "plugins/WorldRebuild" and change value behind "Autosave" to "true". You can change the interval in the config as well.
A Setting to delete the x Backup when a Number is reached. Example 10 Backs are given, you will create the 11 and the first gets deleted. I dont know under which Name they are saved, but It would be easier for you to let create the Backup with Timestamp and worldname.
And a function to let auto. Create a Backup every x Minutes.