void RedeemInventory(BasePlayer player) { EventPlayer eventplayer = player.GetComponent <EventPlayer>(); if (eventplayer == null) { return; } if (player.IsDead()) { return; } if (eventplayer.savedInventory) { eventplayer.player.inventory.Strip(); eventplayer.RestoreInventory(); } }