mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-17 13:24:17 -07:00
Detect and disconnect 1.3 clients properly. Fixes BUKKIT-1952
This commit is contained in:
@@ -55,6 +55,12 @@ public class NetLoginHandler extends NetHandler {
|
||||
}
|
||||
|
||||
public void a(Packet2Handshake packet2handshake) {
|
||||
// CraftBukkit start - 1.3 detection
|
||||
if (packet2handshake.a == null) {
|
||||
disconnect("Outdated server!");
|
||||
return;
|
||||
}
|
||||
// CraftBukkit end
|
||||
// CraftBukkit start
|
||||
int i = packet2handshake.a.indexOf(';');
|
||||
if (i == -1) {
|
||||
|
Reference in New Issue
Block a user