-
Notifications
You must be signed in to change notification settings - Fork 0
Configuration
This wiki details the commands for managing areas in the AreaRegen plugin. Areas define regions in the game world that can be regenerated after events like explosions. All commands are prefixed with /arearegen and require specific permissions.
- Overview
- General Commands
- Area Creation and Selection
- Area Modification
- Block List Management
- Area Regeneration
- Notes
The AreaRegen plugin allows server administrators to create, modify, and regenerate areas. Key features include:
- Area Creation: Define regions using a selection tool.
- Regeneration: Restore areas after explosions or manually.
- Block Filtering: Use blacklists and whitelists to control which blocks regenerate.
- Configuration: Adjust delays, regeneration times, and save settings.
Commands are restricted to players with appropriate permissions, typically operators or users with arearegen.* permissions.
These commands manage the plugin’s configuration and area data.
| Command | Description | Permission | Example |
|---|---|---|---|
/arearegen reload |
Reloads the plugin’s configuration from areas.yml. |
arearegen.reload |
/arearegen reload |
/arearegen store-config |
Saves the current configuration to areas.yml. |
arearegen.storeconfig |
/arearegen store-config |
/arearegen list-areas |
Lists all defined areas with their names and worlds. | arearegen.listareas |
/arearegen list-areas |
/arearegen load-areas |
Loads areas from areas.yml into memory. |
arearegen.loadareas |
/arearegen load-areas |
-
Notes:
- Use
reloadafter editingareas.ymlmanually. -
store-configensures changes persist across server restarts. -
list-areashelps verify loaded areas (e.g.,area1 in world).
- Use
These commands create new areas or set up selections for defining area bounds.
| Command | Description | Permission | Example |
|---|---|---|---|
/arearegen wand |
Gives a selection tool (stick) to set two corner points for an area. Left-click for corner 1, right-click for corner 2. | arearegen.wand |
/arearegen wand |
/arearegen create <areaName> |
Creates a new area with the specified name using the current selection. | arearegen.createarea |
/arearegen create area1 |
-
Usage:
- Run
/arearegen wandto get a stick. - Left-click a block to set corner 1 (e.g.,
-145, 73, -250). - Right-click a block to set corner 2 (e.g.,
-140, 73, -250). - Run
/arearegen create <areaName>to create the area.
- Run
-
Example Output: Area 'area1' created successfully: Point A: (-145, 73, -250) Point B: (-140, 73, -250)
Notes:
-
delay and regen-time use ticks (20 ticks = 1 second).
-
Ensure the area exists before modifying (use list-areas).
-
These commands modify existing areas’ properties or bounds.
| Command | Description | Permission | Example |
|---|---|---|---|
| /arearegen edit-selection [areaName] | Updates the bounds of an existing area using the current selection. Requires using the wand first. | arearegen.editarea | /arearegen edit-selection area1 |
| /arearegen delay [areaName] [value] | Sets the delay (in ticks) before regeneration starts for the specified area. | arearegen.setdelay | /arearegen delay area1 20 |
| /arearegen regen-time [areaName] [value] | Sets the regeneration interval (in ticks) between block updates for the specified area. | arearegen.setregentime | /arearegen regen-time area1 10 |
-
Usage for edit-selection:
-
Use /arearegen wand to select new corners.
-
Run /arearegen edit-selection [areaName] to update bounds.
-
-
Example Output:
Bounds of area 'area1' updated successfully: Point A: (-150, 70, -240) Point B: (-145, 75, -235)
-
Notes:
-
delay and regen-time use ticks (20 ticks = 1 second).
-
Ensure the area exists before modifying (use list-areas).
-
Block List Management
These commands manage blacklisted or whitelisted blocks for area regeneration.
| Command | Description | Permission | Example |
|---|---|---|---|
| /arearegen blacklist add [areaName] [block1,block2] | Adds blocks to the blacklist, preventing them from regenerating. | arearegen.blacklist | /arearegen blacklist add area1 STONE,DIRT |
| /arearegen blacklist remove [areaName] [block1,block2] | Removes blocks from the blacklist. | arearegen.blacklist | /arearegen blacklist remove area1 STONE |
| /arearegen blacklist clear [areaName] | Clears all blacklisted blocks for the area. | arearegen.blacklist | /arearegen blacklist clear area1 |
| /arearegen whitelist add [areaName] [block1,block2] | Adds blocks to the whitelist, allowing only these blocks to regenerate. | arearegen.whitelist | /arearegen whitelist add area1 GRASS_BLOCK,SAND |
| /arearegen whitelist remove [areaName] [block1,block2] | Removes blocks from the whitelist. | arearegen.whitelist | /arearegen whitelist remove area1 SAND |
| /arearegen whitelist clear [areaName] | Clears all whitelisted blocks for the area. | arearegen.whitelist | /arearegen whitelist clear area1 |
-
Notes:
-
Block names use Minecraft material names (e.g., STONE, GRASS_BLOCK).
-
Blacklist takes precedence over whitelist.
-
Use commas to separate multiple blocks.
-
These commands trigger area regeneration.
| Command | Description | Permission | Example |
|---|---|---|---|
| /arearegen regen [areaName] | Instantly regenerates the specified area to its saved state. | arearegen.regen | /arearegen regen area1 |
-
Notes:
-
Regeneration respects blacklist/whitelist settings.
-
Containers (e.g., chests) are emptied during regeneration (see Notes).
-
-
Selection Tool:
-
The /arearegen wand command (or /select) provides a stick for selecting area corners.
-
Left-click sets the first corner, right-click sets the second.
-
Confirm selections with /select confirm if using the selection system.
-
-
Permissions:
-
Most commands require operator status or specific permissions.
-
Grant all permissions with arearegen.*.
-
-
Configuration:
-
Areas are stored in plugins/AreaRegen/areas.yml.
-
Save changes with /arearegen store-config after modifying areas.
-
-
Regeneration:
-
Areas regenerate automatically after explosions.
-
Use /arearegen regen for manual regeneration.
-
-
Troubleshooting:
- If areas don’t regenerate, check blacklist/whitelist settings.