public void Send() { if (ConsoleWindow.HasInstance()) { PlayerAttrType Type = (PlayerAttrType)AttrType; ConsoleWindow.instance.AddMessage( string.Format("Server Set Player {0} to {1}", Type.ToString(), Value) ); } }
protected override string Execute(string[] InArguments) { if (ConsoleWindow.HasInstance()) { PlayerAttrType Type = (PlayerAttrType)StringToEnum(InArguments[0], typeof(PlayerAttrType)); int Value = SmartConvert <int>(InArguments[1]); ConsoleWindow.instance.AddMessage( string.Format("Set Player {0} to {1}", Type.ToString(), Value) ); return(Done); } return("No Console Window"); }