Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
        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;
        }