diff --git a/plugins/players.js b/plugins/players.js index 241715a..eea16d4 100644 --- a/plugins/players.js +++ b/plugins/players.js @@ -121,10 +121,10 @@ function inject (bot, dcclient, config) { if (fullPlayer && players.some((name) => name === fullPlayer.name)) { bot.emit('player_vanished', player) - return - } else bot.emit('player_removed', player, packet) - - bot.players.removePlayer(player) + } else { + bot.emit('player_removed', player, packet) + bot.players.removePlayer(player) + } } }