Increase outdated build delay to 8 weeks

This commit is contained in:
md_5 2019-08-10 10:51:26 +10:00
parent 5c6bc183fd
commit 34febec65f

View File

@ -45,7 +45,7 @@ public class BungeeCordLauncher
Date buildDate = new SimpleDateFormat( "yyyyMMdd" ).parse( BungeeCord.class.getPackage().getSpecificationVersion() ); Date buildDate = new SimpleDateFormat( "yyyyMMdd" ).parse( BungeeCord.class.getPackage().getSpecificationVersion() );
Calendar deadline = Calendar.getInstance(); Calendar deadline = Calendar.getInstance();
deadline.add( Calendar.WEEK_OF_YEAR, -4 ); deadline.add( Calendar.WEEK_OF_YEAR, -8 );
if ( buildDate.before( deadline.getTime() ) ) if ( buildDate.before( deadline.getTime() ) )
{ {
System.err.println( "*** Warning, this build is outdated ***" ); System.err.println( "*** Warning, this build is outdated ***" );