|
|
@ -1,4 +1,4 @@
|
|
|
|
use crate::plugin::Events;
|
|
|
|
use crate::plugin::{Events, LOG_INFO};
|
|
|
|
|
|
|
|
|
|
|
|
mod plugin;
|
|
|
|
mod plugin;
|
|
|
|
|
|
|
|
|
|
|
@ -9,6 +9,10 @@ impl Events for Server {
|
|
|
|
Server
|
|
|
|
Server
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fn on_any(&self, event: &str) {
|
|
|
|
|
|
|
|
plugin::log_message(LOG_INFO, format!("Event triggered: {}", event).as_str());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
fn on_server_init(&self) {
|
|
|
|
fn on_server_init(&self) {
|
|
|
|
plugin::log_message(plugin::LOG_WARN, "Hello from Rust :3");
|
|
|
|
plugin::log_message(plugin::LOG_WARN, "Hello from Rust :3");
|
|
|
|
}
|
|
|
|
}
|
|
|
|