@@ -18,13 +18,7 @@
|
||||
private final MinecraftServer a;
|
||||
private final NetworkManager b;
|
||||
|
||||
@@ -11,21 +21,58 @@
|
||||
}
|
||||
|
||||
public void a(PacketHandshakingInSetProtocol packethandshakinginsetprotocol) {
|
||||
+ this.b.channel.pipeline().get(PacketEncoder.class).version = packethandshakinginsetprotocol.b(); // CraftBukkit
|
||||
switch (HandshakeListener.SyntheticClass_1.a[packethandshakinginsetprotocol.a().ordinal()]) {
|
||||
case 1:
|
||||
@@ -16,6 +26,41 @@
|
||||
this.b.setProtocol(EnumProtocol.LOGIN);
|
||||
ChatComponentText chatcomponenttext;
|
||||
|
||||
@@ -63,14 +57,10 @@
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
+
|
||||
if (packethandshakinginsetprotocol.b() > 109) {
|
||||
chatcomponenttext = new ChatComponentText("Outdated server! I\'m still on 1.9.2");
|
||||
this.b.sendPacket(new PacketLoginOutDisconnect(chatcomponenttext));
|
||||
this.b.close(chatcomponenttext);
|
||||
- } else if (packethandshakinginsetprotocol.b() < 109) {
|
||||
+ } else if (packethandshakinginsetprotocol.b() < 107) {
|
||||
chatcomponenttext = new ChatComponentText("Outdated client! Please use 1.9.2");
|
||||
if (packethandshakinginsetprotocol.b() > 110) {
|
||||
chatcomponenttext = new ChatComponentText("Outdated server! I\'m still on 1.9.4");
|
||||
this.b.sendPacket(new PacketLoginOutDisconnect(chatcomponenttext));
|
||||
@@ -26,6 +71,7 @@
|
||||
this.b.close(chatcomponenttext);
|
||||
} else {
|
||||
this.b.setPacketListener(new LoginListener(this.a, this.b));
|
||||
|
||||
Reference in New Issue
Block a user