mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Better formatting
This commit is contained in:
@ -330,7 +330,9 @@ impl ChatCommand {
|
|||||||
vec!["pvp".to_owned(), "pve".to_owned()],
|
vec!["pvp".to_owned(), "pve".to_owned()],
|
||||||
Optional,
|
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.",
|
If called without arguments will show current battle mode.",
|
||||||
None,
|
None,
|
||||||
),
|
),
|
||||||
|
@ -3152,7 +3152,7 @@ fn handle_battlemode(
|
|||||||
let elapsed = time - last_change;
|
let elapsed = time - last_change;
|
||||||
if elapsed < COOLDOWN {
|
if elapsed < COOLDOWN {
|
||||||
let msg = format!(
|
let msg = format!(
|
||||||
"Cooldown period active. Try again in {} second",
|
"Cooldown period active. Try again in {:.0} seconds",
|
||||||
COOLDOWN - elapsed,
|
COOLDOWN - elapsed,
|
||||||
);
|
);
|
||||||
return Err(msg);
|
return Err(msg);
|
||||||
|
Reference in New Issue
Block a user