Add claim access permissions

This commit is contained in:
CoalGov Deploy
2026-05-04 18:00:51 +00:00
parent e65097ed2c
commit 8b5ff1f92f
13 changed files with 527 additions and 5 deletions

View File

@@ -93,9 +93,31 @@ CoalGov supports rectangular and polygon claims.
- Claim corners receive protected marker blocks
- `/claim appraise` estimates resale value from land condition and configured resources
- `/claim sell` sells the claim back to the Ministry
- `/showpropertylines` shows the property lines for the claim you are standing in
- `/claim trust` and `/claim untrust` grant or revoke claim-scoped access for other players
The first small homestead can be free, depending on config.
Claim owners can grant granular access:
- `build`: place and break blocks
- `interact`: use non-container interactable blocks such as doors, buttons, levers, gates, and similar blocks
- `container`: open inventory blocks such as chests, barrels, furnaces, and hoppers
- `animal`: damage animals inside the claim
- `manage`: manage claim permissions
- `all`: grant or revoke every permission above
Example:
```text
/claim trust 12 Alex build
/claim trust 12 Alex container
/claim untrust 12 Alex build
/claim permissions 12
```
Unclaimed land does not block animal damage for now. Claimed land blocks animal damage unless the player owns the claim, has `animal`, has `manage`, or is using admin bypass.
## Land Classes And Mining
Admins can define land regions with classes such as freehold, government land, protected preserves, border zones, and mining concessions.
@@ -138,9 +160,13 @@ CoalGov adds a persisted Super Furnace recipe. Craft a furnace with stone in all
/claim sell [id]
/claim transfer <id> <player>
/claim abandon <id>
/claim trust <id> <player> <build|interact|container|animal|manage|all>
/claim untrust <id> <player> <build|interact|container|animal|manage|all>
/claim permissions <id>
/permit buy mining <regionName>
/permit list
/diviningrod
/showpropertylines
/land info
```
@@ -229,6 +255,10 @@ Always back up the current plugin jar and `plugins/CoalGov/coalgov.db` before de
- `/market` shows per-item and batch prices
- Market buy/sell updates stock and balance
- `/claim buy` charges the displayed Coal Cents amount
- `/claim trust` allows another player to use only the granted access
- A player without `animal` access cannot kill animals inside another player's claim
- Animals on unclaimed land can still be killed
- `/showpropertylines` displays polygon edges between claim marker points
- `/claim appraise` and `/claim sell` display formatted money
- Mining protected coal is denied
- Mining concession coal requires a valid permit