Commit 218a322e authored by Neoony's avatar Neoony
Browse files

Adjusted DB query to fit the XP changes made by Empires Lobby plugin

parent 46126fac
...@@ -124,7 +124,7 @@ function RefreshSQL() ...@@ -124,7 +124,7 @@ function RefreshSQL()
numberofservers = results[0].cnt; numberofservers = results[0].cnt;
}); });
connection.query("SELECT name, addr, players, maxplayers, map, xp FROM `LobbyDB`.`servers` WHERE password=0 AND isenabled=1 AND addr!='80.112.155.100:27017' ORDER BY xp DESC, players DESC LIMIT 10;", function (error, results, fields) connection.query("SELECT servers.name as name, servers.addr as addr, servers.players as players, servers.maxplayers as maxplayers, servers.map as map, xpdata.xp as xp FROM `LobbyDB`.`servers` LEFT JOIN `LobbyDB`.`xpdata` ON servers.addr = xpdata.addr WHERE servers.password=0 AND servers.isenabled=1 AND servers.addr!='80.112.155.100:27017' ORDER BY xp DESC, players DESC LIMIT 10;", function (error, results, fields)
{ {
if (error) if (error)
{ {
......
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