diff --git a/pom.xml b/pom.xml index 647e8fb1..ee8f5fb1 100644 --- a/pom.xml +++ b/pom.xml @@ -1129,7 +1129,7 @@ com.h2database h2 - 2.2.220 + 2.1.214 test diff --git a/src/main/java/fr/xephi/authme/service/GeoIpService.java b/src/main/java/fr/xephi/authme/service/GeoIpService.java index fc6a36b0..a18f9758 100644 --- a/src/main/java/fr/xephi/authme/service/GeoIpService.java +++ b/src/main/java/fr/xephi/authme/service/GeoIpService.java @@ -76,12 +76,6 @@ public class GeoIpService { * @return True if the data is available, false otherwise. */ private synchronized boolean isDataAvailable() { - - // If this feature is disabled, just stop - if (!settings.getProperty(ProtectionSettings.ENABLE_GEOIP)) { - return false; - } - if (downloading) { // we are currently downloading the database return false; diff --git a/src/main/java/fr/xephi/authme/settings/properties/ProtectionSettings.java b/src/main/java/fr/xephi/authme/settings/properties/ProtectionSettings.java index b41202a7..84c6fabf 100644 --- a/src/main/java/fr/xephi/authme/settings/properties/ProtectionSettings.java +++ b/src/main/java/fr/xephi/authme/settings/properties/ProtectionSettings.java @@ -20,21 +20,6 @@ public final class ProtectionSettings implements SettingsHolder { public static final Property ENABLE_PROTECTION_REGISTERED = newProperty("Protection.enableProtectionRegistered", true); - @Comment("Enable GeoIp database") - public static final Property ENABLE_GEOIP = - newProperty("Protection.geoIpDatabase.enabled", true); - - @Comment({"The MaxMind clientId used to download the GeoIp database,", - "get one at https://www.maxmind.com/en/accounts/current/license-key", - "The EssentialsX project has a very useful tutorial on how to generate", - "the license key: https://github.com/EssentialsX/Wiki/blob/master/GeoIP.md"}) - public static final Property MAXMIND_API_CLIENT_ID = - newProperty("Protection.geoIpDatabase.clientId", ""); - - @Comment("The MaxMind licenseKey used to download the GeoIp database.") - public static final Property MAXMIND_API_LICENSE_KEY = - newProperty("Protection.geoIpDatabase.licenseKey", ""); - @Comment({ "Countries allowed to join the server and register. For country codes, see", "https://dev.maxmind.com/geoip/legacy/codes/iso3166/",