- Say command no longer invokes the player.executecommand() method as having the server force player execution of a command messes up their Command Input on the terminal client.
   Now the command instances a new working copy of what ever command it needs to execute and will execute the command directly from within itself. 
   
   Note: All scripted commands and engine Types need to be updated to do this in the future.
This commit is contained in:
Scionwest_cp 2010-09-04 10:23:26 -07:00
parent 00ce7b0025
commit d32fd08e8d
3 changed files with 4 additions and 158 deletions

View file

@ -108,6 +108,8 @@ public class CommandCreate : IGameCommand
player.Send(env[0] + " created.");
Log.Write(player.Name + " created a Realm called " + realm.Filename);
}
//Check if this Zone is a valid Zone. if it returns true, then the 'zone' field will reference the new Zone
Boolean validZone = ValidateZone(env[0], env[1], player);
if (validZone)

View file

@ -43,7 +43,8 @@ public class CommandSay : IGameCommand
if (command.Length <= 4)
{
//If no message content, print the help for the command to the player.
player.ExecuteCommand("Help Say");
CommandHelp help = new CommandHelp();
help.Execute("Help Say", player);
return; //nothing to say, don't say anything at all.
}