Skip to content

Commit 45146b9

Browse files
committed
ProxyVersion
1 parent 3b9f323 commit 45146b9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: proxy/src/main/java/com/velocitypowered/proxy/VelocityServer.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,9 @@ public VelocityConfiguration getConfiguration() {
183183

184184
@Override
185185
public ProxyVersion getVersion() {
186+
// TODO: this can likely also be changed to ServerBuildInfo
186187
Package pkg = VelocityServer.class.getPackage();
188+
final ServerBuildInfo buildInfo = ServerBuildInfo.buildInfo();
187189
String implName;
188190
String implVersion;
189191
String implVendor;
@@ -197,7 +199,7 @@ public ProxyVersion getVersion() {
197199
implVendor = "Velocity Contributors";
198200
}
199201

200-
return new ProxyVersion(implName, implVendor, implVersion);
202+
return new ProxyVersion(buildInfo.brandName(), implVendor, implVersion);
201203
}
202204

203205
@Override

0 commit comments

Comments
 (0)