Core: Console can now see invalid command attempts.

This commit is contained in:
Goodlyay 2017-01-20 16:37:20 -08:00
parent 767b663566
commit 92f1f5ab04

View File

@ -766,6 +766,7 @@ namespace MCGalaxy {
cmdArgs = cmd.ToLower(); cmd = "mode"; cmdArgs = cmd.ToLower(); cmd = "mode";
command = Command.all.Find("mode"); command = Command.all.Find("mode");
} else { } else {
Server.s.CommandUsed(name + " tried to use unknown command: /" + cmd + " " + cmdArgs);
SendMessage("Unknown command \"" + cmd + "\"."); return null; SendMessage("Unknown command \"" + cmd + "\"."); return null;
} }
} }