From a509a878e9006d2fe0cae42b57bff7d109e6910c Mon Sep 17 00:00:00 2001 From: Timon Seidel Date: Wed, 13 Aug 2025 21:09:52 +0200 Subject: [PATCH] [ci skip] chore: migrate legacy url (#1606) --- .../main/java/com/velocitypowered/proxy/VelocityServer.java | 5 +++-- .../proxy/command/builtin/VelocityCommand.java | 3 +-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/VelocityServer.java b/proxy/src/main/java/com/velocitypowered/proxy/VelocityServer.java index c3e8d472..7d55ae23 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/VelocityServer.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/VelocityServer.java @@ -119,7 +119,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; */ public class VelocityServer implements ProxyServer, ForwardingAudience { - public static final String VELOCITY_URL = "https://velocitypowered.com"; + public static final String VELOCITY_URL = "https://papermc.io/software/velocity"; private static final Logger logger = LogManager.getLogger(VelocityServer.class); public static final Gson GENERAL_GSON = new GsonBuilder() @@ -216,7 +216,8 @@ public class VelocityServer implements ProxyServer, ForwardingAudience { ProxyVersion version = getVersion(); PluginDescription description = new VelocityPluginDescription( "velocity", version.getName(), version.getVersion(), "The Velocity proxy", - VELOCITY_URL, ImmutableList.of(version.getVendor()), Collections.emptyList(), null); + version.getName().equals("Velocity") ? VELOCITY_URL : null, + ImmutableList.of(version.getVendor()), Collections.emptyList(), null); VelocityPluginContainer container = new VelocityPluginContainer(description); container.setInstance(VelocityVirtualPlugin.INSTANCE); return container; diff --git a/proxy/src/main/java/com/velocitypowered/proxy/command/builtin/VelocityCommand.java b/proxy/src/main/java/com/velocitypowered/proxy/command/builtin/VelocityCommand.java index 1e393476..6b233b87 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/command/builtin/VelocityCommand.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/command/builtin/VelocityCommand.java @@ -176,8 +176,7 @@ public final class VelocityCommand { .append(Component.text() .content("PaperMC") .color(NamedTextColor.GREEN) - .clickEvent( - ClickEvent.openUrl("https://papermc.io/software/velocity")) + .clickEvent(ClickEvent.openUrl(VelocityServer.VELOCITY_URL)) .build()) .append(Component.text(" - ")) .append(Component.text()