Hopefully, ELO Rating will be grabbed from the correct column now...
This commit is contained in:
parent
1532abcc62
commit
4955abb519
@ -72,7 +72,7 @@ public class ClanRepository extends MinecraftRepository
|
||||
private static String ADD_CLAN_TERRITORY = "INSERT INTO clanTerritory (clanId, chunk, safe) VALUES (?, ?, ?);";
|
||||
|
||||
//Not Sure if UPDATE_CLAN should set eloRating, but I would think it would need to
|
||||
private static String UPDATE_CLAN = "UPDATE clans SET name = ?, description = ?, home = ?, admin = ?, energy = ?, kills = ?, murder = ?, deaths = ?, warWins = ?, warLosses = ?, lastOnline = ?, eloRating = ? WHERE id = ?;";
|
||||
private static String UPDATE_CLAN = "UPDATE clans SET name = ?, description = ?, home = ?, admin = ?, energy = ?, kills = ?, murder = ?, deaths = ?, warWins = ?, warLosses = ?, lastOnline = ? WHERE id = ?;";
|
||||
private static String UPDATE_CLAN_MEMBER = "UPDATE accountClan AS AC INNER JOIN accounts ON accounts.id = AC.accountId SET AC.clanRole = ? WHERE AC.clanId = ? AND accounts.name = ?;";
|
||||
private static String UPDATE_CLAN_ALLIANCE = "UPDATE clanAlliances SET trusted = ? WHERE clanId = ? AND otherClanId = ?;";
|
||||
private static String UPDATE_CLAN_TERRITORY = "UPDATE clanTerritory SET safe = ? WHERE chunk = ?;"; //
|
||||
@ -201,11 +201,12 @@ public class ClanRepository extends MinecraftRepository
|
||||
clan.Deaths = resultSet.getInt(9);
|
||||
clan.WarWins = resultSet.getInt(10);
|
||||
clan.WarLosses = resultSet.getInt(11);
|
||||
clan.EloRating = resultSet.getInt(12);
|
||||
clan.Generator = resultSet.getString(13);
|
||||
clan.GeneratorStock = resultSet.getInt(14);
|
||||
clan.DateCreated = resultSet.getTimestamp(15);
|
||||
clan.LastOnline = resultSet.getTimestamp(16);
|
||||
clan.Generator = resultSet.getString(12);
|
||||
clan.GeneratorStock = resultSet.getInt(13);
|
||||
clan.DateCreated = resultSet.getTimestamp(14);
|
||||
clan.LastOnline = resultSet.getTimestamp(15);
|
||||
|
||||
clan.EloRating = resultSet.getInt(16);
|
||||
}
|
||||
}
|
||||
}, new ColumnVarChar("name", 100, clanName.toLowerCase()));
|
||||
@ -292,11 +293,13 @@ public class ClanRepository extends MinecraftRepository
|
||||
token.Deaths = resultSet.getInt(9);
|
||||
token.WarWins = resultSet.getInt(10);
|
||||
token.WarLosses = resultSet.getInt(11);
|
||||
token.EloRating = resultSet.getInt(12);
|
||||
token.Generator = resultSet.getString(13);
|
||||
token.GeneratorStock = resultSet.getInt(14);
|
||||
token.DateCreated = resultSet.getTimestamp(15);
|
||||
token.LastOnline = resultSet.getTimestamp(16);
|
||||
|
||||
token.Generator = resultSet.getString(12);
|
||||
token.GeneratorStock = resultSet.getInt(13);
|
||||
token.DateCreated = resultSet.getTimestamp(14);
|
||||
token.LastOnline = resultSet.getTimestamp(15);
|
||||
|
||||
token.EloRating = resultSet.getInt(16);
|
||||
|
||||
ClanTerritoryToken territoryToken = new ClanTerritoryToken();
|
||||
territoryToken.ClanName = token.Name;
|
||||
|
Loading…
Reference in New Issue
Block a user