private void OnKitDeleted(UnturnedPlayer player, string kitName) { if (Configuration.Instance.KeepKitsOnRestart == true) { KitManager.TryStoreKits(); } }
protected override void Unload() { KitManager.TryStoreKits(); UnturnedPlayerEvents.OnPlayerRevive -= OnPlayerRevive; UnturnedPlayerEvents.OnPlayerDeath -= OnPlayerDeath; UnturnedPlayerEvents.OnPlayerInventoryRemoved -= OnItemRemoved; U.Events.OnPlayerDisconnected -= OnPlayerDisconnected; U.Events.OnPlayerConnected -= OnPlayerConnected; R.Plugins.OnPluginsLoaded -= OnPluginsLoad; R.Commands.OnExecuteCommand -= OnCommandExecuted; Events.OnKitDeleted -= OnKitDeleted; Events.OnKitSaved -= OnKitSaved; Write("Visit Plugins.4Unturned.tk for more!", ConsoleColor.Green); }