Bug fix: antiAntiAfk Messages have been send even if the player was online

This commit is contained in:
MrGeorgen
2020-06-28 23:26:19 +02:00
parent 76f1876cec
commit 1d0f13a522

View File

@ -181,7 +181,7 @@ function join() {
proxyClient = null
}
stop();
log("Connection reset by 2b2t server. Reconnecting...");
if (!stoppedByPlayer) log("Connection reset by 2b2t server. Reconnecting...");
if (config.reconnect.onError) setTimeout(reconnect, 6000);
});
@ -239,7 +239,9 @@ function join() {
filterPacketAndSend(data, meta, client);
});
newProxyClient.on("end", () => {
antiAntiAfkmsg();
setTimeout(function(){
if (webserver.isInQueue) antiAntiAfkmsg();
},1000);
})
proxyClient = newProxyClient;