Also pretty commands for RCON

This commit is contained in:
Alexander Medvedev committed 2024-08-21 20:12:14 +01:00
1 parent 13206d58d9
commit caa6a7088b
1 file changed
+1 -1
+1 -1
View File
@@ -26,7 +26,7 @@ impl<'a> CommandSender<'a> {
// TODO: add color and stuff to console // TODO: add color and stuff to console
CommandSender::Console => log::info!("{}", text.to_pretty_console()), CommandSender::Console => log::info!("{}", text.to_pretty_console()),
CommandSender::Player(c) => c.send_system_message(text), CommandSender::Player(c) => c.send_system_message(text),
CommandSender::Rcon(s) => s.push(format!("{:?}", text.content)), CommandSender::Rcon(s) => s.push(format!("{}", text.to_pretty_console())),
} }
} }