Bug fix: antiAntiAfk Messages have been send even if the player was online
This commit is contained in:
@ -181,7 +181,7 @@ function join() {
|
|||||||
proxyClient = null
|
proxyClient = null
|
||||||
}
|
}
|
||||||
stop();
|
stop();
|
||||||
log("Connection reset by 2b2t server. Reconnecting...");
|
if (!stoppedByPlayer) log("Connection reset by 2b2t server. Reconnecting...");
|
||||||
if (config.reconnect.onError) setTimeout(reconnect, 6000);
|
if (config.reconnect.onError) setTimeout(reconnect, 6000);
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -239,7 +239,9 @@ function join() {
|
|||||||
filterPacketAndSend(data, meta, client);
|
filterPacketAndSend(data, meta, client);
|
||||||
});
|
});
|
||||||
newProxyClient.on("end", () => {
|
newProxyClient.on("end", () => {
|
||||||
antiAntiAfkmsg();
|
setTimeout(function(){
|
||||||
|
if (webserver.isInQueue) antiAntiAfkmsg();
|
||||||
|
},1000);
|
||||||
})
|
})
|
||||||
|
|
||||||
proxyClient = newProxyClient;
|
proxyClient = newProxyClient;
|
||||||
|
|||||||
Reference in New Issue
Block a user