From c58c1c206ac0dc93abd2a47497ae909e9ed550ae Mon Sep 17 00:00:00 2001 From: Liza Carvelli Date: Tue, 1 Nov 2022 19:20:43 +0100 Subject: [PATCH] Disable all ChatMessage/FrameworkUpdate logic if FirstUse is set --- Pal.Client/Plugin.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Pal.Client/Plugin.cs b/Pal.Client/Plugin.cs index e2bc843..1fa0c0a 100644 --- a/Pal.Client/Plugin.cs +++ b/Pal.Client/Plugin.cs @@ -53,7 +53,6 @@ namespace Pal.Client public Plugin(DalamudPluginInterface pluginInterface) { - ECommonsMain.Init(pluginInterface, this, Module.SplatoonAPI); pluginInterface.Create(); @@ -181,6 +180,9 @@ namespace Pal.Client private void OnChatMessage(XivChatType type, uint senderId, ref SeString sender, ref SeString seMessage, ref bool isHandled) { + if (Service.Configuration.FirstUse) + return; + if (type != (XivChatType)2105) return; @@ -216,6 +218,9 @@ namespace Pal.Client private void OnFrameworkUpdate(Framework framework) { + if (Service.Configuration.FirstUse) + return; + try { bool recreateLayout = false; @@ -515,7 +520,6 @@ namespace Pal.Client } } - private async Task FetchFloorStatistics() { if (Service.Configuration.Mode != Configuration.EMode.Online)