cargo fmt

This commit is contained in:
Snowiiii committed 2024-08-14 21:37:27 +02:00
1 parent 5f8cbdbba6
commit 6485c99167
9 files changed
+36 -32

No files matched your search

+3 -5
View File
@@ -1,17 +1,15 @@
use super::Command;
pub struct StopCommand {
}
pub struct StopCommand {}
impl<'a> Command<'a> for StopCommand {
const NAME: &'static str = "stop";
const DESCRIPTION: &'static str = "Stops the server";
fn on_execute(sender: &mut super::CommandSender<'a>, command: String) {
std::process::exit(0);
}
fn player_required() -> bool {
true
}
}
}