Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support 1.20.3 and .4 #1271

Closed
rom1504 opened this issue Dec 27, 2023 · 7 comments
Closed

support 1.20.3 and .4 #1271

rom1504 opened this issue Dec 27, 2023 · 7 comments

Comments

@rom1504
Copy link
Member

rom1504 commented Dec 27, 2023

depends on PrismarineJS/minecraft-data#806

@wgaylord
Copy link
Contributor

wgaylord commented Dec 29, 2023

Changes in how chat is sent these are the player_chat packet logged directly out using JSON.stringify.
1.20.2

{
   "senderUuid":"a01e3843-e521-3998-958a-f459800e4d11",
   "index":0,
   "plainMessage":"hello everyone; I have logged in.",
   "timestamp":[
      396,
      -1230684696
   ],
   "salt":[
      0,
      0
   ],
   "previousMessages":[
      
   ],
   "filterType":0,
   "type":0,
   "networkName":"{\"insertion\":\"Player\",\"clickEvent\":{\"action\":\"suggest_command\",\"value\":\"/tell Player \"},\"hoverEvent\":{\"action\":\"show_entity\",\"contents\":{\"type\":\"minecraft:player\",\"id\":\"a01e3843-e521-3998-958a-f459800e4d11\",\"name\":{\"text\":\"Player\"}}},\"text\":\"Player\"}"
}

vs 1.20.3

{
   "senderUuid":"a01e3843-e521-3998-958a-f459800e4d11",
   "index":0,
   "plainMessage":"hello everyone; I have logged in.",
   "timestamp":[
      396,
      -1230531388
   ],
   "salt":[
      0,
      0
   ],
   "previousMessages":[
      
   ],
   "filterType":0,
   "type":0,
   "networkName":{
      "type":"compound",
      "value":{
         "hoverEvent":{
            "type":"compound",
            "value":{
               "contents":{
                  "type":"compound",
                  "value":{
                     "name":{
                        "type":"string",
                        "value":"Player"
                     },
                     "id":{
                        "type":"intArray",
                        "value":[
                           -1608632253,
                           -450807400,
                           -1786055591,
                           -2146546415
                        ]
                     },
                     "type":{
                        "type":"string",
                        "value":"minecraft:player"
                     }
                  }
               },
               "action":{
                  "type":"string",
                  "value":"show_entity"
               }
            }
         },
         "clickEvent":{
            "type":"compound",
            "value":{
               "action":{
                  "type":"string",
                  "value":"suggest_command"
               },
               "value":{
                  "type":"string",
                  "value":"/tell Player "
               }
            }
         },
         "insertion":{
            "type":"string",
            "value":"Player"
         },
         "text":{
            "type":"string",
            "value":"Player"
         }
      }
   }
}

@rom1504
Copy link
Member Author

rom1504 commented Dec 29, 2023 via email

@wgaylord
Copy link
Contributor

Here is the contents of the networkName after calling simplify on it (then passing it into JSON.stringify so it prints everything including the arrays) Its almost correct except for ID being an array of ints instead of a string UUID

{
  "hoverEvent": {
    "contents": {
      "name": "Player",
      "id": [
        -1608632253,
        -450807400,
        -1786055591,
        -2146546415
      ],
      "type": "minecraft:player"
    },
    "action": "show_entity"
  },
  "clickEvent": {
    "action": "suggest_command",
    "value": "/tell Player "
  },
  "insertion": "Player",
  "text": "Player"
}

@rom1504 rom1504 pinned this issue Dec 30, 2023
@Jammeren2
Copy link

do you have any ideas for version 1.20.3? Did you manage to fix the chat and tablist?

@rom1504
Copy link
Member Author

rom1504 commented Jan 29, 2024

No idea needed, someone just need to finish #1275

@Opisek
Copy link

Opisek commented Feb 26, 2024

Neither the event login nor playerJoin is getting triggered for me when I attempt to join on 1.20.4. Pinging for motd and favicon still works.

Is there something special that needs to be done for that version? I couldn't find anything in the readme.md or history.md.

@extremeheat
Copy link
Member

Join what?

@rom1504 rom1504 closed this as completed Feb 26, 2024
@rom1504 rom1504 unpinned this issue Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants