@@ -246,6 +246,7 @@ public sealed class HeartbeatData {
246246 internal HeartbeatData ( [ NotNull ] Uri heartbeatUri ) {
247247 if ( heartbeatUri == null ) throw new ArgumentNullException ( "heartbeatUri" ) ;
248248 IsPublic = ConfigKey . IsPublic . Enabled ( ) ;
249+ IsWeb = ConfigKey . IsWeb . Enabled ( ) ;
249250 MaxPlayers = ConfigKey . MaxPlayers . GetInt ( ) ;
250251 PlayerCount = Server . CountPlayers ( false ) ;
251252 Port = Server . Port ;
@@ -286,6 +287,9 @@ internal HeartbeatData([NotNull] Uri heartbeatUri) {
286287 /// <summary> Whether or not the server should be listed on minecraft.net </summary>
287288 public bool IsPublic { get ; set ; }
288289
290+ /// <summary> Whether or not the server should allow Web Clients </summary>
291+ public bool IsWeb { get ; set ; }
292+
289293 /// <summary> Version of the classic minecraft protocol that this server is using. </summary>
290294 public int ProtocolVersion { get ; set ; }
291295
@@ -298,15 +302,16 @@ internal HeartbeatData([NotNull] Uri heartbeatUri) {
298302 internal Uri CreateUri ( ) {
299303 UriBuilder ub = new UriBuilder ( HeartbeatUri ) ;
300304 StringBuilder sb = new StringBuilder ( ) ;
301- sb . AppendFormat ( "public={0}&max={1}&users={2}&port={3}&version={4}&salt={5}&name={6}&software={7}" ,
305+ sb . AppendFormat ( "public={0}&max={1}&users={2}&port={3}&version={4}&salt={5}&name={6}&software={7}&web={8} " ,
302306 IsPublic ,
303307 MaxPlayers ,
304308 PlayerCount ,
305309 Port ,
306310 ProtocolVersion ,
307311 Uri . EscapeDataString ( Salt ) ,
308312 Uri . EscapeDataString ( ServerName ) ,
309- Server . Software . Replace ( "&" , "%26" ) ) ;
313+ Server . Software . Replace ( "&" , "%26" ) ,
314+ IsWeb ) ;
310315 foreach ( var pair in CustomData ) {
311316 sb . AppendFormat ( "&{0}={1}" ,
312317 Uri . EscapeDataString ( pair . Key ) ,
0 commit comments