Add /kill and /dispose chat commands
This commit is contained in:
committed by
Paul Chote
parent
fc07391c8c
commit
5ac0625f97
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user