Example #1
0
        protected override void Load()
        {
            Instance = this;

            combatLoggers = new List <CSteamID>();

            invHelper = new InventoryHelper();

            U.Events.OnPlayerDisconnected += OnPlayerDisconnected;
            U.Events.OnPlayerConnected    += OnPlayerConnected;

            Rocket.Unturned.Events.UnturnedPlayerEvents.OnPlayerRevive += OnPlayerRespawn;
            Rocket.Unturned.Events.UnturnedPlayerEvents.OnPlayerDead   += OnPlayerDead;

            ShowVersionMessage();
        }
        protected override void Load()
        {
            Instance = this;

            serverFolder = System.IO.Directory.GetParent(System.Environment.CurrentDirectory).ToString();

            combatLoggers = new List <CSteamID>();

            lastUsedCharMap = new Dictionary <byte, DateTime>();

            U.Events.OnPlayerDisconnected += OnPlayerDisconnected;
            U.Events.OnPlayerConnected    += OnPlayerConnected;

            Rocket.Unturned.Events.UnturnedPlayerEvents.OnPlayerRevive += OnPlayerRespawn;
            Rocket.Unturned.Events.UnturnedPlayerEvents.OnPlayerDead   += OnPlayerDead;

            ShowVersionMessage();
        }