WorldContainerCleaner is a lightweight utility plugin for Minecraft servers that need to clean items left inside containers after wipes, map resets, event resets, or seasonal resets.
The plugin does not break, remove, or replace blocks. It only clears the items stored inside containers.
This is useful for cleaning:
- Spawn worlds
- Event worlds
- Resource worlds
- Old maps
- Protected areas
- Non-playable worlds
- Reset zones
- Seasonal maps
---
## Main Features
- Clears items from container inventories
- Does not remove container blocks
- Supports entire world cleanup
- Supports WorldGuard region cleanup
- Supports dry-run scan before real cleanup
- Shows cleanup status and progress
- Allows stopping a running cleanup task
- Reloadable configuration
- Useful after wipes, resets, and events
- Simple command system
---
## Supported Containers
WorldContainerCleaner can clean inventories from containers such as:
Only the items inside these containers are removed.
The container blocks stay in place.
---
## Installation
1. Download the plugin `.jar` file.
2. Place the `.jar` file into your server's `plugins` folder.
3. Restart the server.
4. Open the generated `config.yml` file.
5. Configure the worlds or WorldGuard regions you want to clean.
6. Run `/cleanstorage dryrun` before cleaning.
7. If the dry-run result is correct, run `/cleanstorage start`.
---
## Requirements
- Java 21+
- Paper 1.21+
- Spigot 1.21+
- WorldGuard is optional
WorldGuard is only required if you want to clean specific WorldGuard regions.
If you only want to clean entire worlds, WorldGuard is not required.
---
## Configuration
Example configuration:
```yaml
targets:
- world: spawn
region: "*"
- world: events
region: bossarena
```
---
## Configuration Fields
| Field | Description |
|------|-------------|
| `world` | The name of the world that should be scanned |
| `region` | The WorldGuard region name or whole-world value |
---
## Region Values
| Value | Meaning |
|------|---------|
| `*` | Clean the entire world |
| `__global__` | Clean the entire world |
| `region_name` | Clean only the selected WorldGuard region |
This will clean all containers in the `resource` world.
---
## Notes
- The plugin does not remove blocks.
- The plugin only clears container inventories.
- If WorldGuard is installed, region-based cleanup can be used.
- If you use `*` or `__global__`, the entire world will be scanned.
- Always use dry-run before starting the cleanup.
- Always create a backup before real cleanup.
---
# O'zbekcha Dokumentatsiya
## Umumiy Ma'lumot
WorldContainerCleaner — Minecraft serverlarda wipe, map reset, event reset yoki sezon resetdan keyin container ichida qolib ketgan itemlarni tozalash uchun mo‘ljallangan yengil utility plugin.
Plugin bloklarni buzmaydi, o‘chirmaydi yoki almashtirmaydi.
U faqat container ichidagi itemlarni tozalaydi.
Bu quyidagilar uchun foydali:
- Spawn world
- Event world
- Resource world
- Eski maplar
- Himoyalangan hududlar
- O‘ynalmaydigan worldlar
- Reset qilinadigan hududlar
- Sezon maplari
---
## Asosiy Imkoniyatlar
- Container ichidagi itemlarni tozalaydi
- Container bloklarini buzmaydi
- Butun worldni tozalashni qo‘llab-quvvatlaydi
- WorldGuard regionlarni qo‘llab-quvvatlaydi
- Haqiqiy tozalashdan oldin dry-run tekshiruv bor
- Tozalash holati va progressini ko‘rsatadi
- Ishlayotgan tozalash jarayonini to‘xtatish mumkin
- Config reload qilish mumkin
- Wipe, reset va eventlardan keyin ishlatish uchun qulay
- Oddiy buyruqlar tizimi
---
## Qo‘llab-quvvatlanadigan Containerlar
WorldContainerCleaner quyidagi container ichidagi itemlarni tozalashi mumkin:
Bu `resource` worldidagi barcha containerlarni tozalaydi.
---
## Eslatmalar
- Plugin bloklarni o‘chirmaydi.
- Plugin faqat container ichidagi itemlarni tozalaydi.
- WorldGuard o‘rnatilgan bo‘lsa, region bo‘yicha tozalash ishlaydi.
- `*` yoki `__global__` ishlatilsa, butun world tekshiriladi.
- Har doim haqiqiy tozalashdan oldin dry-run ishlating.
- Haqiqiy tozalashdan oldin backup olish tavsiya etiladi.