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>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17"> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17">
<attributes> <attributes>
<attribute name="module" value="true"/>
<attribute name="maven.pomderived" value="true"/> <attribute name="maven.pomderived" value="true"/>
</attributes> </attributes>
</classpathentry> </classpathentry>

View file

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

View file

@ -50,6 +50,9 @@ public class RealWeatherPlugin extends JavaPlugin {
if (!new File(dataFolder, "config.yml").exists()) { if (!new File(dataFolder, "config.yml").exists()) {
logger.info("This is the first run of this plugin."); logger.info("This is the first run of this plugin.");
logger.info("Please shutdown the server and input your API keys and settings"); logger.info("Please shutdown the server and input your API keys and settings");
getServer().getPluginManager().disablePlugin(this);
return;
} }
try { try {
@ -102,6 +105,7 @@ public class RealWeatherPlugin extends JavaPlugin {
logger.severe(e.getMessage()); logger.severe(e.getMessage());
getServer().getPluginManager().disablePlugin(this); getServer().getPluginManager().disablePlugin(this);
return;
} catch (ProviderException e) { } catch (ProviderException e) {
logger.severe("Couldn't initialize provider!"); logger.severe("Couldn't initialize provider!");
logger.severe("Possible causes:"); logger.severe("Possible causes:");
@ -110,6 +114,7 @@ public class RealWeatherPlugin extends JavaPlugin {
e.printStackTrace(); e.printStackTrace();
getServer().getPluginManager().disablePlugin(this); getServer().getPluginManager().disablePlugin(this);
return;
} }
getCommand("geo").setExecutor(new GeoCommand()); getCommand("geo").setExecutor(new GeoCommand());

View file

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

View file

@ -2,7 +2,7 @@ name: RealWeather
version: ${project.version} version: ${project.version}
author: Minecon724 author: Minecon724
website: https://www.spigotmc.org/resources/101599 website: https://forum.m724.eu/topic/3/realweather-1-0
api-version: 1.20 api-version: 1.20
load: STARTUP load: STARTUP