we should do this

This commit is contained in:
Minecon724 2024-06-09 16:03:35 +02:00
parent 6d39abe56c
commit f7d8dc427f
Signed by: Minecon724
GPG key ID: 3CCC4D267742C8E8
5 changed files with 8 additions and 4 deletions

View file

@ -28,7 +28,6 @@
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17">
<attributes>
<attribute name="module" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>

View file

@ -30,7 +30,7 @@
<dependency>
<groupId>eu.m724</groupId>
<artifactId>wtapi</artifactId>
<version>0.3</version>
<version>0.4</version>
</dependency>
</dependencies>

View file

@ -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());

View file

@ -4,7 +4,7 @@
enabled: false
# currently only lightningmaps
# currently only blitzortung
provider: blitzortung
# how often should we poll for updates and spawn lightning

View file

@ -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