diff --git a/lib/plugins/game.js b/lib/plugins/game.js index d3291b06e..a222f3b8e 100644 --- a/lib/plugins/game.js +++ b/lib/plugins/game.js @@ -111,8 +111,11 @@ function inject (bot, options) { bot.emit('login') bot.emit('game') + // The brand is sent once per connection: from 1.20.2 node-minecraft-protocol sends it on the + // first entry into the configuration state, where the vanilla client sends it after + // login_acknowledged. Before the configuration state the client sends it on joining the world. // varint length-prefixed string as data - bot._client.writeChannel(brandChannel, options.brand) + if (!bot.supportFeature('hasConfigurationState')) bot._client.writeChannel(brandChannel, options.brand) }) bot._client.on('respawn', (packet) => {