Commit b2b56b7b authored by Neoony's avatar Neoony
Browse files

Small fix

parent 431eabfa
......@@ -187,7 +187,7 @@ function RefreshSQL()
//{
// message.channel.send('My Message')
//});
if (namex[i] == 'Empires Lobby' || namex[i] == 'Empires Backup Lobby' && addrx[i] == '185.165.242.40:27015' || addrx[i] == '80.112.155.100:27015')
if (namex[i] == 'Empires Lobby' && addrx[i] == '185.165.242.40:27015' || namex[i] == 'Empires Backup Lobby' && addrx[i] == '80.112.155.100:27015')
{
messageQuickPlay = "***`" + "Quick play ---> `*** **steam://connect/" + addrx[i] + "**";
......@@ -210,33 +210,36 @@ function RefreshSQL()
for (i = 0; i < numberofservers; i++)
{
if (namex[i] != 'Empires Lobby' || namex[i] != 'Empires Backup Lobby' && addrx[i] != '185.165.242.40:27015' || addrx[i] != '80.112.155.100:27015')
if (namex[i] != 'Empires Lobby' && addrx[i] != '185.165.242.40:27015')
{
if (HighestCurPopulation <= playersx[i])
if (namex[i] != 'Empires Backup Lobby' && addrx[i] != '80.112.155.100:27015')
{
HighestCurPopulation = playersx[i];
HighestPopServer = i;
}
playersoutoflobby = playersoutoflobby + playersx[i];
if (xpx[i] == 1)
{
xpmessage[i] = "On";
}
if (xpx[i] == 0)
{
xpmessage[i] = "Off";
}
if (playersx[i] == 0)
{
messageServerOn += "```\n" + namex[i] + " [" + playersx[i] + "/" + maxplayersx[i] + "]" + "\n" + mapx[i] + " [XP " + xpmessage[i] + "]" + "\n" + addrx[i] + "```";
}
if (playersx[i] > 0)
{
messageServerOn += "```fix\n" + namex[i] + " [" + playersx[i] + "/" + maxplayersx[i] + "]" + "\n" + mapx[i] + " [XP " + xpmessage[i] + "]" + "\n" + addrx[i] + "```";
if (HighestCurPopulation <= playersx[i])
{
HighestCurPopulation = playersx[i];
HighestPopServer = i;
}
playersoutoflobby = playersoutoflobby + playersx[i];
if (xpx[i] == 1)
{
xpmessage[i] = "On";
}
if (xpx[i] == 0)
{
xpmessage[i] = "Off";
}
if (playersx[i] == 0)
{
messageServerOn += "```\n" + namex[i] + " [" + playersx[i] + "/" + maxplayersx[i] + "]" + "\n" + mapx[i] + " [XP " + xpmessage[i] + "]" + "\n" + addrx[i] + "```";
}
if (playersx[i] > 0)
{
messageServerOn += "```fix\n" + namex[i] + " [" + playersx[i] + "/" + maxplayersx[i] + "]" + "\n" + mapx[i] + " [XP " + xpmessage[i] + "]" + "\n" + 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