Features
Purge server entities with ease!
- Remove building blocks
- Remove deployables
- Scheduled cleanup
Permissions
To use command entitycleanup
user must have permission entitycleanup.use
Commands
entitycleanup
- launches cleanup on demand, regardless of configured schedule
Configuration
{
"Interval": 3600,
"CleanupBuildings": true,
"CleanupDeployables": true,
"RemoveOutsidePrivilege": true,
"OutsideHealthFractionTheshold": 0.2,
"RemoveInsidePrivilege": false,
"InsideHealthFractionTheshold": 0.0,
"Whitelist": [],
"CheckOwnerIdPrivilegeAuthorized": true
}
Explanation
Interval
- Sets interval in seconds to perform cleanups (set to 0 to disable scheduled cleanup)CleanupBuildings
- Should cleanup affect building blocksCleanupDeployables
- Should cleanup affect deployablesRemoveOutsidePrivilege
- Should cleanup affect entities outside any cupboard rangeOutsideHealthFractionTheshold
- Max health fraction of entities to cleanup if they are outside TC rangeRemoveInsidePrivilege
- Should cleanup affect entities inside any cupboard rangeInsideHealthFractionTheshold
- Max health fraction of entities to cleanup if they are inside TC rangeCheckOwnerIdPrivilegeAuthorized
- If set totrue
- cleanup will only affect entities inside TC range which were placed by player who is not authorized in TC (works only ifRemoveInsidePrivilege
istrue
)Whitelist
- List of (short)prefabnames to ignore during cleanup
Credits
Reneb - Original plugin author
SPooCK - Plugin maintainer in the past
Waggy - Code and keylocks fix
MIT License
Copyright (c) 2019-2020 2CHEVSKII
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.