Implement invalid command handler, thank you to Matadoer for pointing this omission out with his plugin.

This commit is contained in:
Zidonuke 2011-12-22 01:57:03 -05:00
parent 0cdafc0e81
commit fc6278b16d

View file

@ -215,7 +215,10 @@ namespace TShockAPI
Command cmd = ChatCommands.FirstOrDefault(c => c.HasAlias(cmdName));
if (cmd == null)
return false;
{
player.SendMessage("Invalid Command Entered. Type /help for a list of valid Commands.", Color.Red);
return true;
}
if (!cmd.CanRun(player))
{