Commit 375e4ec1 authored by Neoony's avatar Neoony
Browse files

Backup Lobby will only show if main Lobby isnt up

parent 538186ee
......@@ -190,7 +190,24 @@ function RefreshSQL()
//{
// message.channel.send('My Message')
//});
if (namex[i] == 'Empires Lobby' && addrx[i] == '185.165.242.40:27015' || namex[i] == 'Empires Backup Lobby' && addrx[i] == '80.112.155.100:27015')
if (namex[i] == 'Empires Lobby' && addrx[i] == '185.165.242.40:27015')
{
LobbyUp = 1;
messageQuickPlay = "***`" + "Quick play ---> `*** **steam://connect/" + addrx[i] + "**";
playersinlobby = playersx[i];
if (playersx[i] == 0)
{
messageServerOn = "```yaml\n" + namex[i] + " [" + playersx[i] + "/" + maxplayersx[i] + "]" + "\n" + mapx[i] + " [XP " + xpmessage[i] + "]" + "\n" + addrx[i] + "```" + "***`" + "Quick play ---> `*** **steam://connect/" + addrx[i] + "**\n";
}
if (playersx[i] > 0)
{
messageServerOn = "**```yaml\n" + namex[i] + " [" + playersx[i] + "/" + maxplayersx[i] + "]" + "\n" + mapx[i] + " [XP " + xpmessage[i] + "]" + "\n" + addrx[i] + "```**" + " ***`" + "Quick play ---> `*** **steam://connect/" + addrx[i] + "**\n";
}
}
if (namex[i] == 'Empires Backup Lobby' && addrx[i] == '80.112.155.100:27015' && LobbyUp == 0)
{
LobbyUp = 1;
messageQuickPlay = "***`" + "Quick play ---> `*** **steam://connect/" + addrx[i] + "**";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment