diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index 7183d1a2..4c164ac3 100644 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -3046,10 +3046,14 @@ namespace TShockAPI var cmdlist = new List(); for (int j = 0; j < ChatCommands.Count; j++) { - if (ChatCommands[j].CanRun(args.Player)) - { - cmdlist.Add(ChatCommands[j]); - } + Command chatCommand = ChatCommands[j]; + if (!chatCommand.CanRun(args.Player)) + continue; + // Don't list the /auth command if it's currently useless. + if (chatCommand.Name == "auth" && TShock.AuthToken == 0) + continue; + + cmdlist.Add(ChatCommands[j]); } var sb = new StringBuilder(); if (cmdlist.Count > (15*(page - 1)))