Better formatting

This commit is contained in:
juliancoffee 2021-09-04 20:56:55 +03:00
parent 3cf9d0cdb0
commit 670e29a286
2 changed files with 4 additions and 2 deletions

View File

@ -330,7 +330,9 @@ impl ChatCommand {
vec!["pvp".to_owned(), "pve".to_owned()],
Optional,
)],
"Set your battle mode to pvp (player vs player) or pve (player vs environment).\n\
"Set your battle mode to:\n\
* pvp (player vs player)\n\
* pve (player vs environment).\n\
If called without arguments will show current battle mode.",
None,
),

View File

@ -3152,7 +3152,7 @@ fn handle_battlemode(
let elapsed = time - last_change;
if elapsed < COOLDOWN {
let msg = format!(
"Cooldown period active. Try again in {} second",
"Cooldown period active. Try again in {:.0} seconds",
COOLDOWN - elapsed,
);
return Err(msg);