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
|
||||
}
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user