mirror of
https://github.com/PaperMC/Waterfall.git
synced 2024-12-03 15:43:37 +01:00
Disable outdated startup sleep
This commit is contained in:
parent
ff371989bf
commit
c64ebfcb0f
@ -1,26 +1,30 @@
|
||||
From 114cbbfd6c824adc67afa2150ff5e943a2049ac2 Mon Sep 17 00:00:00 2001
|
||||
From a9437edffbbe4bbee2b0521cf894a413c845a3cc Mon Sep 17 00:00:00 2001
|
||||
From: Jamie Mansfield <dev@jamierocks.uk>
|
||||
Date: Sat, 10 Jun 2017 20:56:02 +0100
|
||||
Subject: [PATCH] Improve outdated build message
|
||||
|
||||
|
||||
diff --git a/proxy/src/main/java/net/md_5/bungee/BungeeCordLauncher.java b/proxy/src/main/java/net/md_5/bungee/BungeeCordLauncher.java
|
||||
index 39fc55f9..c2512dd5 100644
|
||||
index 39fc55f9..c81a4430 100644
|
||||
--- a/proxy/src/main/java/net/md_5/bungee/BungeeCordLauncher.java
|
||||
+++ b/proxy/src/main/java/net/md_5/bungee/BungeeCordLauncher.java
|
||||
@@ -53,9 +53,9 @@ public class BungeeCordLauncher
|
||||
@@ -53,11 +53,11 @@ public class BungeeCordLauncher
|
||||
deadline.add( Calendar.WEEK_OF_YEAR, -8 );
|
||||
if ( buildDate.before( deadline.getTime() ) )
|
||||
{
|
||||
- System.err.println( "*** Warning, this build is outdated ***" );
|
||||
- System.err.println( "*** Please download a new build from https://ci.destroystokyo.com/job/Waterfall/ ***" );
|
||||
- System.err.println( "*** You will get NO support regarding this build ***" );
|
||||
- System.err.println( "*** Server will start in 10 seconds ***" );
|
||||
- Thread.sleep( TimeUnit.SECONDS.toMillis( 10 ) );
|
||||
+ System.err.println( "*** Hey! This build is potentially outdated :( ***" );
|
||||
+ System.err.println( "*** Please check for a new build from https://papermc.io/downloads ***" );
|
||||
+ System.err.println( "*** Should this build be outdated, you will get NO support for it. ***" );
|
||||
System.err.println( "*** Server will start in 10 seconds ***" );
|
||||
Thread.sleep( TimeUnit.SECONDS.toMillis( 10 ) );
|
||||
+ //System.err.println( "*** Server will start in 10 seconds ***" );
|
||||
+ //Thread.sleep( TimeUnit.SECONDS.toMillis( 10 ) );
|
||||
}
|
||||
}
|
||||
--
|
||||
2.30.1 (Apple Git-130)
|
||||
|
||||
--
|
||||
2.38.1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user