Пример #1
0
        static void DoUnmute(ModAction e)
        {
            Player who = PlayerInfo.FindExact(e.Target);

            if (who != null)
            {
                who.muted = false;
            }
            LogAction(e, who, "&aun-muted");

            Server.muted.Remove(e.Target);
            ModerationTasks.MuteCalcNextRun();
            Server.muted.Save();
        }
Пример #2
0
        static void DoMute(ModAction e)
        {
            Player who = PlayerInfo.FindExact(e.Target);

            if (who != null)
            {
                who.muted = true;
            }
            LogAction(e, who, "&8muted");

            Server.muted.Update(e.Target, FormatModTaskData(e));
            ModerationTasks.MuteCalcNextRun();
            Server.muted.Save();
        }