Skip to content

Event scoreUpdated is not called #3620

Open
@XxGoldenbluexX

Description

@XxGoldenbluexX
  • The FAQ doesn't contain a resolution to my issue

Versions

  • mineflayer: 4.26.0
  • server: Paper with 1.21.4-211-main@6ea4202 for Minecraft 1.21.4
  • node: bun 1.2.5

Detailed description of a problem

The event "scoreUpdated" is not called

What did you try yet?

  • Tried with plugin/custom scoreboard objectives
  • Tried with vanilla screboard
  • using bot._client.on("scoreboard_score", myCustomHandler) => It works

Your current code

/*
Too long to be posted here, however a snippet could be this one 
*/

bot.on("scoreUpdated", (scoreboard,item) => console.log(scoreboard))

Expected behavior

The event should be called

Additional context

I found the issue:
In "scoreboard.js" line 43, packet.action is undefined, hence why "the bot.emit('scoreUpdated', scoreboard, updated)" is never called.
The action field inside the packet is not sent anymore since 1.20.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stage1just created by someone new to the project, we don't know yet if it deserves an implementation / a fpossible bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions