WorldReset
WorldReset v2.0
Presenting the world's first standalone map reset plugin! When you restart your server, if resetting is enabled in the plugin's config.yml, WorldReset automatically deletes your world folders and imports backups of them stored in '.../plugins/WorldReset/backups'. WR can reset multiple worlds or regenerate them with random seeds, perfect for minigames and mining worlds.
NOTE: In order for this plugin to work, you have to /stop then start the server. A simple /reload will not work, and will likely cause the server to crash.
Setup/Usage
A world reset couldn't be more simple! Just follow these steps:
- Copy the world folder you want to revert to when you reset the map
- Find the 'WorldReset' folder in your server's 'plugins' directory. If the folder doesn't exist, run the server once and it will be created.
- Paste the world folder you copied into the 'backups' folder in the WorldReset directory.
- Repeat steps 1-3 for your Nether and End folders if you want to reset them as well.
- List the names of any worlds you want to delete and regenerate with random seeds under the "random-seed.worlds" config node
- If you want to schedule a restart, either run the server and type /wr reset or open the config.yml (found in the WorldReset directory) and set the "reset-worlds-on-next-restart" node to true.
- Start up your server! Your world folder will be reset to the one in '.../plugins/WorldReset/backups'!
Benefits
- Resets player location and inventories to their state stored in the world backup (you can always delete player data in the backup for standard spawning)
- Much less lag than conventional reset methods - instead of rolling back an area block by block, WorldReset simply imports the entire world folder, meaning that resets take less than a second!
- Because WorldReset doesn't have to deal with individual chunks, there's no danger of chunk corruption as long as your backup world is clean
- Random seed world regeneration is perfect for mining worlds that require diamonds and other valuables to be relocated every time the map resets
Commands
Configuration nodes
Configuration nodes
- reset-worlds-on-next-restart: true/false - whether to reset worlds (or regenerate them with new seeds, if enabled) the next time the server starts up
- random-seed.enabled: true/false - whether to delete and regenerate the worlds listed below with random seeds
- random-seed.worlds: - a list of the names of worlds to be regenerated
- reset-server-when-empty: true/false - whether to reset the server after the below player count has been achieved and all players log off
- player-count-to-activate-reset: 10 - the number of players online at the same time that must be achieved in order to schedule a reset to occur when the last player logs off (this setting only matters if the above node is set to 'true')
- always-reset: true/false - whether to reset/regenerate worlds every time the server starts up
Permissions nodes
- worldreset.reload: permission to run '/wr reload' to reload the configuration
- worldreset.reset: permission to schedule or cancel a world reset, including '/wr reset now'
- worldreset.settings.view: permission to view the configuration settings ingame with '/wr settings'
- worldreset.settings.edit: permission to edit the configuration settings ingame with '/wr settings edit \<setting ID> \<setting value>'
@LinearLogic
Can you reset like only world_the_end and _world_the_nether, and does the reset make the map reset to the one you had set when you scheduled a reset, or does it reset to a new random map?
@deathhzone
Currently, a world reset mandates a server restart, so you'll have to restart as often as you want to reset maps.
@LinearLogic
I don't want my server to restart that often though.. I just want the end and nether to reset to the state they were in when I set it
Hey could this work somehow with out bukkit or does it need to have bukkit to function cause I really need some kind of program like this to help me reset adventure maps for my server. but you cant use bukkit with redstone so I have to use a vanilla server. If I could know a way to set this up or if I could fined a program that could do this please recommend it thx.
@deathhzone
Just use a plugin to autorestart your server (there are several out there) and set the "always-reset" WorldReset config node to 'true'.
@chrismed
Per-world reset settings are an option I'm toying with adding. The deciding factor will be the amount of time I end up having in the next month or so.
@ronneke1996
The option to specify the server world directory will be added in the next update. Stay tuned!
@I9hdkill
Any worlds listed where "mine_final" appears in your config.yml are in the random seed section and will be regenerated rather than reset from a backup. If that isn't your issue and switching to CraftBukkit isn't an option, I'm afraid there's not much else I can suggest.
Is it able to schedule it so It will auto reset a certain world every hour or something, and be able to do so with 2 worlds? Thanks :)
Is it possible to have different reset settings for more worlds? Or possibly make this a feature in the future? example: I want to reset the Nether and The End but I don't want to reset them at the same time. I type something like "/wr reset world_the_nether" to reset it. Then when I'm ready I do the same for the end. I may even want to have additional worlds I want to reset at other times when I'm ready.
would this possible?
I can't seem to get this working, it doesn't regenerate a new map.
Here's my config:
reset-worlds-on-next-restart: true random-seed: enabled: true worlds: - world reset-when-server-empty: false player-count-to-activate-reset: 10 always-reset: true
I just wanted to say that this is THE best plugin ever!! Thank you soooo much for spending your time to make this plugin for the Bukkit community. This has helped me so much for making the upcoming Sky Den server! It is really an amazing plugin and keep up the good work! :)
Does this also reset world in the overworld folder where all the worlds are. I have a feed the beast server and all my world are generated in bin/overworld/[world] Is this plugin able to reset those worlds?
@elixir2000
The enderchest items are stored in the players.dat files. (The normal inventory too) So its not possible... You can reset the world + inventory but by resetting the inventory the enderchest ist also cleared:p
I've got a server with some different worlds! 1 Spawn world for example and one survival world. I wanna make a new map (new seed) for the survival world! And i wanna make sure peoples inventorys are cleared! But i want their enderchest to be left. Could i make this whit this plugin?
Since 2.0.1 world reset deletes my world but DONT load the backup from WorldReset/backups.
Spigot #1021
@Don5of4
Exactly.
Hello, I'm just making sure... if I want to keep a world, I just need to not have a backup folder for it, and not have it in the random seed config node?
@soulgriever92
There is, it's the 'random-seed' configuration node. See the changelog for the latest file (v1.3) for info.
Is there any way to config it where the new world is a newly generated world on a new seed
ex. server has a mining world but doesnt want players to memorize loot locations, server shutsdown momentarily on friday and reboots world reset loads freshly generated world with a diffrent seed
Is it possible to delete the old world and regenerate a new one on restart?
works FINE with 1.5.2
BUT dont reload! Only restart your server!
This plugin is still working great on our server with 1.5.2.