Protocol version

Discussion in 'Plugin Development' started by Hwo, Oct 13, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    Hwo

    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) {
     
  2. Offline

    zhuowei

    I don't think a plugin could modify that easily. Why do you want to do this?
     
  3. Offline

    Hwo

    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.
     
  4. Offline

    Afforess

    You can't. I looked long and hard for a way with Spout. You need to manually modify CB.
     
  5. Offline

    Hwo

    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.
     
Thread Status:
Not open for further replies.

Share This Page