-
Notifications
You must be signed in to change notification settings - Fork 0
Container‐Handling
Containers need special care because they can hold items. If a player takes items from a chest and the plugin later restores the same chest with the same items, that can create duplication.
AreaRegen provides container modes so server owners can choose the safest behavior for each area.
| Mode | Description |
|---|---|
EMPTY |
Restores the container block but clears its inventory. |
RESTORE |
Restores the container and its saved contents. |
SKIP |
Does not regenerate container blocks. |
BREAK_ONLY |
Lets the container change or break normally. |
This is the recommended default for survival servers.
The container block comes back, but its inventory is empty. This prevents item duplication when players can access the container before regeneration.
This restores the container and its contents.
Use this only in protected or controlled areas where players cannot exploit the contents.
This ignores containers during regeneration.
Use this when containers inside the area should not be touched by AreaRegen.
This lets containers behave normally.
Use this when containers should be breakable or changeable, even inside a regenerating area.
For public survival servers, use:
EMPTY
Use RESTORE only when you are sure players cannot duplicate items.