Add /kill and /dispose chat commands

This commit is contained in:
Mustafa Alperen Seki
2017-11-04 19:48:41 +03:00
committed by Paul Chote
parent fc07391c8c
commit 5ac0625f97
2 changed files with 34 additions and 1 deletions

View File

@@ -36,7 +36,7 @@ namespace OpenRA.Mods.Common.Commands
var command = Commands.FirstOrDefault(x => x.Key == name);
if (command.Value != null)
command.Value.InvokeCommand(name.ToLowerInvariant(), message.Substring(1 + name.Length));
command.Value.InvokeCommand(name.ToLowerInvariant(), message.Substring(1 + name.Length).Trim());
else
Game.Debug("{0} is not a valid command.", name);