How to override packet1login checking in net.minecraft.server.NetLoginHandler ?? Code: public void a(Packet1Login packet1login) { this.g = packet1login.name; if (packet1login.a != 17) { if (packet1login.a > 17) { this.disconnect("Outdated server!"); } else { this.disconnect("Outdated client!"); } } else { if (!this.server.onlineMode) { this.b(packet1login); } else { (new ThreadLoginVerifier(this, packet1login, this.server.server)).start(); // CraftBukkit } } } I need set 155 protocol in plugin. Help. Code: if (packet1login.a != 155) { if (packet1login.a > 155) {
There is my own anti-cheat system with cheking client's md5, transparent texture pack fix and modified protocol in client and server. But i need manipulate protocol from plugin.
Afforess plz tell me way to send md5 string. I see only 3 ways and can't choose: -Sending username "Username/md5", getPlayerListName, separete, setPlayerListName -Work with simple proxy on server side and change only Packet1Login -allow all players to connect and when they will send "/login pass" - add md5 to msg (client), separate and check in auth plugin.