Compare commits
2 commits
39148ee7f1
...
ba0f8697fd
Author | SHA1 | Date | |
---|---|---|---|
ba0f8697fd | |||
77a1c8549b |
2 changed files with 6 additions and 4 deletions
4
pom.xml
4
pom.xml
|
@ -2,7 +2,7 @@
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>eu.m724</groupId>
|
<groupId>eu.m724</groupId>
|
||||||
<artifactId>realweather</artifactId>
|
<artifactId>realweather</artifactId>
|
||||||
<version>0.9.5-SNAPSHOT</version>
|
<version>0.9.5</version>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<maven.compiler.source>21</maven.compiler.source>
|
<maven.compiler.source>21</maven.compiler.source>
|
||||||
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
<scm>
|
<scm>
|
||||||
<developerConnection>scm:git:git@git.724.rocks:Minecon724/realweather.git</developerConnection>
|
<developerConnection>scm:git:git@git.724.rocks:Minecon724/realweather.git</developerConnection>
|
||||||
<tag>HEAD</tag>
|
<tag>realweather-0.9.5</tag>
|
||||||
</scm>
|
</scm>
|
||||||
|
|
||||||
<distributionManagement>
|
<distributionManagement>
|
||||||
|
|
|
@ -35,18 +35,20 @@ public class UpdateNotifier extends BukkitRunnable implements Listener { // TODO
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
DebugLogger.info("update task running", 2);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
latestVersion = updater.getLatestVersion().join();
|
latestVersion = updater.getLatestVersion().join();
|
||||||
} catch (CompletionException e) {
|
} catch (CompletionException e) {
|
||||||
Throwable ex = e.getCause();
|
Throwable ex = e.getCause();
|
||||||
|
|
||||||
if (ex instanceof IOException)
|
if (ex instanceof IOException)
|
||||||
DebugLogger.info("error trying to contact update server: %d", 0, ex.getMessage());
|
DebugLogger.info("error trying to contact update server: %s", 0, ex.getMessage());
|
||||||
else e.printStackTrace();
|
else e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (latestVersion == null) return;
|
if (latestVersion == null) return;
|
||||||
|
DebugLogger.info("RealWeather is outdated. /rwadmin update", 0);
|
||||||
|
|
||||||
for (Player player : plugin.getServer().getOnlinePlayers()) {
|
for (Player player : plugin.getServer().getOnlinePlayers()) {
|
||||||
if (player.hasPermission("realweather.update.notify")) {
|
if (player.hasPermission("realweather.update.notify")) {
|
||||||
|
|
Loading…
Reference in a new issue