Make version command use the direct link
It was using a redirect, but apparently a small portion of systems, networks, some mess, are having problems with that redirect. Just use the direct link and skip the hassle.
This commit is contained in:
parent
344a125dc1
commit
d4c3e49a06
2 changed files with 8 additions and 8 deletions
|
@ -1,11 +1,11 @@
|
|||
From d9b95019ce4ca79338a34067bd0b6ea22ddd245d Mon Sep 17 00:00:00 2001
|
||||
From f62031b4b496b560ba5e5229eba8202def54c924 Mon Sep 17 00:00:00 2001
|
||||
From: Zach Brown <zach.brown@destroystokyo.com>
|
||||
Date: Mon, 29 Feb 2016 17:58:01 -0600
|
||||
Subject: [PATCH] Check Paper versions
|
||||
|
||||
|
||||
diff --git a/src/main/java/org/bukkit/command/defaults/VersionCommand.java b/src/main/java/org/bukkit/command/defaults/VersionCommand.java
|
||||
index 760d58eb..aae605e9 100644
|
||||
index 760d58eb..044361af 100644
|
||||
--- a/src/main/java/org/bukkit/command/defaults/VersionCommand.java
|
||||
+++ b/src/main/java/org/bukkit/command/defaults/VersionCommand.java
|
||||
@@ -28,6 +28,11 @@ import org.json.simple.JSONObject;
|
||||
|
@ -98,7 +98,7 @@ index 760d58eb..aae605e9 100644
|
|||
+ private static int getFromJenkins(int currentVer) {
|
||||
+ try {
|
||||
+ BufferedReader reader = Resources.asCharSource(
|
||||
+ new URL("https://ci.destroystokyo.com/job/PaperSpigot/lastSuccessfulBuild/buildNumber"), // Paper
|
||||
+ new URL("https://ci.destroystokyo.com/job/Paper/lastSuccessfulBuild/buildNumber"), // Paper
|
||||
+ Charsets.UTF_8
|
||||
+ ).openBufferedStream();
|
||||
+ try {
|
||||
|
@ -148,5 +148,5 @@ index 760d58eb..aae605e9 100644
|
|||
+ // Paper end
|
||||
}
|
||||
--
|
||||
2.11.1.windows.1
|
||||
2.17.0.windows.1
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue