diff --git a/tes3mp-test/src/lib.rs b/tes3mp-test/src/lib.rs index 6281a63..be50053 100644 --- a/tes3mp-test/src/lib.rs +++ b/tes3mp-test/src/lib.rs @@ -1,4 +1,4 @@ -use crate::plugin::Events; +use crate::plugin::{Events, LOG_INFO}; mod plugin; @@ -9,6 +9,10 @@ impl Events for Server { Server } + fn on_any(&self, event: &str) { + plugin::log_message(LOG_INFO, format!("Event triggered: {}", event).as_str()); + } + fn on_server_init(&self) { plugin::log_message(plugin::LOG_WARN, "Hello from Rust :3"); }