diff --git a/ChatTwo/GameFunctions/Chat.cs b/ChatTwo/GameFunctions/Chat.cs index 3420dc8..6122047 100755 --- a/ChatTwo/GameFunctions/Chat.cs +++ b/ChatTwo/GameFunctions/Chat.cs @@ -165,7 +165,7 @@ internal sealed unsafe class Chat : IDisposable ChangeChannelNameDetour(agent); - // Inform all clients that a new login happend + // Inform all clients that a new login happened Plugin.ServerCore.SendNewLogin(); } diff --git a/ChatTwo/Plugin.cs b/ChatTwo/Plugin.cs index 31e7d3e..69ffc93 100755 --- a/ChatTwo/Plugin.cs +++ b/ChatTwo/Plugin.cs @@ -81,6 +81,9 @@ public sealed class Plugin : IDalamudPlugin LanguageChanged(Interface.UiLanguage); ImGuiUtil.Initialize(this); + // Functions calls this in its ctor if the player is already logged in + ServerCore = new ServerCore(this); + Commands = new Commands(this); Common = new ChatCommon(); Functions = new GameFunctions.GameFunctions(this); @@ -88,9 +91,6 @@ public sealed class Plugin : IDalamudPlugin ExtraChat = new ExtraChat(this); FontManager = new FontManager(); - // ChatLog calls this in its ctor if the player is already logged in - ServerCore = new ServerCore(this); - ChatLogWindow = new ChatLogWindow(this); SettingsWindow = new SettingsWindow(this); DbViewer = new DbViewer(this);