internal HeartbeatData( [NotNull] Uri heartbeatUri )
{
if ( heartbeatUri == null )
throw new ArgumentNullException( "heartbeatUri" );
IsPublic = ConfigKey.IsPublic.Enabled();
MaxPlayers = ConfigKey.MaxPlayers.GetInt();
PlayerCount = Server.CountPlayers( false );
ServerIP = Server.InternalIP;
Port = Server.Port;
ProtocolVersion = Config.ProtocolVersion;
Salt = Heartbeat.Salt;
ServerName = ConfigKey.ServerName.GetString();
CustomData = new Dictionary<string, string>();
HeartbeatUri = heartbeatUri;
}