ChunkPreLoader999 is a powerful and easy-to-use plugin designed to combat lag and CPU spikes caused by chunk generation during gameplay. By pre-loading and saving chunks, it ensures that your server's performance remains optimal, allowing players to explore vast worlds without frustrating interruptions. You can define specific areas to be pre-loaded, either as a rectangle or a radius around a central point. The plugin operates asynchronously to prevent any impact on server performance during the loading process and provides real-time progress in the console. You can also configure which worlds the plugin should be active in, giving you full control over its operation.
## Commands
The main command is `/chunkpreloader`, which can also be accessed with the alias `/cpl`.
### `/cpl start <x1,z1> <x2,z2> <name>`
Pre-loads and saves a rectangular area of chunks. The chunks within this area will be force-loaded, meaning they will not unload until you use the `unload` command.
* `<x1,z1>`: The coordinates of the first corner of the rectangle.
* `<x2,z2>`: The coordinates of the second corner of the rectangle.
* `<name>`: A unique name to identify this pre-loaded area.
### `/cpl unload <name>`
Unloads a previously pre-loaded area and removes it from the data file. This will allow the chunks in the area to unload naturally.
* `<name>`: The name of the area to unload.
### `/cpl center <x,z>`
Sets a central point for radius-based pre-loading. This location is used by the `radius` command.
* `<x,z>`: The coordinates for the center point.
### `/cpl radius <number>`
Pre-loads and saves a circular area of chunks around the center point defined by the `center` command. The radius is specified in chunks.
* `<number>`: The radius of chunks to load, from 1 to 100,000.