We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa99daa commit 643023dCopy full SHA for 643023d
1 file changed
lib/plugins/scoreboard.js
@@ -16,6 +16,14 @@ function inject (bot) {
16
if (packet.action === 1) {
17
bot.emit('scoreboardDeleted', scoreboards[packet.name])
18
delete scoreboards[packet.name]
19
+
20
+ for (const position in ScoreBoard.positions) {
21
+ const scoreboard = ScoreBoard.positions[position]
22
+ if (scoreboard.name === packet.name) {
23
+ delete ScoreBoard.positions[position]
24
+ break
25
+ }
26
27
}
28
29
if (packet.action === 2) {
0 commit comments