void SaveHomeLocation(BasePlayer player) { EventPlayer eventplayer = player.GetComponent <EventPlayer>(); if (eventplayer == null) { return; } eventplayer.SaveHome(); }