From fea7430304fcdaf0ae4c171319e6093f389319c9 Mon Sep 17 00:00:00 2001 From: Jared Miller Date: Sat, 14 Feb 2026 19:12:59 -0500 Subject: [PATCH] Hide admin commands from non-admin players in command list --- src/mudlib/commands/help.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mudlib/commands/help.py b/src/mudlib/commands/help.py index f53404e..f1d834f 100644 --- a/src/mudlib/commands/help.py +++ b/src/mudlib/commands/help.py @@ -229,6 +229,9 @@ async def cmd_commands(player: Player, args: str) -> None: other: list[CommandDefinition] = [] for defn in unique_commands: + # Hide admin commands from non-admins + if defn.admin and not player.is_admin: + continue # Check if it's a movement command if defn.name in DIRECTIONS: movement.append(defn)