예제 #1
0
 protected override void Unload()
 {
     UnturnedPlayerEvents.OnPlayerDeath -= OnPlayerDeath;
     DamageTool.playerDamaged           -= OnDamage;
     Instance = null;
     base.Unload();
 }
예제 #2
0
        protected override void Load()
        {
            base.Load();
            Instance = this;
            Logger.LogWarning("\n Loading KillLimiter, made by Mr.Kwabs...");
            Logger.LogWarning($"\n Kill Limit: {Instance.Configuration.Instance.KillLimit}");
            Logger.LogWarning($"\n Cooldown (Seconds): {Instance.Configuration.Instance.LimitCooldown}");
            Logger.LogWarning("\n Successfully loaded KillLimiter, made by Mr.Kwabs!");


            UnturnedPlayerEvents.OnPlayerDeath += OnPlayerDeath;
            DamageTool.playerDamaged           += OnDamage;
        }