Send right version number (1.7.x)

Discussion in 'Plugin Development' started by jofkos, Apr 17, 2014.

Thread Status:
Not open for further replies.
  1. Hi,
    I want to support all 1.7 minecraft versions.
    Now player can join with all 1.7 versions, i modified the HandshakeListener at line 25.
    From
    Code:java
    1. } else if (packethandshakinginsetprotocol.d() < 5) {

    to:
    Code:java
    1. } else if (packethandshakinginsetprotocol.d() < 4) {

    Player can join with all versions, but the displayed version is 1.7.8 (5):
    [​IMG]
    This version is set in the MinecraftServer class at line 296:
    Code:java
    1. this.q.setServerInfo(new ServerPingServerData("1.7.8", 5));

    How can i send to the client the right version number? Where is this version string (1.7.8) and the version number (5) send and how can i listen for the client one?
     
  2. Offline

    1Rogue

    Just sending the number of the version doesn't make you automatically "support" the version, 1.7.6+ uses an entirely different protocol.
     
  3. It's working, player can join with the new (1.7.6+) and the old (1.7.2+) version.
    The problem is the version displayed in the server list and that's my question
     
Thread Status:
Not open for further replies.

Share This Page