[ci skip] chore: migrate legacy url (#1606)

This commit is contained in:
Timon Seidel
2025-08-13 21:09:52 +02:00
committed by GitHub
parent 49e2988e37
commit a509a878e9
2 changed files with 4 additions and 4 deletions

View File

@@ -119,7 +119,7 @@ import org.checkerframework.checker.nullness.qual.Nullable;
*/ */
public class VelocityServer implements ProxyServer, ForwardingAudience { 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); private static final Logger logger = LogManager.getLogger(VelocityServer.class);
public static final Gson GENERAL_GSON = new GsonBuilder() public static final Gson GENERAL_GSON = new GsonBuilder()
@@ -216,7 +216,8 @@ public class VelocityServer implements ProxyServer, ForwardingAudience {
ProxyVersion version = getVersion(); ProxyVersion version = getVersion();
PluginDescription description = new VelocityPluginDescription( PluginDescription description = new VelocityPluginDescription(
"velocity", version.getName(), version.getVersion(), "The Velocity proxy", "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); VelocityPluginContainer container = new VelocityPluginContainer(description);
container.setInstance(VelocityVirtualPlugin.INSTANCE); container.setInstance(VelocityVirtualPlugin.INSTANCE);
return container; return container;

View File

@@ -176,8 +176,7 @@ public final class VelocityCommand {
.append(Component.text() .append(Component.text()
.content("PaperMC") .content("PaperMC")
.color(NamedTextColor.GREEN) .color(NamedTextColor.GREEN)
.clickEvent( .clickEvent(ClickEvent.openUrl(VelocityServer.VELOCITY_URL))
ClickEvent.openUrl("https://papermc.io/software/velocity"))
.build()) .build())
.append(Component.text(" - ")) .append(Component.text(" - "))
.append(Component.text() .append(Component.text()