From b348c2bef29be263fb3e2921216f5b9c5e8a916b Mon Sep 17 00:00:00 2001 From: q13x <84165981+WorldEditAxe@users.noreply.github.com> Date: Wed, 5 Jul 2023 10:24:40 -0700 Subject: [PATCH] there we go --- example_plugins/AutokickPlugin/index.ts | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/example_plugins/AutokickPlugin/index.ts b/example_plugins/AutokickPlugin/index.ts index a45c9d9..3db84da 100644 --- a/example_plugins/AutokickPlugin/index.ts +++ b/example_plugins/AutokickPlugin/index.ts @@ -14,7 +14,7 @@ const MineProtocol = PluginManager.MineProtocol; const EaglerSkins = PluginManager.EaglerSkins; const Util = PluginManager.Util; -const logger = new Logger("EaglerProxyAAS"); +const logger = new Logger("AutoKicker"); logger.info(`Starting ${metadata.name} v${metadata.version}...`); logger.info( `(internal server port: ${config.bindInternalServerPort}, internal server IP: ${config.bindInternalServerPort})` @@ -30,14 +30,7 @@ let server = createServer({ }); server.on("login", (client) => { - logger.info( - `Client ${client.username} has connected to the authentication server.` - ); - client.on("end", () => { - logger.info( - `Client ${client.username} has disconnected from the authentication server.` - ); - }); + logger.info(`Client ${client.username} has connected to the dummy server.`); client.write("kick_disconnect", { reason: "NO", });