Example #1
0
        public override void Use(Player p, string message)
        {
            if (message != "")
            {
                ChatModes.MessageOps(p, message); return;
            }

            p.opchat = !p.opchat;
            if (p.opchat)
            {
                Player.Message(p, "All messages will now be sent to OPs only");
            }
            else
            {
                Player.Message(p, "OP chat turned off");
            }
        }
Example #2
0
        public override void Use(Player p, string message, CommandData data)
        {
            if (message.Length > 0)
            {
                ChatModes.MessageOps(p, message); return;
            }

            p.opchat = !p.opchat;
            if (p.opchat)
            {
                p.Message("All messages will now be sent to OPs only");
            }
            else
            {
                p.Message("OP chat turned off");
            }
        }