Skip to content

Commit

Permalink
[ci skip] Increase outdated build delay to two weeks (#12063)
Browse files Browse the repository at this point in the history
  • Loading branch information
Warriorrrr authored Feb 4, 2025
1 parent 5395ae3 commit 742968e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions paper-server/src/main/java/org/bukkit/craftbukkit/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -263,11 +263,11 @@ public static void main(String[] args) {
Date buildDate = new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss Z").parse(Main.class.getPackage().getImplementationVendor()); // Paper

Calendar deadline = Calendar.getInstance();
deadline.add(Calendar.DAY_OF_YEAR, -2);
deadline.add(Calendar.DAY_OF_YEAR, -14);
if (buildDate.before(deadline.getTime())) {
// Paper start - This is some stupid bullshit
System.err.println("*** Warning, you've not updated in a while! ***");
System.err.println("*** Please download a new build as per instructions from https://papermc.io/downloads/paper ***"); // Paper
System.err.println("*** Please download a new build from https://papermc.io/downloads/paper ***"); // Paper
//System.err.println("*** Server will start in 20 seconds ***");
//Thread.sleep(TimeUnit.SECONDS.toMillis(20));
// Paper end
Expand Down

0 comments on commit 742968e

Please sign in to comment.