protected override void Load() { Logger.LogWarning("Loading CommandVote Plugin"); Instance = this; this.ActivatedCommands = new List <string>(); LoadCommand("Airdrop", Configuration.Instance.AirdropEnabled); LoadCommand("Day", Configuration.Instance.DayEnabled); LoadCommand("Night", Configuration.Instance.NightEnabled); LoadCommand("Kick", Configuration.Instance.KickEnabled); this.RequiredPercentage = Configuration.Instance.RequiredPercentage; if (this.RequiredPercentage < 0 || this.RequiredPercentage > 1) { this.RequiredPercentage = 60; } this.VoteRunTime = Configuration.Instance.VoteRunTimeSeconds; this.VoteCooldownTime = Configuration.Instance.VoteCooldownTimeSeconds; }
protected override void Unload() { Instance = null; this.ActivatedCommands = null; this.VotedPlayers = null; }