PRoConEvents.MULTIbalancer.CheckRageQuit C# (CSharp) Method

CheckRageQuit() private method

private CheckRageQuit ( String name ) : void
name String
return void
        private void CheckRageQuit(String name)
        {
            /*
            Heuristic: if player leaves server within 1 minute of being moved, treat as a rage quit
            due to actions of this plugin.
            */
            PlayerModel player = GetPlayer(name);
            if (player == null) return;

            ++fTotalQuits;

            if (player.MovedTimestamp != DateTime.MinValue && DateTime.Now.Subtract(player.MovedTimestamp).TotalSeconds <= 60) {
            ++fRageQuits;
            DebugWrite("Looks like ^b" + name + "^n rage quit: " + fRageQuits + " so far this round, out of " + fTotalQuits, 4);
            }
        }
MULTIbalancer