/// <summary>
 /// Returns the <see cref="NetworkPlayer"/> with the given player name
 /// </summary>
 public static NetworkPlayer?GetNetworkPlayerByName(string name)
 {
     return(NetworkPlayersByName.TryGetValue(name, out NetworkPlayer player) ? (NetworkPlayer?)player : name == GadgetCoreAPI.GetPlayerName() ? (NetworkPlayer?)Network.player : null);
 }
 /// <summary>
 /// Returns the player name of the given <see cref="NetworkPlayer"/>
 /// </summary>
 public static string GetNameByNetworkPlayer(NetworkPlayer player)
 {
     return(NamesByNetworkPlayer.TryGetValue(player, out string name) ? name : player == Network.player ? GadgetCoreAPI.GetPlayerName() : null);
 }