summaryrefslogtreecommitdiff
path: root/server/src/commands.rs
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/commands.rs')
-rw-r--r--server/src/commands.rs10
1 files changed, 7 insertions, 3 deletions
diff --git a/server/src/commands.rs b/server/src/commands.rs
index b06d9261..8e6f32c7 100644
--- a/server/src/commands.rs
+++ b/server/src/commands.rs
@@ -18,6 +18,7 @@
use crate::{
entity::{bot::BotDriver, tutorial::Tutorial},
server::Server,
+ trm,
};
use anyhow::{anyhow, bail, Result};
use clap::{Parser, ValueEnum};
@@ -131,14 +132,17 @@ impl Server {
Command::End => {
self.tx
.send(PacketC::ServerMessage {
- text: format!(
- "Game was aborted by {}.",
- self.game
+ message: trm!(
+ "s.state.game_aborted",
+ s = self
+ .game
.players
.get(&player)
.ok_or(anyhow!("player missing"))?
.name
+ .clone()
),
+ error: false,
})
.ok();
self.load(self.index.generate("lobby").await?, None);