From 243d49a6e48514f52ed394c0d830b4f5965e7acd Mon Sep 17 00:00:00 2001 From: lolcat Date: Sun, 3 Nov 2024 16:50:26 -0500 Subject: [PATCH] yea --- client.js | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/client.js b/client.js index db143b1..e280296 100644 --- a/client.js +++ b/client.js @@ -475,11 +475,18 @@ function mc_login(){ mc_bot.on("error", function(){ - console.log("Minecraft: error occured, disconnecting"); - mc_bot.end(); - mc_logged_in = false; - setTimeout(mc_login, 5000); // reconnect after 5 seconds + console.log("Minecraft: error occured"); }); + + mc_bot.on("playerJoined", function(player){ + + send(1, ">" + player.username + " has joined deekcraft"); + }) + + mc_bot.on("playerLeft", function(player){ + + send(1, ">" + player.username + " has left deekcraft"); + }) } mc_login();