Advanced chunk cleaner plugin that deletes unused chunks for Paper/Folia servers
Advanced chunk cleaner plugin for Paper/Folia servers that automatically deletes chunks that haven't been entered by players for a specified amount of time.
logs/latest.txtplugins folderplugins/ChunkDeleter/config.yml/chunkdeleter optimize to install PerfoBooster for enhanced performance/chunkdeleter help - Show help information/chunkdeleter reload - Reload plugin configuration/chunkdeleter stats - Show chunk statistics/chunkdeleter clean - Manually trigger cleanup/chunkdeleter toggle - Enable/disable chunk deletion/chunkdeleter info - Show plugin information/chunkdeleter optimize - Download and install PerfoBooster plugin/chunkdeleter logs - View log file information/chunkdeleter logs tail [lines] - Show recent log entries (1-50 lines)/chunkdeleter logs clear - Clear the log file/chunkdeleter debug - Toggle debug mode (admin only)Aliases: /cd, /chunkdel
chunkdeleter.* - Access to all features (default: op)chunkdeleter.admin - Full administrative accesschunkdeleter.reload - Permission to reload configchunkdeleter.stats - View statisticschunkdeleter.clean - Trigger manual cleanupchunkdeleter.toggle - Enable/disable pluginchunkdeleter.optimize - Download PerfoBooster pluginchunkdeleter.logs - View and manage log filesThe plugin uses a modern camelCase configuration format. The config file includes:
# Enable/disable the plugin
enabled: true
# Chunk deletion settings
chunkDeletion:
timeBeforeDeletion: 30 # Minutes before chunk is eligible for deletion
maxChunksPerCycle: 50 # Maximum chunks to process per cycle
cleanupInterval: 300 # Cleanup interval in seconds
immediateDeletion: false # Enable immediate deletion or use grace period
gracePeriod: 5 # Grace period in minutes for marked chunks
# World settings
worlds:
enabledWorlds: [] # Specific worlds to enable (empty = all worlds)
disabledWorlds: # Worlds to exclude
- "world_nether"
- "world_the_end"
spawnProtectionRadius: 10 # Chunk radius around spawn to protect
# Protection settings
protection:
protectPlayerChunks: true # Protect chunks near players
playerProtectionRadius: 3 # Player protection radius in chunks
protectStructures: true # Protect chunks with structures
protectTileEntities: true # Protect chunks with storage/functional blocks
minTileEntities: 1 # Minimum tile entities to protect chunk
# Performance settings
performance:
asyncScanning: true # Use async processing
maxProcessingTimePerTick: 10 # Max processing time per tick (ms)
batchSize: 25 # Batch size for operations
# Logging settings
logging:
logDeletions: true # Log chunk deletions to console
logStatistics: true # Log statistics periodically
statisticsInterval: 60 # Statistics interval in minutes
debug: false # Enable debug logging
# Database settings
database:
type: SQLITE # Database type (SQLITE, MYSQL, or MEMORY)
sqliteFile: "chunkdata.db" # SQLite file name
mysql: # MySQL settings (if using MYSQL)
host: "localhost"
port: 3306
database: "chunkdeleter"
username: "username"
password: "password"
ChunkDeleter includes a basic logging system that tracks all chunk deletions:
logs/latest.txt (in your server root directory)[2024-01-15 14:30:25] CHUNK_DELETED: World=world, ChunkCoords=[15,11], BlockRange=[240,176] to [255,191], Info=Automatic cleanup
[2024-01-15 14:31:02] Manual cleanup triggered by admin
[2024-01-15 14:35:10] Cleanup cycle: Processed 45, Deleted 12, Protected 33 chunks
/chunkdeleter logs - View log file information and statistics/chunkdeleter logs tail 20 - Show the last 20 log entries/chunkdeleter logs clear - Clear the log file (admin only)ChunkDeleter automatically detects and integrates with PerfoBooster for optimal performance:
/chunkdeleter optimize to automatically download and install PerfoBoosterWhen PerfoBooster is installed on compatible servers:
For support, join discord: https://discord.gg/yUghaxRSZs