Lua, Creating and destroying worlds
#4
I think restoring an existing world back to its pristine state is a much easier option at this moment. That is, if you can keep the worlds reasonably limited. Restoring a 10k * 10k block world will not work, but for, say, 20 chunks * 20 chunks it should be perfect.

One more choice that comes to mind, make it a custom generator. Then whenever the chunk is (re)generated, the generator will restore the world.

And another: Set the world storage to forgetful - the changes won't get written to the disk, but still all players currently online in that world would see them. As soon as all of them log out, boom, the server unloads the chunks and the world is gone. If you put your regular MCA files to the world folder, they will get loaded the next time the world is used.
This might need some help from a plugin, too, though - you may need to override the OnChunkUnloading hook not to let any chunks unload as long as there's a player present in the world, otherwise they lose that chunk while playing.
Reply
Thanks given by:


Messages In This Thread
Lua, Creating and destroying worlds - by Zentdayn - 02-06-2015, 09:53 PM
RE: Lua, Creating and destroying worlds - by xoft - 02-06-2015, 10:28 PM
RE: Lua, Creating and destroying worlds - by xoft - 02-07-2015, 03:41 AM



Users browsing this thread: 1 Guest(s)