remove broken urls

This commit is contained in:
Merith-TK 2022-08-09 17:39:31 -07:00
parent bc46ad7f01
commit 78237d9c80
3 changed files with 58 additions and 58 deletions

View file

@ -47,13 +47,13 @@ public class Main {
public static String cbuttonlink = "https://launcher.skaia.us"; public static String cbuttonlink = "https://launcher.skaia.us";
public static String sButton = "Support Ticket"; public static String sButton = "Support Ticket";
public static String sLink = "https://skaiacraft.net/support"; public static String sLink = "https://skaiacraft.net/support";
public static String npg = "http://merovingian861628905.skaia.us/news3000.htm"; public static String npg = "http://486.merith.xyz/obsidian/";
public static List<String> dnames = new ArrayList(); public static List<String> dnames = new ArrayList();
public static String[] urls = new String[]{"merovingian861628905.skaia.us", "merovingian861628905.skaiacraft.net", "merovingian861628905.413.io"}; public static String[] urls = new String[]{"486.merith.xyz/obsidian"};
public static String bUrl = "http://merovingian861628905.skaia.us/"; // public static String bUrl = "http://486.merith.xyz/obsidian/";
public static String bUrl2 = "merovingian861628905.skaia.us"; // public static String bUrl2 = "http://486.merith.xyz/obsidian/";
public static String backupBaseURL = "http://merovingian861628905.413.io/"; // public static String backupBaseURL = "http://486.merith.xyz/obsidian/";
public static String backupBaseURL2 = "merovingian861628905.413.io"; // public static String backupBaseURL2 = "486.merith.xyz/obsidian";
private static JFrame frame; private static JFrame frame;
private static File workingDirectory; private static File workingDirectory;
private static Proxy proxy; private static Proxy proxy;
@ -65,60 +65,60 @@ public class Main {
new Launcher(frame, workingDirectory, proxy, passwordAuthentication, argss, 100); new Launcher(frame, workingDirectory, proxy, passwordAuthentication, argss, 100);
} }
public static void checkUpdates() { // public static void checkUpdates() {
try { // try {
URL url; // URL url;
if (isReachable(bUrl2)) { // if (isReachable(bUrl2)) {
System.out.println("Using default URL."); // System.out.println("Using default URL.");
url = new URL(bUrl + "version.php"); // url = new URL(bUrl + "version.php");
} else { // } else {
System.out.println("Could not reach " + bUrl + ". Trying to reach old URL."); // System.out.println("Could not reach " + bUrl + ". Trying to reach old URL.");
if (!isReachable(backupBaseURL2)) { // if (!isReachable(backupBaseURL2)) {
System.out.println("Could not reach backup URL. Exiting update check sequence."); // System.out.println("Could not reach backup URL. Exiting update check sequence.");
isLatest = true; // isLatest = true;
return; // return;
} // }
System.out.println("Using backup URL."); // System.out.println("Using backup URL.");
url = new URL(backupBaseURL + "version.php"); // url = new URL(backupBaseURL + "version.php");
} // }
URLConnection yc = url.openConnection(); // URLConnection yc = url.openConnection();
yc.addRequestProperty("User-Agent", "Mozilla/4.76"); // yc.addRequestProperty("User-Agent", "Mozilla/4.76");
BufferedReader in = new BufferedReader(new InputStreamReader(yc.getInputStream())); // BufferedReader in = new BufferedReader(new InputStreamReader(yc.getInputStream()));
String inputLine; // String inputLine;
for(int i = 0; (inputLine = in.readLine()) != null; ++i) { // for(int i = 0; (inputLine = in.readLine()) != null; ++i) {
if (i == 0) { // if (i == 0) {
newestv = inputLine; // newestv = inputLine;
} else if (i == 1) { // } else if (i == 1) {
wherenewv = inputLine; // wherenewv = inputLine;
} else if (i == 2) { // } else if (i == 2) {
updateurl = inputLine; // updateurl = inputLine;
} else if (i == 3) { // } else if (i == 3) {
cbuttontext = inputLine; // cbuttontext = inputLine;
} else if (i == 4) { // } else if (i == 4) {
cbuttonlink = inputLine; // cbuttonlink = inputLine;
} else if (i == 5) { // } else if (i == 5) {
sButton = inputLine; // sButton = inputLine;
} else if (i == 6) { // } else if (i == 6) {
sLink = inputLine; // sLink = inputLine;
} // }
} // }
in.close(); // in.close();
if (!newestv.equalsIgnoreCase(currentv)) { // if (!newestv.equalsIgnoreCase(currentv)) {
System.out.println(newestv); // System.out.println(newestv);
System.out.println(currentv); // System.out.println(currentv);
isLatest = false; // isLatest = false;
} else { // } else {
isLatest = true; // isLatest = true;
} // }
} catch (IOException var5) { // } catch (IOException var5) {
isLatest = true; // isLatest = true;
} // }
} // }
public static void startMC(String[] args) throws IOException { public static void startMC(String[] args) throws IOException {
String[] var4 = args; String[] var4 = args;
@ -214,7 +214,7 @@ public class Main {
} }
lh.load(lang); lh.load(lang);
checkUpdates(); //checkUpdates();
if (!isLatest) { if (!isLatest) {
Object[] options1 = new Object[]{Language.get("button.ok"), Language.get("button.update"), Language.get("button.cancel")}; Object[] options1 = new Object[]{Language.get("button.ok"), Language.get("button.update"), Language.get("button.cancel")};
JPanel panel = new JPanel(); JPanel panel = new JPanel();

View file

@ -22,7 +22,7 @@ public class LauncherConstants {
public static final String URL_DOWNLOAD_BASE = "https://s3.amazonaws.com/Minecraft.Download/"; public static final String URL_DOWNLOAD_BASE = "https://s3.amazonaws.com/Minecraft.Download/";
public static final String URL_RESOURCE_BASE = "http://resources.download.minecraft.net/"; public static final String URL_RESOURCE_BASE = "http://resources.download.minecraft.net/";
public static final String URL_LIBRARY_BASE = "https://libraries.minecraft.net/"; public static final String URL_LIBRARY_BASE = "https://libraries.minecraft.net/";
public static final String URL_BLOG = "http://launchernewsx.skaia.us"; public static final String URL_BLOG = "http://486.merith.xyz/obsidian/";
public static final String URL_SUPPORT = "https://skaiacraft.net/support"; public static final String URL_SUPPORT = "https://skaiacraft.net/support";
public static final String URL_STATUS_CHECKER = "http://status.mojang.com/check"; public static final String URL_STATUS_CHECKER = "http://status.mojang.com/check";
public static final int UNVERSIONED_BOOTSTRAP_VERSION = 0; public static final int UNVERSIONED_BOOTSTRAP_VERSION = 0;

View file

@ -42,7 +42,7 @@ public class LauncherPanel extends JPanel {
protected JPanel createLauncherInterface() { protected JPanel createLauncherInterface() {
JPanel result = new JPanel(new BorderLayout()); JPanel result = new JPanel(new BorderLayout());
this.tabPanel.getBlog().setPage("http://launchernewsx.skaia.us"); this.tabPanel.getBlog().setPage("http://486.merith.xyz/obsidian");
this.tabPanel.ggg().setPage(Main.npg); this.tabPanel.ggg().setPage(Main.npg);
boolean javaBootstrap = this.getMinecraftLauncher().getBootstrapVersion() < 100; boolean javaBootstrap = this.getMinecraftLauncher().getBootstrapVersion() < 100;
boolean upgradableOS = OperatingSystem.getCurrentPlatform() == OperatingSystem.WINDOWS; boolean upgradableOS = OperatingSystem.getCurrentPlatform() == OperatingSystem.WINDOWS;