This plugin can be used to pre-generate the region of a world around the spawn chunk. The generation automatically pauses when a player joins the server (assuming the server was empty before) and resumes when the server is empty again. The generation also auto-resumes after a server restart. The plugin tracks the ticks per second and pauses the generation when the tps is lower than 2.
All features can be accessed with the command
/chunkmaster or the aliases
/chunkmaster generate [world] [radius] [shapeStarts the generation until the specified chunk count or the world border is reached.
/chunkmaster listLists all running generation tasks
/chunkmaster cancel <Task id|world>Cancels the generation task with the specified id (if it is running).
/chunkmaster pausePauses all generation tasks until the resume command is executed.
/chunkmaster resumeResumes all paused generation tasks.
/chunkmaster reloadReloads the configuration file.
/chunkmaster tpchunk <chunkX> <chunkZ>Teleports you to the specified chunk coordinates.
/chunkmaster setCenter [[world] chunkX chunkZ]
/chunmkaster getCenter [world]
See Readme for configuration.
Spigot and Paper
The plugin works on spigot and paper servers but is significantly faster on paper servers (because it profits from asynchronous chunk loading and the better implementation of the isChunkGenerated method).