Example #1
0
        protected override void Unload()
        {
            instance     = null;
            TasedPlayers = null;

            UnturnedEvents.OnPlayerDamaged -= OnPlayerDamage;

            Logger.Log($"{Name} has been unloaded!", ConsoleColor.Yellow);
        }
Example #2
0
        protected override void Load()
        {
            instance = this;
            Logger.Log("#----------------------------------------#", ConsoleColor.Green);
            Logger.Log($"{Name} {Assembly.GetName().Version} has been loaded", ConsoleColor.Green);
            Logger.Log("Author: Dudewithoutname#3129", ConsoleColor.Green);
            Logger.Log("#----------------------------------------#", ConsoleColor.Green);

            TasedPlayers = new List <CSteamID>();


            UnturnedEvents.OnPlayerDamaged += OnPlayerDamage;
        }