Disable all ChatMessage/FrameworkUpdate logic if FirstUse is set

rendering
Liza 2022-11-01 19:20:43 +01:00
parent df7cd6ea6f
commit c58c1c206a
1 changed files with 6 additions and 2 deletions

View File

@ -53,7 +53,6 @@ namespace Pal.Client
public Plugin(DalamudPluginInterface pluginInterface)
{
ECommonsMain.Init(pluginInterface, this, Module.SplatoonAPI);
pluginInterface.Create<Service>();
@ -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)