Hotfix VersionAnnouncer

This commit is contained in:
2025-10-25 12:07:23 +02:00
parent 20283e33e0
commit c560f669ca
@@ -50,6 +50,7 @@ public class VersionAnnouncer extends BasicListener {
if (protocolVersion.isSupported()) {
// PluginChannel 'vv:proxy_details' from ViaVersion apparently does not work any longer!
VelocityCore.schedule(() -> {
if (player.getCurrentServer().isEmpty()) return;
String[] strings = protocolVersion.getVersionIntroducedIn().split("\\.");
NetworkSender.send(player, new ClientVersionPacket(player.getUniqueId(), Integer.parseInt(strings[1])));
}).delay(Duration.of(100, ChronoUnit.MILLIS)).schedule();