diff --git a/.classpath b/.classpath
index 5d5961d..2a51121 100644
--- a/.classpath
+++ b/.classpath
@@ -28,7 +28,6 @@
-
diff --git a/pom.xml b/pom.xml
index 6c61ef6..801095c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -30,7 +30,7 @@
eu.m724
wtapi
- 0.3
+ 0.4
diff --git a/src/main/java/eu/m724/realweather/RealWeatherPlugin.java b/src/main/java/eu/m724/realweather/RealWeatherPlugin.java
index 1c7db0c..4f20809 100644
--- a/src/main/java/eu/m724/realweather/RealWeatherPlugin.java
+++ b/src/main/java/eu/m724/realweather/RealWeatherPlugin.java
@@ -50,6 +50,9 @@ public class RealWeatherPlugin extends JavaPlugin {
if (!new File(dataFolder, "config.yml").exists()) {
logger.info("This is the first run of this plugin.");
logger.info("Please shutdown the server and input your API keys and settings");
+
+ getServer().getPluginManager().disablePlugin(this);
+ return;
}
try {
@@ -102,6 +105,7 @@ public class RealWeatherPlugin extends JavaPlugin {
logger.severe(e.getMessage());
getServer().getPluginManager().disablePlugin(this);
+ return;
} catch (ProviderException e) {
logger.severe("Couldn't initialize provider!");
logger.severe("Possible causes:");
@@ -110,6 +114,7 @@ public class RealWeatherPlugin extends JavaPlugin {
e.printStackTrace();
getServer().getPluginManager().disablePlugin(this);
+ return;
}
getCommand("geo").setExecutor(new GeoCommand());
diff --git a/src/main/resources/modules/thunder.yml b/src/main/resources/modules/thunder.yml
index 89c64f0..e38149c 100644
--- a/src/main/resources/modules/thunder.yml
+++ b/src/main/resources/modules/thunder.yml
@@ -4,7 +4,7 @@
enabled: false
-# currently only lightningmaps
+# currently only blitzortung
provider: blitzortung
# how often should we poll for updates and spawn lightning
diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml
index 1820a50..712b441 100644
--- a/src/main/resources/plugin.yml
+++ b/src/main/resources/plugin.yml
@@ -2,7 +2,7 @@ name: RealWeather
version: ${project.version}
author: Minecon724
-website: https://www.spigotmc.org/resources/101599
+website: https://forum.m724.eu/topic/3/realweather-1-0
api-version: 1.20
load: STARTUP