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