A powerful and easy-to-use event management framework for SCP: Secret Laboratory plugins using LabAPI. CustomEventHandler automatically discovers, registers, and manages your event handlers, eliminating boilerplate code and streamlining plugin development.
🌟 Features
- Automatic Event Discovery: Automatically finds and registers all event classes in a specified namespace
- Simple Integration: Just implement
IEventTypeand your events are ready to go - Clean Code: Reduces boilerplate with automatic registration/unregistration
- Type-Safe: Uses reflection to ensure only valid event handlers are registered
- High Performance: Minimal overhead with efficient event management
- Easy Debugging: Built-in debug configuration for development
📋 Requirements
- SCP: Secret Laboratory Dedicated Server
- LabAPI 1.1.4 or higher
- .NET Framework 4.8
📦 Installation
For Plugin Developers (Using CustomEventHandler in your plugin)
- Download the latest
CustomEventHandler.dllfrom the Releases page - Place it in your server's
%AppData%\Roaming\SCP Secret Laboratory\LabAPI\dependencies\globalfolder - Add a reference to
CustomEventHandler.dllin your plugin project - Start using the event management features!
For Server Owners
- Download the latest
CustomEventHandler.dllfrom the Releases page - Place it in your server's
.config\SCP Secret Laboratory\LabAPI\dependencies\globalfolder - Restart your server