示例#1
0
        public static void OnStart()
        {
            WebhookHandler wb = new WebhookHandler();

            if (AdminLogs.Instance.Config.RoundStart)
            {
                wb.SendTitle("Round Started", 8569950);
            }
        }
示例#2
0
        public static void OnChangeClass(PlayerClassChangeEvent ev)
        {
            // In Locally hosted servers, often the chat would be spammed with respawns from host.
            if (ev.player.PlayerName.Equals("Host"))
            {
                return;
            }

            WebhookHandler wb = new WebhookHandler();

            if (ev.newClassId == 0 && ev.prevClassId == 1)
            {
                wb.SendTitle($"{ev.player.PlayerName} has died!", 12874076);
            }

            if (ev.newClassId == 1 && ev.prevClassId == 0)
            {
                wb.SendTitle($"{ev.player.PlayerName} has respawned!", 12874076);
            }
        }