public void SetName(string newName) { string oldName = PlayerName; PlayerName = newName; if (oldName != PlayerName) { RavenhillEvents.OnPlayerNameChanged(oldName, PlayerName); } }