diff --git a/pom.xml b/pom.xml
index c74f2b8..fbba810 100644
--- a/pom.xml
+++ b/pom.xml
@@ -27,16 +27,19 @@
org.json
json
20220320
+ provided
org.bstats
bstats-bukkit
3.0.0
+ provided
com.maxmind.geoip2
geoip2
3.0.1
+ provided
diff --git a/src/main/java/pl/minecon724/realweather/GetStateTask.java b/src/main/java/pl/minecon724/realweather/GetStateTask.java
index 0b50c21..d419b51 100644
--- a/src/main/java/pl/minecon724/realweather/GetStateTask.java
+++ b/src/main/java/pl/minecon724/realweather/GetStateTask.java
@@ -5,7 +5,6 @@ import java.util.List;
import java.util.logging.Logger;
import com.maxmind.geoip2.WebServiceClient;
-import com.maxmind.geoip2.model.CityResponse;
import com.maxmind.geoip2.record.Location;
import org.bukkit.Bukkit;
diff --git a/src/main/java/pl/minecon724/realweather/RW.java b/src/main/java/pl/minecon724/realweather/RW.java
index d492584..5772444 100644
--- a/src/main/java/pl/minecon724/realweather/RW.java
+++ b/src/main/java/pl/minecon724/realweather/RW.java
@@ -1,6 +1,5 @@
package pl.minecon724.realweather;
-import java.io.File;
import java.util.List;
import java.util.logging.Level;
@@ -31,6 +30,7 @@ public class RW extends JavaPlugin {
if (settingsSec.getBoolean("debug")) {
this.getLogger().setLevel(Level.ALL);
+ this.getLogger().fine("Debug info will appear in the console");
}
String source = weatherSec.getString("source");
@@ -58,10 +58,10 @@ public class RW extends JavaPlugin {
provider.init();
if (source.equals("player")) {
- this.getLogger().info("This product includes GeoLite2 data created by MaxMind, available from https://maxmind.com");
+ this.getLogger().info("Initializing GeoLite2 by MaxMind because we need it for retrieving players locations.");
int accId = player.getInt("geolite2_accountId");
String license = player.getString("geolite2_apiKey");
- client = new WebServiceClient.Builder(accId, license).build();
+ client = new WebServiceClient.Builder(accId, license).host("geolite.info").build();
}
new GetStateTask(
@@ -71,7 +71,8 @@ public class RW extends JavaPlugin {
settingsSec.getLong("timeBetweenRecheck")
);
- new Metrics(this, 15020);
+ // new Metrics(this, 15020);
+ // bstat disabled cuz error :(
long end = System.currentTimeMillis();
this.getLogger().info( String.format( this.getName() + " enabled! (%s ms)", Long.toString( end-start ) ) );
diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml
index 53aaaa9..1575900 100644
--- a/src/main/resources/config.yml
+++ b/src/main/resources/config.yml
@@ -5,8 +5,8 @@ weather:
- world
- second_world
- third_world
- # Point for a static location
- # Weather by player's real location soon
+ # "point" for a static location
+ # "player" for using the player's location
source: point
point:
latitude: 41.84201