feat: add plugin support

This commit is contained in:
Alexander Medvedev committed 2026-09-08 17:33:35 +02:00
1 parent 9ca11c175f
commit a100ba9549
29 files changed
+3496 -57

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
interface context {
use types.{event-priority};
use event.{event-type};
resource context {
/// Register an event listener for an event type with priority
register-event: func(handler-id: u32, event-type: event-type, priority: event-priority);
/// Register a proxy command
register-command: func(command-id: u32, name: string, description: string, aliases: list<string>, permission: option<string>);
/// Get path to the plugin's data folder (e.g. plugins/data/<plugin-name>)
get-data-folder: func() -> string;
}
}