server pop on creation displays amount of realms captured

This commit is contained in:
2024-06-25 21:07:47 -05:00
parent bb8ad3c971
commit 1c342bd566
2 changed files with 42 additions and 16 deletions
+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) {