Skip to content

Container‐Handling

Mardssss edited this page Jun 20, 2026 · 1 revision

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.

Container Modes

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.

EMPTY

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.

RESTORE

This restores the container and its contents.

Use this only in protected or controlled areas where players cannot exploit the contents.

SKIP

This ignores containers during regeneration.

Use this when containers inside the area should not be touched by AreaRegen.

BREAK_ONLY

This lets containers behave normally.

Use this when containers should be breakable or changeable, even inside a regenerating area.

Recommendation

For public survival servers, use:

EMPTY

Use RESTORE only when you are sure players cannot duplicate items.

Clone this wiki locally