public override void Execute(CommandArguments args, ICommandUser sender)
        {
            var condensedOpCode = args.NextUInt16();
            var opCodes = OpCodeUtility.GetOpCodesForCondensedOpCode(condensedOpCode);

            if (opCodes.Count() == 0)
            {
                sender.Respond("No uncompressed opcodes found.");
                return;
            }

            sender.Respond("Found the following opcodes:");
            foreach (var uncompressedOpCode in opCodes)
                sender.Respond("{0} ({0:X})".Interpolate(uncompressedOpCode));
        }
        public override void Execute(CommandArguments args, ICommandUser sender)
        {
            var condensedOpCode = args.NextUInt16();
            var opCodes         = OpCodeUtility.GetOpCodesForCondensedOpCode(condensedOpCode);

            if (opCodes.Count() == 0)
            {
                sender.Respond("No uncompressed opcodes found.");
                return;
            }

            sender.Respond("Found the following opcodes:");
            foreach (var uncompressedOpCode in opCodes)
            {
                sender.Respond("{0} ({0:X})".Interpolate(uncompressedOpCode));
            }
        }
Ejemplo n.º 3
0
        public override void Execute(CommandArguments args, ICommandUser sender)
        {
            var opCode = args.NextUInt16();
            if (opCode == 0)
            {
                sender.Respond("Invalid opcode given.");
                return;
            }

            var jamClient = OpCodeUtility.GetJamClientOpCode(opCode);
            sender.Respond(jamClient != null ? "JAM client opcode: {0} ({0:X})".Interpolate(jamClient) :
                "Could not calculate JAM client opcode.");

            var jamClientConn = OpCodeUtility.GetJamClientConnectionOpCode(opCode);
            sender.Respond(jamClientConn != null ? "JAM client connection opcode: {0} ({0:X})".Interpolate(jamClientConn) :
                "Could not calculate JAM client connection opcode.");
        }
Ejemplo n.º 4
0
        public override void Execute(CommandArguments args, ICommandUser sender)
        {
            var opCode = args.NextUInt16();
            if (opCode == 0)
            {
                sender.Respond("Invalid opcode given.");
                return;
            }

            var result = OpCodeUtility.CompressOpCode(opCode);
            if (result == null)
            {
                sender.Respond("Could not condense opcode.");
                return;
            }

            sender.Respond("Condensed opcode: {0}".Interpolate(result));
        }
Ejemplo n.º 5
0
        public override void Execute(CommandArguments args, ICommandUser sender)
        {
            var opCode = args.NextUInt16();

            if (opCode == 0)
            {
                sender.Respond("Invalid opcode given.");
                return;
            }

            var jamClient = OpCodeUtility.GetJamClientOpCode(opCode);

            sender.Respond(jamClient != null ? "JAM client opcode: {0} ({0:X})".Interpolate(jamClient) :
                           "Could not calculate JAM client opcode.");

            var jamClientConn = OpCodeUtility.GetJamClientConnectionOpCode(opCode);

            sender.Respond(jamClientConn != null ? "JAM client connection opcode: {0} ({0:X})".Interpolate(jamClientConn) :
                           "Could not calculate JAM client connection opcode.");
        }
Ejemplo n.º 6
0
        public override void Execute(CommandArguments args, ICommandUser sender)
        {
            var opCode = args.NextUInt16();

            if (opCode == 0)
            {
                sender.Respond("Invalid opcode given.");
                return;
            }

            var result = OpCodeUtility.CompressOpCode(opCode);

            if (result == null)
            {
                sender.Respond("Could not condense opcode.");
                return;
            }

            sender.Respond("Condensed opcode: {0}".Interpolate(result));
        }