We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e571e54 commit 2e02ceeCopy full SHA for 2e02cee
lib/plugins/scoreboard.js
@@ -19,6 +19,10 @@ function inject (bot) {
19
}
20
21
if (packet.action === 2) {
22
+ if (!Object.hasOwn(scoreboards, packet.name)) {
23
+ bot.emit('error', new Error(`Received update for unknown objective ${packet.name}`))
24
+ return
25
+ }
26
scoreboards[packet.name].setTitle(packet.displayText)
27
bot.emit('scoreboardTitleChanged', scoreboards[packet.name])
28
0 commit comments