Tweak outdated timers a little.
This commit is contained in:
parent
45bf7a9ab9
commit
a03c21cc09
@ -33,14 +33,14 @@ 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, -3 );
|
deadline.add( Calendar.WEEK_OF_YEAR, -4 );
|
||||||
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 ***" );
|
||||||
System.err.println( "*** Please download a new build from http://ci.md-5.net/job/BungeeCord ***" );
|
System.err.println( "*** Please download a new build from http://ci.md-5.net/job/BungeeCord ***" );
|
||||||
System.err.println( "*** You will get NO support regarding this build ***" );
|
System.err.println( "*** You will get NO support regarding this build ***" );
|
||||||
System.err.println( "*** Server will start in 30 seconds ***" );
|
System.err.println( "*** Server will start in 10 seconds ***" );
|
||||||
Thread.sleep( TimeUnit.SECONDS.toMillis( 30 ) );
|
Thread.sleep( TimeUnit.SECONDS.toMillis( 10 ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user