Commits
md_5 authored 47124f63915
180 180 | } |
181 181 | |
182 182 | if (options.has("noconsole")) { |
183 183 | useConsole = false; |
184 184 | } |
185 185 | |
186 186 | if (Main.class.getPackage().getImplementationVendor() != null && System.getProperty("IReallyKnowWhatIAmDoingISwear") == null) { |
187 187 | Date buildDate = new Date(Integer.parseInt(Main.class.getPackage().getImplementationVendor()) * 1000L); |
188 188 | |
189 189 | Calendar deadline = Calendar.getInstance(); |
190 - | deadline.add(Calendar.DAY_OF_YEAR, -3); |
190 + | deadline.add(Calendar.DAY_OF_YEAR, -7); |
191 191 | if (buildDate.before(deadline.getTime())) { |
192 192 | System.err.println("*** Error, this build is outdated ***"); |
193 193 | System.err.println("*** Please download a new build as per instructions from https://www.spigotmc.org/go/outdated-spigot ***"); |
194 194 | System.err.println("*** Server will start in 20 seconds ***"); |
195 195 | Thread.sleep(TimeUnit.SECONDS.toMillis(20)); |
196 196 | } |
197 197 | } |
198 198 | |
199 199 | System.out.println("Loading libraries, please wait..."); |
200 200 | net.minecraft.server.Main.main(options); |