geforkt von Mirrors/Paper
Reduce outdated build delay further.
Dieser Commit ist enthalten in:
Ursprung
eb6c1bf31a
Commit
4d99feddd0
@ -173,12 +173,12 @@ public class Main {
|
|||||||
Date buildDate = new SimpleDateFormat("yyyyMMdd-HHmm").parse(Main.class.getPackage().getImplementationVendor());
|
Date buildDate = new SimpleDateFormat("yyyyMMdd-HHmm").parse(Main.class.getPackage().getImplementationVendor());
|
||||||
|
|
||||||
Calendar deadline = Calendar.getInstance();
|
Calendar deadline = Calendar.getInstance();
|
||||||
deadline.add(Calendar.DAY_OF_YEAR, -7);
|
deadline.add(Calendar.DAY_OF_YEAR, -10);
|
||||||
if (buildDate.before(deadline.getTime())) {
|
if (buildDate.before(deadline.getTime())) {
|
||||||
System.err.println("*** Error, this build is outdated ***");
|
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("*** Please download a new build as per instructions from https://www.spigotmc.org/ ***");
|
||||||
System.err.println("*** Server will start in 30 seconds ***");
|
System.err.println("*** Server will start in 15 seconds ***");
|
||||||
Thread.sleep(TimeUnit.SECONDS.toMillis(30));
|
Thread.sleep(TimeUnit.SECONDS.toMillis(15));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren