server pop on creation displays amount of realms captured

This commit is contained in:
FatBoy committed 2024-06-25 21:07:47 -05:00
1 parent bb8ad3c971
commit 1c342bd566
2 files changed
+42 -16

No files matched your search

+3 -2
View File
@@ -95,7 +95,7 @@ public class dbCityHandler extends dbHandlerBase {
return objectList;
}
public Integer GET_CITY_COUNT() {
public Integer GET_CAPITAL_CITY_COUNT() {
int cityCount = 0;
try (Connection connection = DbManager.getConnection();
@@ -105,7 +105,8 @@ public class dbCityHandler extends dbHandlerBase {
while(rs.next()){
if(rs.getInt("isNpc") == 0)
cityCount++;
if(DbManager.BuildingQueries.GET_BUILDINGBYUUID(rs.getInt("treeOfLifeUUID")).getRank() == 8)
cityCount++;
}
} catch (SQLException e) {