From 0f4357190034696aa6ebe4b6a922df2deaf84257 Mon Sep 17 00:00:00 2001 From: rtm516 Date: Mon, 19 Feb 2024 19:13:50 +0000 Subject: [PATCH] Update download links for new downloads page --- .../java/org/geysermc/discordbot/commands/DownloadCommand.java | 2 +- .../discordbot/dump_issues/FloodgateDumpIssueCheck.java | 2 +- .../java/org/geysermc/discordbot/listeners/DumpHandler.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/geysermc/discordbot/commands/DownloadCommand.java b/src/main/java/org/geysermc/discordbot/commands/DownloadCommand.java index 5a3395e1..4ad7dade 100644 --- a/src/main/java/org/geysermc/discordbot/commands/DownloadCommand.java +++ b/src/main/java/org/geysermc/discordbot/commands/DownloadCommand.java @@ -55,7 +55,7 @@ public DownloadCommand() { this.defaultDownloadOption = new GeyserDownloadOption("Geyser", "https://geysermc.org/download"); this.optionsToRepository = ImmutableMap.builder() .put("geyser", this.defaultDownloadOption) - .put("floodgate", new GeyserDownloadOption("Floodgate", this.defaultDownloadOption.downloadUrl)) + .put("floodgate", new GeyserDownloadOption("Floodgate", "https://geysermc.org/download#floodgate")) .put("geyseroptionalpack", new GeyserDownloadOption("GeyserOptionalPack", "https://download.geysermc.org/v2/projects/geyseroptionalpack/versions/latest/builds/latest/downloads/geyseroptionalpack")) .put("floodgate-fabric", new FabricDownloadOption("Floodgate-Fabric", "https://modrinth.com/mod/floodgate")) .put("paper", new DownloadOption("Paper", "https://papermc.io/downloads", "https://github.com/PaperMC.png")) diff --git a/src/main/java/org/geysermc/discordbot/dump_issues/FloodgateDumpIssueCheck.java b/src/main/java/org/geysermc/discordbot/dump_issues/FloodgateDumpIssueCheck.java index 73dfa766..423b31c6 100644 --- a/src/main/java/org/geysermc/discordbot/dump_issues/FloodgateDumpIssueCheck.java +++ b/src/main/java/org/geysermc/discordbot/dump_issues/FloodgateDumpIssueCheck.java @@ -74,7 +74,7 @@ public List checkIssues(JSONObject dump) { // Add any problem messages relates to floodgate if (needsFloodgate) { - problems.add("- `auth-type` is set to `floodgate`, but you don't have Floodgate installed! Download it [here](https://geysermc.org/download#" + bootstrapInfo.getString("platform").toLowerCase() + ")."); + problems.add("- `auth-type` is set to `floodgate`, but you don't have Floodgate installed! Download it [here](https://geysermc.org/download#floodgate)."); } else if (needsFloodgateAuthType && !configRemote.getString("auth-type").equalsIgnoreCase("floodgate")) { problems.add("- You have Floodgate installed, but `auth-type` is set to `" + configRemote.getString("auth-type") + "`! Set it to `floodgate` if you want to use Floodgate."); } diff --git a/src/main/java/org/geysermc/discordbot/listeners/DumpHandler.java b/src/main/java/org/geysermc/discordbot/listeners/DumpHandler.java index 5874a18d..9cbcada4 100644 --- a/src/main/java/org/geysermc/discordbot/listeners/DumpHandler.java +++ b/src/main/java/org/geysermc/discordbot/listeners/DumpHandler.java @@ -217,7 +217,7 @@ private void parseDump(@NotNull MessageReceivedEvent event, String cleanURL, Str // Set the latest info based on the returned comparison if (compare.getBehindBy() != 0 || compare.getAheadBy() != 0) { gitData.append("**Latest:** No\n"); - problems.add("- You aren't on the latest Geyser version! Please [download](https://geysermc.org/download#" + platform.toLowerCase() + ") the latest version."); + problems.add("- You aren't on the latest Geyser version! Please [download](https://geysermc.org/download) the latest version."); } else { gitData.append("**Latest:** Yes\n"); }