-
Notifications
You must be signed in to change notification settings - Fork 0
Rental Snapshots
Jack edited this page Jun 6, 2026
·
2 revisions
Snapshots save the state of a claim's blocks for later restoration. Ideal for rental properties that should reset between tenants.
When a rental ends or a renter is evicted, snapshots can automatically restore the claim to its original state.
Use cases:
- Rental apartments that should reset
- Hotel rooms
- Temporary shops
- Any claim that should revert after use
/claim snapshot create [claimId]
- Creates snapshot of claim you're standing in
- Or specify claimId to snapshot remotely
- Saves all blocks, containers, and signs
Create snapshots at key moments:
- Before first rental - Baseline state
- After major changes - Update snapshot
- Before eviction - Preserve current state
/claim snapshot list [claimId]
/claim snapshot list all
Shows:
- Snapshot ID
- Creation date
- Claim size
- Creator name
/claim snapshot remove <snapshotId>
- Permanently deletes a snapshot
- Cannot be undone
- Frees storage space
Configure automatic restoration when rentals end:
signs:
rent:
snapshots:
auto-restore:
on-rental-expire: false
on-eviction-complete: false- Rental ends or eviction occurs
- Renter is untrusted
- Snapshot restoration begins
- Blocks are replaced
- Containers are cleared/filled
- Owner is notified
Snapshots preserve:
- ✅ All block types and states
- ✅ Container contents
- ✅ Sign text
- ✅ Redstone states
- ✅ Entity positions (configurable)
Snapshots don't preserve:
- ❌ Trust lists
- ❌ Rental data
- ❌ GPExpansion metadata
- ❌ Entity data (configurable)
Snapshots are stored in .snap format (YAML):
- Human-readable
- Version controlled
- Cross-server compatible
- Compressed for efficiency
Location:
plugins/GPExpansion/snapshots/<claimId>/<snapshotId>.snap
| Permission | Description |
|---|---|
griefprevention.restoresnapshot |
Create and manage snapshots |
griefprevention.admin |
Manage all snapshots |
snapshots:
enabled: true
max-per-claim: 5
auto-create:
on-rent-sign-create: false
on-rental-start: false
before-eviction-complete: false
auto-restore:
on-rental-expire: false
on-eviction-complete: false
on-sale: false
cleanup:
enabled: true
retain-days: 30
remove-when-claim-deleted: true
compression: true
async-restore: true
max-blocks-per-tick: 5000- Snapshot before renting - Create baseline immediately
- Update periodically - If claim improvements are made
- Limit snapshots - Don't keep too many (uses storage)
- Test restoration - Verify snapshots work correctly
- Document snapshots - Note what's in each one
Snapshot creation failed?
- Check available disk space
- Verify
griefprevention.restoresnapshotpermission - Large claims may take time
Restoration incomplete?
- Some blocks may not be restorable
- Check for incompatible block types
- Verify snapshot wasn't corrupted
Old snapshots not working?
- Format may have changed between versions
- May need to recreate snapshots
- Check snapshot file integrity
| Feature | Snapshots | Schematics |
|---|---|---|
| Integration | Built-in | External |
| Automation | Automatic | Manual |
| Ease of use | Simple | Complex |
| Cross-server | Yes | Yes |
| Size limit | None | Varies |
| Command | Description |
|---|---|
/claim snapshot create [id] |
Create new snapshot |
/claim snapshot list [id] |
List claim snapshots |
/claim snapshot list all |
List all server snapshots |
/claim snapshot remove <id> |
Delete snapshot |
- Use snapshots for all rental properties
- Name snapshots descriptively (if supported)
- Clean up old snapshots regularly
- Test restore process occasionally
- Keep backup of important snapshots