3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-16 04:50:05 +01:00

Reduce outdated build delay further.

Dieser Commit ist enthalten in:
md_5 2016-12-01 10:19:09 +11:00
Ursprung eb6c1bf31a
Commit 4d99feddd0

Datei anzeigen

@ -173,12 +173,12 @@ public class Main {
Date buildDate = new SimpleDateFormat("yyyyMMdd-HHmm").parse(Main.class.getPackage().getImplementationVendor());
Calendar deadline = Calendar.getInstance();
deadline.add(Calendar.DAY_OF_YEAR, -7);
deadline.add(Calendar.DAY_OF_YEAR, -10);
if (buildDate.before(deadline.getTime())) {
System.err.println("*** Error, this build is outdated ***");
System.err.println("*** Please download a new build as per instructions from https://www.spigotmc.org/ ***");
System.err.println("*** Server will start in 30 seconds ***");
Thread.sleep(TimeUnit.SECONDS.toMillis(30));
System.err.println("*** Server will start in 15 seconds ***");
Thread.sleep(TimeUnit.SECONDS.toMillis(15));
}
}