It would be a good method, but right now it is not exported into the Lua interface. Also the name is somewhat misleading.
In my composable_generator branch, I've added a cWorld::GenerateChunk() function exactly for this purpose, and it is exported into the Lua interface. Since the composable_generator branch is nearing its development cycle and will be merged into the trunk soon(ish), I'd prefer if you used that function - if there are no other obstacles for you The only problem is that you'd need to compile mcserver from svn sources to get that branch working. I can provide Windows binaries, if it helps - I'm already doing the nightbuilds anyway.
And while you're at it, perhaps you could make a similar webplugin that could regenerate an area of chunks (= clear all player-made changes), same principle, just use the cWorld::RegenerateChunk() function.
In my composable_generator branch, I've added a cWorld::GenerateChunk() function exactly for this purpose, and it is exported into the Lua interface. Since the composable_generator branch is nearing its development cycle and will be merged into the trunk soon(ish), I'd prefer if you used that function - if there are no other obstacles for you The only problem is that you'd need to compile mcserver from svn sources to get that branch working. I can provide Windows binaries, if it helps - I'm already doing the nightbuilds anyway.
And while you're at it, perhaps you could make a similar webplugin that could regenerate an area of chunks (= clear all player-made changes), same principle, just use the cWorld::RegenerateChunk() function.