Commits

md_5 authored 665900b9146
Increase outdated build delay
No tags

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

Modified
187 187 }
188 188
189 189 if (options.has("noconsole")) {
190 190 useConsole = false;
191 191 }
192 192
193 193 if (Main.class.getPackage().getImplementationVendor() != null && System.getProperty("IReallyKnowWhatIAmDoingISwear") == null) {
194 194 Date buildDate = new Date(Integer.parseInt(Main.class.getPackage().getImplementationVendor()) * 1000L);
195 195
196 196 Calendar deadline = Calendar.getInstance();
197 - deadline.add(Calendar.DAY_OF_YEAR, -2);
197 + deadline.add(Calendar.DAY_OF_YEAR, -7);
198 198 if (buildDate.before(deadline.getTime())) {
199 199 System.err.println("*** Error, this build is outdated ***");
200 200 System.err.println("*** Please download a new build as per instructions from https://www.spigotmc.org/go/outdated-spigot ***");
201 201 System.err.println("*** Server will start in 20 seconds ***");
202 202 Thread.sleep(TimeUnit.SECONDS.toMillis(20));
203 203 }
204 204 }
205 205
206 206 System.out.println("Loading libraries, please wait...");
207 207 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