2CHEVSKII
Easy way to cleanup your server from unnecessary entities.

Supported Games
GameServerKingsGameServerKings

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 blocks
  • CleanupDeployables - Should cleanup affect deployables
  • RemoveOutsidePrivilege - Should cleanup affect entities outside any cupboard range
  • OutsideHealthFractionTheshold - Max health fraction of entities to cleanup if they are outside TC range
  • RemoveInsidePrivilege - Should cleanup affect entities inside any cupboard range
  • InsideHealthFractionTheshold - Max health fraction of entities to cleanup if they are inside TC range
  • CheckOwnerIdPrivilegeAuthorized - If set to true - cleanup will only affect entities inside TC range which were placed by player who is not authorized in TC (works only if RemoveInsidePrivilege is true)
  • 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.