public string Prepare() { return("&port=" + Server.port + "&max=" + Server.players + "&name=" + Heart.EncodeUrl(Server.name) + "&public=" + Server.pub + "&version=7" + "&salt=" + Server.salt + "&users=" + Player.players.Count); }
public string Prepare() { return("&port=" + Server.port + "&max=" + Server.players + "&name=" + Heart.EncodeUrl(Server.name) + "&public=" + Server.pub + "&version=" + Server.version + "&salt=" + Server.salt + "&users=" + Player.number + "&alt=" + Server.Server_ALT + "&desc=" + Server.Server_Disc + "&flags=" + Server.Server_Flag); }
public string Prepare() { string Parameters = "name=" + Heart.EncodeUrl(Server.name) + "&users=" + Player.players.Count + "&max=" + Server.players + "&port=" + Server.port + "&version=" + Server.Version + "&gcname=" + Heart.EncodeUrl(Server.UseGlobalChat ? Server.GlobalChatNick : "[Disabled]" ) + "&public=" + ( Server.pub ? "1" : "0" ) + "&motd=" + Heart.EncodeUrl(Server.motd); if ( Server.levels != null && Server.levels.Count > 0 ) { IEnumerable<string> worlds = from l in Server.levels select l.name; Parameters += "&worlds=" + String.Join(", ", worlds.ToArray()); } return Parameters; }