Skip to content

Commit baaa6e5

Browse files
committed
Fix module downloading.
1 parent 151733d commit baaa6e5

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

Waterfall-Proxy-Patches/0002-Rename-waterfall-references-to-hyperfall.patch

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 5d9c26d400c99e1cb4ba454362787d4627a323bf Mon Sep 17 00:00:00 2001
1+
From 2cb8c8b774965b443c4c82431835002162c27849 Mon Sep 17 00:00:00 2001
22
From: Justsnoopy30 <everettallen30@gmail.com>
33
Date: Sat, 15 Feb 2020 22:59:48 -0600
44
Subject: [PATCH] Rename-waterfall-references-to-hyperfall
@@ -113,6 +113,19 @@ index 65121ba2..2d75bf92 100644
113113
boolean restricted = get( "restricted", false, val );
114114
SocketAddress address = Util.getAddr( addr );
115115
ServerInfo info = ProxyServer.getInstance().constructServerInfo( name, address, motd, restricted );
116+
diff --git a/proxy/src/main/java/net/md_5/bungee/module/JenkinsModuleSource.java b/proxy/src/main/java/net/md_5/bungee/module/JenkinsModuleSource.java
117+
index 9b20d0df..af6fdc5f 100644
118+
--- a/proxy/src/main/java/net/md_5/bungee/module/JenkinsModuleSource.java
119+
+++ b/proxy/src/main/java/net/md_5/bungee/module/JenkinsModuleSource.java
120+
@@ -18,7 +18,7 @@ public class JenkinsModuleSource implements ModuleSource
121+
System.out.println( "Attempting to Jenkins download module " + module.getName() + " v" + version.getBuild() );
122+
try
123+
{
124+
- URL website = new URL( "https://papermc.io/ci/job/Waterfall/" + version.getBuild() + "/artifact/Waterfall-Proxy/module/" + module.getName().replace( '_', '-' ) + "/target/" + module.getName() + ".jar" );
125+
+ URL website = new URL( "https://papermc.io/ci/job/Waterfall/lastSuccessfulBuild/artifact/Waterfall-Proxy/module/" + module.getName().replace( '_', '-' ) + "/target/" + module.getName() + ".jar" );
126+
URLConnection con = website.openConnection();
127+
// 15 second timeout at various stages
128+
con.setConnectTimeout( 15000 );
116129
--
117130
2.17.1
118131

0 commit comments

Comments
 (0)