Fixed duplicate entries in Player table

This commit is contained in:
Rsl1122 2019-09-26 17:37:53 +03:00
parent 150e08186c
commit 1b652952cf
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ public class NetworkTablePlayersQuery implements Query<List<TablePlayer>> {
@Override
public List<TablePlayer> executeQuery(SQLDB db) {
String selectGeolocations = SELECT +
String selectGeolocations = SELECT + DISTINCT +
GeoInfoTable.USER_UUID + ", " +
GeoInfoTable.GEOLOCATION + ", " +
GeoInfoTable.LAST_USED +

View File

@ -57,7 +57,7 @@ public class ServerTablePlayersQuery implements Query<List<TablePlayer>> {
@Override
public List<TablePlayer> executeQuery(SQLDB db) {
String selectGeolocations = SELECT +
String selectGeolocations = SELECT + DISTINCT +
GeoInfoTable.USER_UUID + ", " +
GeoInfoTable.GEOLOCATION + ", " +
GeoInfoTable.LAST_USED +