You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
356 B
Rust

use crate::plugin::Events;
mod plugin;
struct Server;
impl Events for Server {
fn new() -> Self {
Server
}
fn on_server_init(&self) {
plugin::log_message(plugin::LOG_WARN, "Hello from Rust :3");
}
fn on_server_post_init(&self) {
plugin::log_message(plugin::LOG_FATAL, "Hi!?");
}
}
use_events!(Server);