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