Skip to content

Commit 482b5d6

Browse files
committed
Modernize URL handler for potentially merged prep-prepped chore
1 parent 0714d5b commit 482b5d6

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

proxy/src/main/java/com/velocitypowered/proxy/VelocityServer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,8 @@ private VelocityPluginContainer createVirtualPlugin() {
270270
ProxyVersion version = getVersion();
271271
PluginDescription description = new VelocityPluginDescription(
272272
"velocity", version.getName(), version.getVersion(), "The Velocity proxy",
273-
VELOCITY_URL, ImmutableList.of(version.getVendor()), Collections.emptyList(), null);
273+
version.getName().equals("Velocity") ? VELOCITY_URL : null,
274+
ImmutableList.of(version.getVendor()), Collections.emptyList(), null);
274275
VelocityPluginContainer container = new VelocityPluginContainer(description);
275276
container.setInstance(VelocityVirtualPlugin.INSTANCE);
276277
return container;

proxy/src/main/java/com/velocitypowered/proxy/command/builtin/VelocityCommand.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,8 +511,7 @@ private Info(final ProxyServer server) {
511511
.append(Component.text()
512512
.content("discord.gg/beer")
513513
.color(NamedTextColor.RED)
514-
.clickEvent(
515-
ClickEvent.openUrl("https://discord.gg/beer"))
514+
.clickEvent(ClickEvent.openUrl(VelocityServer.VELOCITY_URL))
516515
.build())
517516
.append(Component.text(" - "))
518517
.append(Component.text()

0 commit comments

Comments
 (0)