Update with latest patches from upstream SpigotMC
This commit is contained in:
40
CraftBukkit-Patches/0181-Spigot-Update-20140909a.patch
Normal file
40
CraftBukkit-Patches/0181-Spigot-Update-20140909a.patch
Normal file
@@ -0,0 +1,40 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user