Beispiel #1
0
        private void Callbacks_PlayerCheckpoint(object sender, PlayerCheckpointEventArgs e)
        {
            if (!Settings.ResetOnCheckpoint)
            {
                return;
            }

            RunCatchLog(() => ResetValues(e.Login), "Error in Callbacks_PlayerCheckpoint Method.", true);
        }
Beispiel #2
0
        private void Callbacks_PlayerCheckpoint(object sender, PlayerCheckpointEventArgs e)
        {
            RunCatchLog(() =>
            {
                if (e.TimeOrScore <= 0)
                {
                    SendEmptyManiaLinkPageToLogin(e.Login, MANIA_LINK_PAGE_ID);
                    return;
                }

                int?diff = GetDiff(e.Login, e.CheckpointIndex, e.TimeOrScore, false);

                if (diff.HasValue)
                {
                    SendCheckPointUIToLogin(e.Login, diff.Value, e.CheckpointIndex, false);
                }
                else
                {
                    SendEmptyManiaLinkPageToLogin(e.Login, MANIA_LINK_PAGE_ID);
                }
            }, "Error in Callbacks_PlayerCheckpoint Method.", true);
        }