Use the newly added API method to retrieve Velocity implementation name / version

This commit is contained in:
Luck 2018-11-06 13:18:58 +00:00
parent f63992e209
commit e5be06e07b
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -185,12 +185,12 @@ public class LPVelocityBootstrap implements LuckPermsBootstrap {
@Override @Override
public String getServerBrand() { public String getServerBrand() {
return "Velocity"; return this.proxy.getVersion().getName();
} }
@Override @Override
public String getServerVersion() { public String getServerVersion() {
return ProxyServer.class.getPackage().getImplementationVersion(); return this.proxy.getVersion().getVersion();
} }
@Override @Override