Fix Updater
Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
9eef410148
Commit
cf750eb95a
@ -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);
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren