private void OnPlayerRevive(UnturnedPlayer player, Vector3 position, byte angle) { if (Commands.Command_AutoSkills.AutoSkills.Contains(player.CSteamID)) { player.MaxSkills(); UnturnedChat.Say(player, Translate("max_skills"), Color.green); } if (Commands.Command_AutoCopy.AutoCopy.Contains(player.CSteamID)) { InventoryManager.AutoCopy(player); } if (Commands.Command_AutoSave.AutoSave.ContainsKey(player.CSteamID)) { KitManager.AutoSave(player); } if (Commands.Command_AutoLoad.AutoLoad.ContainsKey(player.CSteamID)) { string kitName = Commands.Command_AutoLoad.AutoLoad[player.CSteamID]; if (!KitManager.HasSavedKits(player, KitManager.Kits)) { UnturnedChat.Say(player, Instance.Translate("no_saved_kits"), Color.red); return; } if (!KitManager.HasKit(player, kitName, KitManager.Kits)) { UnturnedChat.Say(player, Translate("no_kit_exists"), Color.red); return; } StartCoroutine(KitManager.DelayedLoad(player, kitName, 0.3f)); } }