Esempio n. 1
0
        public override string GetHeartbeatData()
        {
            string name = ServerConfig.Name;

            OnSendingHeartbeatEvent.Call(this, ref name);
            name = Colors.Strip(name);

            return
                ("&port=" + ServerConfig.Port +
                 "&max=" + ServerConfig.MaxPlayers +
                 "&name=" + Uri.EscapeDataString(name) +
                 "&public=" + ServerConfig.Public +
                 "&version=7" +
                 "&salt=" + Server.salt +
                 "&users=" + PlayerInfo.NonHiddenCount() +
                 "&software=" + Uri.EscapeDataString(Server.SoftwareNameVersioned));
        }