mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
40 lines
2 KiB
Diff
40 lines
2 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: md_5 <git@md-5.net>
|
|
Date: Thu, 11 Sep 2014 01:07:52 -0700
|
|
Subject: [PATCH] Spigot Update - 20140909a
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/Main.java b/src/main/java/org/bukkit/craftbukkit/Main.java
|
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
|
--- a/src/main/java/org/bukkit/craftbukkit/Main.java
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/Main.java
|
|
@@ -0,0 +0,0 @@ public class Main {
|
|
+ "Please report any such issues to http://www.spigotmc.org/, stating your client, server, and if applicable BungeeCord versions.\n"
|
|
+ "*** Any bug reports not running the very latest versions of these softwares will be ignored ***\n\n" );
|
|
|
|
- Enumeration<URL> resources = Main.class.getClassLoader().getResources( "META-INF/MANIFEST.MF" );
|
|
- while ( resources.hasMoreElements() )
|
|
- {
|
|
- Manifest manifest = new Manifest( resources.nextElement().openStream() );
|
|
- String ts = manifest.getMainAttributes().getValue( "Timestamp" );
|
|
- if ( ts != null )
|
|
- {
|
|
- Date buildDate = new SimpleDateFormat( "yyyyMMdd-hhmm" ).parse( ts );
|
|
-
|
|
- Calendar cal = Calendar.getInstance();
|
|
- cal.add( Calendar.DAY_OF_YEAR, -2 );
|
|
- if ( buildDate.before(cal.getTime() ) )
|
|
- {
|
|
- System.err.println( "WARNING: This build is more than 2 days old and there are likely updates available!" );
|
|
- System.err.println( "You will get no support with this build unless you update from http://ci.md-5.net/job/Spigot/" );
|
|
- System.err.println( "The server will start in 10 seconds!" );
|
|
- Thread.sleep( TimeUnit.SECONDS.toMillis( 10 ) );
|
|
- }
|
|
- }
|
|
- }
|
|
// Spigot End
|
|
// Todo: Installation script
|
|
OptionParser parser = new OptionParser() {
|
|
--
|
|
1.9.4.msysgit.0
|
|
|