we should do this
This commit is contained in:
parent
6d39abe56c
commit
f7d8dc427f
5 changed files with 8 additions and 4 deletions
|
@ -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>
|
||||
|
|
2
pom.xml
2
pom.xml
|
@ -30,7 +30,7 @@
|
|||
<dependency>
|
||||
<groupId>eu.m724</groupId>
|
||||
<artifactId>wtapi</artifactId>
|
||||
<version>0.3</version>
|
||||
<version>0.4</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
enabled: false
|
||||
|
||||
# currently only lightningmaps
|
||||
# currently only blitzortung
|
||||
provider: blitzortung
|
||||
|
||||
# how often should we poll for updates and spawn lightning
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue