From 9b08bfe9c215973ce60102df35bd36cb2886aba2 Mon Sep 17 00:00:00 2001 From: Griatch Date: Sat, 18 Jul 2020 21:56:34 +0200 Subject: [PATCH] Correct grammar for maxnum chars reached. Resolves #2151 --- evennia/commands/default/account.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/evennia/commands/default/account.py b/evennia/commands/default/account.py index 33e8aed55b..6f199a8a30 100644 --- a/evennia/commands/default/account.py +++ b/evennia/commands/default/account.py @@ -154,7 +154,8 @@ class CmdCharCreate(COMMAND_DEFAULT_CLASS): if not account.is_superuser and ( account.db._playable_characters and len(account.db._playable_characters) >= charmax ): - self.msg("You may only create a maximum of %i characters." % charmax) + plural = "" if charmax == 1 else "s" + self.msg(f"You may only create a maximum of {charmax} character{plural}.") return from evennia.objects.models import ObjectDB