File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
bootstrap/velocity/src/main/java/org/geysermc/geyser/platform/velocity Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 3131import com .velocitypowered .api .proxy .InboundConnection ;
3232import com .velocitypowered .api .proxy .ProxyServer ;
3333import com .velocitypowered .api .proxy .server .ServerPing ;
34+ import com .velocitypowered .api .proxy .server .ServerPing .Version ;
3435import lombok .AllArgsConstructor ;
3536import net .kyori .adventure .text .serializer .legacy .LegacyComponentSerializer ;
37+ import org .geysermc .geyser .network .GameProtocol ;
3638import org .geysermc .geyser .ping .GeyserPingInfo ;
3739import org .geysermc .geyser .ping .IGeyserPingPassthrough ;
3840
@@ -51,7 +53,9 @@ public GeyserPingInfo getPingInformation(InetSocketAddress inetSocketAddress) {
5153 try {
5254 event = server .getEventManager ().fire (new ProxyPingEvent (new GeyserInboundConnection (inetSocketAddress ), ServerPing .builder ()
5355 .description (server .getConfiguration ().getMotd ()).onlinePlayers (server .getPlayerCount ())
54- .maximumPlayers (server .getConfiguration ().getShowMaxPlayers ()).build ())).get ();
56+ .maximumPlayers (server .getConfiguration ().getShowMaxPlayers ())
57+ .version (new Version (GameProtocol .getJavaProtocolVersion (), GameProtocol .getJavaMinecraftVersion ()))
58+ .build ())).get ();
5559 } catch (ExecutionException | InterruptedException e ) {
5660 throw new RuntimeException (e );
5761 }
You can’t perform that action at this time.
0 commit comments