Commits

md_5 authored 85b89c3dddc
Increase outdated build delay
No tags

src/main/java/org/bukkit/craftbukkit/Main.java

Modified
197 197 }
198 198
199 199 if (options.has("noconsole")) {
200 200 useConsole = false;
201 201 }
202 202
203 203 if (Main.class.getPackage().getImplementationVendor() != null && System.getProperty("IReallyKnowWhatIAmDoingISwear") == null) {
204 204 Date buildDate = new Date(Integer.parseInt(Main.class.getPackage().getImplementationVendor()) * 1000L);
205 205
206 206 Calendar deadline = Calendar.getInstance();
207 - deadline.add(Calendar.DAY_OF_YEAR, -3);
207 + deadline.add(Calendar.DAY_OF_YEAR, -7);
208 208 if (buildDate.before(deadline.getTime())) {
209 209 System.err.println("*** Error, this build is outdated ***");
210 210 System.err.println("*** Please download a new build as per instructions from https://www.spigotmc.org/go/outdated-spigot ***");
211 211 System.err.println("*** Server will start in 20 seconds ***");
212 212 Thread.sleep(TimeUnit.SECONDS.toMillis(20));
213 213 }
214 214 }
215 215
216 216 System.out.println("Loading libraries, please wait...");
217 217 net.minecraft.server.Main.main(options);

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut