# NoPatrolHeli
**NoPatrolHeli** is a lightweight utility plugin designed to keep your server skies clear. It automatically detects and destroys the Patrol Helicopter whenever it attempts to spawn.
This is ideal for Build servers, PvE servers, or "No Fly" zones where the vanilla attack helicopter is unwanted.
## Features
- **Spawn Blocking:** Automatically detects when a Patrol Helicopter spawns and removes it after a short 1-second delay to ensure clean destruction.
- **Startup Cleanup:** Automatically scans the map when the plugin loads to remove any helicopters that may have spawned while the plugin was unloaded.
- **Manual Wipe:** Includes a console command for admins to manually force a map-wide helicopter wipe.
---
## Commands
### Console Commands
- `killheli` - Manually scans the server entities and destroys all active Patrol Helicopters.
- *Requirement:* You must have Admin status (Auth Level 2) to use this command.
---
## How it Works
1. **On Spawn:** When the server attempts to spawn `patrolhelicopter.prefab`, the plugin catches the event.
2. **Delay:** It waits exactly **1 second** to allow the entity to fully initialize (preventing ghost entities or errors).
3. **Destruction:** The entity is forcibly killed.
## Configuration
This plugin works out-of-the-box and requires no configuration file or permissions. Simply install it, and the Patrol Helicopter will be disabled.