diff --git a/lib/plugins/scoreboard.js b/lib/plugins/scoreboard.js index 65f17f791..3f24c47c7 100644 --- a/lib/plugins/scoreboard.js +++ b/lib/plugins/scoreboard.js @@ -19,7 +19,8 @@ function inject (bot) { for (const position in ScoreBoard.positions) { const scoreboard = ScoreBoard.positions[position] - if (scoreboard.name === packet.name) { + + if (scoreboard && scoreboard.name === packet.name) { delete ScoreBoard.positions[position] break }