|
|
|
@ -9,15 +9,15 @@ impl Events for Server {
|
|
|
|
|
Server
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn on_any(&self, event: &str) {
|
|
|
|
|
fn on_any(&mut self, event: &str) {
|
|
|
|
|
plugin::log_message(LOG_INFO, format!("Event triggered: {}", event).as_str());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn on_server_init(&self) {
|
|
|
|
|
fn on_server_init(&mut self) {
|
|
|
|
|
plugin::log_message(plugin::LOG_WARN, "Hello from Rust :3");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn on_server_post_init(&self) {
|
|
|
|
|
fn on_server_post_init(&mut self) {
|
|
|
|
|
plugin::log_message(plugin::LOG_FATAL, "Hi!?");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|