SteamWar/BauSystem2.0
Archiviert
12
0
Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
yoyosource 2021-07-05 17:48:18 +02:00
Ursprung 9eef410148
Commit cf750eb95a

Datei anzeigen

@ -35,11 +35,11 @@ public class Updater {
if (file.lastModified() > lastUpdate + 10) { if (file.lastModified() > lastUpdate + 10) {
try { try {
updaterCode.run(); updaterCode.run();
lastUpdate = file.lastModified();
Bukkit.getLogger().log(Level.INFO, "Update complete of " + file.getAbsolutePath()); Bukkit.getLogger().log(Level.INFO, "Update complete of " + file.getAbsolutePath());
} catch (Exception e) { } catch (Exception e) {
Bukkit.getLogger().log(Level.INFO, "Error while loading file " + file.getAbsolutePath() + " for config: " + e.getMessage(), e); Bukkit.getLogger().log(Level.INFO, "Error while loading file " + file.getAbsolutePath() + " for config: " + e.getMessage(), e);
} }
lastUpdate = file.lastModified();
} }
}, 20, 20); }, 20, 20);
} }