forked from SteamWar/SteamWar
Hotfix VersionAnnouncer
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user