Compare commits

..

2 commits

Author SHA1 Message Date
ba0f8697fd
[maven-release-plugin] prepare release realweather-0.9.5 2024-06-26 15:16:50 +02:00
77a1c8549b
good enough 2024-06-26 15:16:21 +02:00
2 changed files with 6 additions and 4 deletions

View file

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

View file

@ -35,6 +35,7 @@ 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();
@ -42,11 +43,12 @@ public class UpdateNotifier extends BukkitRunnable implements Listener { // TODO
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")) {