RemoveTrash
Author: InkubVersion: 1.4.0
Platform: Oxide / uMod (Rust)
Overview
RemoveTrash is a plugin for automatically cleaning up trash at the zero point and bugged objects on a Rust server.It removes unwanted entities within a configurable zone and automatically detects and deletes bugged entities or corrupted prefabs that may negatively impact server performance.
The plugin works fully automatically and requires no commands or manual interaction.
Main Features
1. Automatic Zone Cleanup
At a configurable interval, the plugin:- Scans a specified world position
- Checks all entities within a configurable radius
- Removes valid entities that are not excluded
- Logs every removal action
Configurable options include:
- Cleanup position (x, y, z)
- Removal radius
- Check interval
- List of excluded prefab names
- Option to remove NPCs
- Option to remove players
2. Bugged Entity Removal
On server initialization, the plugin scans all server entities and removes objects with abnormal scale values (scale.y == 200f).Each removal is logged with:
- Prefab name
- Network ID
- Scale
- World position
3. Bugged Prefab Protection
When world prefabs spawn, the plugin checks their scale values.If a prefab is detected with zero scale (0,0), it is immediately destroyed and logged.
This prevents broken or corrupted prefabs from remaining in the world.
Logging
All actions are written to:oxide/logs/RemoveTrash.txt<br>
The log includes:
- Zone removal actions
- Bugged entity removals
- Bugged prefab removals
- Cleanup summaries
- Timestamps for every action
Configuration
Code:
{
"Version": "1.4.0",
"RemoveRadius": 5.0,
"CheckInterval": 10.0,
"RemovePosition": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"Exclude": [
"player_corpse",
"stash.small",
"box.wooden",
"box.wooden.large",
"rowboat_storage",
"workbench1.deployed",
"workbench2.deployed",
"workbench3.deployed",
"rocket_mlrs"
],
"RemoveNPC": false,
"RemovePlayers": false,
"CleanBuggedEntities": true,
"CleanBuggedPrefabs": true
}
Commands
None.Permissions
None required.The plugin operates automatically.
Recommended Use Cases
- Cleaning spawn zones
- Maintaining event areas
- Removing leftover objects after wipes
- Automatically fixing broken entities
- Improving overall server stability