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>
|
||||||
<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>
|
||||||
|
|
2
pom.xml
2
pom.xml
|
@ -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>
|
||||||
|
|
||||||
|
|
|
@ -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());
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue