it doesn't work

i changed this since yesterday but forgot to commit so here it is
This commit is contained in:
ChomeNS 2022-11-11 16:55:34 +07:00
parent f252dab0b7
commit 678aa22e93

View file

@ -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();