- Fixed order of Top Elo
This commit is contained in:
parent
26f6a1189f
commit
a8d9745320
@ -1,6 +1,12 @@
|
||||
package mineplex.core.elo;
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
import java.sql.Connection;
|
||||
import java.sql.PreparedStatement;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
import mineplex.core.common.util.Callback;
|
||||
import mineplex.core.common.util.UtilTime;
|
||||
import mineplex.core.common.util.UtilTime.TimeUnit;
|
||||
@ -8,15 +14,12 @@ import mineplex.core.database.MinecraftRepository;
|
||||
import mineplex.serverdata.database.DBPool;
|
||||
import mineplex.serverdata.database.column.ColumnInt;
|
||||
import mineplex.serverdata.database.column.ColumnLong;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
import org.bukkit.scheduler.BukkitRunnable;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.PreparedStatement;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
import com.google.common.collect.Lists;
|
||||
|
||||
public class EloRepository extends MinecraftRepository
|
||||
{
|
||||
@ -199,7 +202,7 @@ public class EloRepository extends MinecraftRepository
|
||||
Connection connection = getConnection();
|
||||
PreparedStatement statement = null;
|
||||
PreparedStatement nameStatement = null;
|
||||
List<TopEloData> dataList = Lists.newArrayList();
|
||||
LinkedList<TopEloData> dataList = Lists.newLinkedList();
|
||||
try
|
||||
{
|
||||
String GET_ELO = "SELECT `elo`,`accountId` FROM `eloRating` WHERE `gameType`=? ORDER BY `elo` DESC LIMIT " + limit + ";" ;
|
||||
|
Loading…
Reference in New Issue
Block a user