From 8bd1ed9e8dc48f6344869f0a763ac15e48fffe46 Mon Sep 17 00:00:00 2001 From: q13x <84165981+WorldEditAxe@users.noreply.github.com> Date: Fri, 24 May 2024 01:48:08 -0700 Subject: [PATCH] attempted fix for #33 --- src/proxy/Proxy.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/proxy/Proxy.ts b/src/proxy/Proxy.ts index 5dd1c85..c806773 100644 --- a/src/proxy/Proxy.ts +++ b/src/proxy/Proxy.ts @@ -26,7 +26,6 @@ import { CSChannelMessagePacket } from "./packets/channel/CSChannelMessage.js"; import { Constants, UPGRADE_REQUIRED_RESPONSE } from "./Constants.js"; import { PluginManager } from "./pluginLoader/PluginManager.js"; import ProxyRatelimitManager from "./ratelimit/ProxyRatelimitManager.js"; -import { ChatColor } from "../plugins/EagProxyAAS/types.js"; import { SkinServer } from "./skins/SkinServer.js"; let instanceCount = 0; @@ -149,7 +148,7 @@ export class Proxy extends EventEmitter { }); process.on("beforeExit", () => { this._logger.info("Cleaning up before exiting..."); - this.players.forEach((plr) => plr.disconnect(ChatColor.YELLOW + "Proxy is shutting down.")); + this.players.forEach((plr) => plr.disconnect(Enums.ChatColor.YELLOW + "Proxy is shutting down.")); }); this.ratelimit = new ProxyRatelimitManager(this.config.ratelimits); this.pluginManager.emit("proxyFinishLoading", this, this.pluginManager);