show on_any
This commit is contained in:
parent
aa541e3bf9
commit
2e96d585a3
1 changed files with 5 additions and 1 deletions
|
@ -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…
Reference in a new issue