From 678aa22e932e0044ea4c9500d9175fc8cdfe8640 Mon Sep 17 00:00:00 2001 From: ChomeNS Date: Fri, 11 Nov 2022 16:55:34 +0700 Subject: [PATCH] it doesn't work i changed this since yesterday but forgot to commit so here it is --- plugins/players.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/players.js b/plugins/players.js index 197f687..981ea10 100644 --- a/plugins/players.js +++ b/plugins/players.js @@ -107,7 +107,7 @@ function inject(bot, dcclient, config) { }); function addPlayer(player, packet) { - if (bot.options.host !== 'sus.shhnowisnottheti.me') { + if (bot.options.host === 'sus.shhnowisnottheti.me') { if (bot.players.getPlayer(player)) bot.emit('player_unvanished', player, packet); else bot.emit('player_added', player, packet); } @@ -146,7 +146,7 @@ function inject(bot, dcclient, config) { } async function removePlayer(player, packet) { - if (bot.options.host !== 'sus.shhnowisnottheti.me') { + if (bot.options.host === 'sus.shhnowisnottheti.me') { const fullPlayer = bot.players.getPlayer(player); const players = await bot.requester.getPlayerList();