|
|
@ -77,26 +77,12 @@ public class Realm { |
|
|
|
this.mapB = (float) (mapColor.getBlue() * 0.00392156863); |
|
|
|
this.mapB = (float) (mapColor.getBlue() * 0.00392156863); |
|
|
|
this.mapA = 1; |
|
|
|
this.mapA = 1; |
|
|
|
this.realmName = rs.getString("realmName"); |
|
|
|
this.realmName = rs.getString("realmName"); |
|
|
|
if(this.realmName.toLowerCase().equals("oblivion") || this.realmName.toLowerCase().equals("maelstrom")){ |
|
|
|
this.canBeClaimed = rs.getBoolean("canBeClaimed"); |
|
|
|
this.canBeClaimed = true; |
|
|
|
this.canPlaceCities = rs.getBoolean("canPlaceCities"); |
|
|
|
this.canPlaceCities = true; |
|
|
|
this.numCities = rs.getInt("numCities"); |
|
|
|
this.numCities = 5; |
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
this.canBeClaimed = rs.getBoolean("canBeClaimed"); |
|
|
|
|
|
|
|
this.canPlaceCities = rs.getBoolean("canPlaceCities"); |
|
|
|
|
|
|
|
this.numCities = rs.getInt("numCities"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.rulingCityUUID = rs.getInt("rulingCityUID"); |
|
|
|
this.rulingCityUUID = rs.getInt("rulingCityUID"); |
|
|
|
this.charterType = rs.getInt("charterType"); |
|
|
|
this.charterType = rs.getInt("charterType"); |
|
|
|
|
|
|
|
|
|
|
|
java.sql.Timestamp ruledTimeStamp = rs.getTimestamp("ruledSince"); |
|
|
|
java.sql.Timestamp ruledTimeStamp = rs.getTimestamp("ruledSince"); |
|
|
|
|
|
|
|
|
|
|
|
if (ruledTimeStamp != null){ |
|
|
|
|
|
|
|
this.ruledSince = LocalDateTime.ofInstant(ruledTimeStamp.toInstant(), ZoneId.systemDefault()); |
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
this.rulingCityUUID = 0; |
|
|
|
|
|
|
|
this.charterType = 0; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.mapY1 = rs.getFloat("mapY1"); |
|
|
|
this.mapY1 = rs.getFloat("mapY1"); |
|
|
|
this.mapX1 = rs.getFloat("mapX1"); |
|
|
|
this.mapX1 = rs.getFloat("mapX1"); |
|
|
|
this.mapY2 = rs.getFloat("mapY2"); |
|
|
|
this.mapY2 = rs.getFloat("mapY2"); |
|
|
|