@@ -18,7 +18,7 @@
|
||||
private final MinecraftServer a;
|
||||
private final NetworkManager b;
|
||||
|
||||
@@ -16,6 +26,41 @@
|
||||
@@ -17,6 +27,41 @@
|
||||
this.b.setProtocol(EnumProtocol.LOGIN);
|
||||
ChatMessage chatmessage;
|
||||
|
||||
@@ -57,10 +57,10 @@
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
+
|
||||
if (packethandshakinginsetprotocol.c() > 404) {
|
||||
chatmessage = new ChatMessage("multiplayer.disconnect.outdated_server", new Object[] { "1.13.2"});
|
||||
if (packethandshakinginsetprotocol.c() > SharedConstants.a().getProtocolVersion()) {
|
||||
chatmessage = new ChatMessage("multiplayer.disconnect.outdated_server", new Object[] { SharedConstants.a().getName()});
|
||||
this.b.sendPacket(new PacketLoginOutDisconnect(chatmessage));
|
||||
@@ -26,6 +71,7 @@
|
||||
@@ -27,6 +72,7 @@
|
||||
this.b.close(chatmessage);
|
||||
} else {
|
||||
this.b.setPacketListener(new LoginListener(this.a, this.b));
|
||||
|
||||
Reference in New Issue
Block a user