show on_any

master
eater 5 years ago
parent aa541e3bf9
commit 2e96d585a3
Signed by: eater
GPG Key ID: AD2560A0F84F0759

@ -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");
}

Loading…
Cancel
Save