show on_any

This commit is contained in:
eater 2020-02-25 20:04:17 +01:00
parent aa541e3bf9
commit 2e96d585a3
Signed by: eater
GPG key ID: AD2560A0F84F0759

View file

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