mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-14 10:44:55 -05:00
it doesn't work
i changed this since yesterday but forgot to commit so here it is
This commit is contained in:
parent
f252dab0b7
commit
678aa22e93
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue