Commit 8e650f5a authored by Neoony's avatar Neoony
Browse files

Small fix

parent 54e1b097
......@@ -225,6 +225,12 @@ function RefreshSQL()
client.user.setPresence({ game: { name: "with " + playersinlobby + " player", type: "Playing", url: "https://empiresmod.com"}});
}
if (playersinlobby == 0 && numberofallplayers != 0)
{
client.user.setPresence({ game: { name: "Waiting for players", type: "Playing", url: "https://empiresmod.com"}});
client.user.setStatus('idle');
}
if (playersoutoflobby >= 8)
{
client.user.setStatus('available');
......@@ -244,12 +250,6 @@ function RefreshSQL()
client.user.setStatus('idle');
}
if (playersinlobby == 0 && numberofallplayers != 0)
{
client.user.setPresence({ game: { name: "Waiting for players", type: "Playing", url: "https://empiresmod.com"}});
client.user.setStatus('idle');
}
//messageServerOn += namex[i] + " (" + playersx[i] + "/" + maxplayersx[i] + ")" + "\n" + addrx[i] + "\n";
//console.log('Returned value on message: ', messageServerOn);
//client.user.setStatus('available')
......
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