From f1f6edd8483049377eadb7377c136a84fabbf576 Mon Sep 17 00:00:00 2001
From: Dreeam <61569423+Dreeam-qwq@users.noreply.github.com>
Date: Tue, 5 Dec 2023 09:23:35 -0500
Subject: [PATCH] Some revert, remove useless code from upstream
---
pom.xml | 2 +-
.../fr/xephi/authme/service/GeoIpService.java | 6 ------
.../settings/properties/ProtectionSettings.java | 15 ---------------
3 files changed, 1 insertion(+), 22 deletions(-)
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/",