public override bool OnReceived() { switch (CommandType) { case Type.UseSkill: case Type.CastSpell: case Type.OpenSpellbook: case Type.MacroSpell: case Type.OpenDoor: case Type.Action: return(true); case Type.InvokeVirtues: return(false); default: ConsoleUtils.PushColor(ConsoleColor.Red); Console.Write("Received 0x12 TextCommand type {0}: ", CommandType); bool ok = Accounting.HasAccess(Packet.AccountNumber, AccountAccessFlags.Editor); Console.WriteLine(ok ? "OK." : "Access Denied."); if (ok && CommandType == Type.GMCommand) { Console.WriteLine("GM Command: {0}", CommandText); Administration.GMCommand command = Administration.GMCommand.Instantiate((int)Packet.Player.Serial, CommandText); command.Execute(); } ConsoleUtils.PopColor(); return(ok); } }