Disable all ChatMessage/FrameworkUpdate logic if FirstUse is set

This commit is contained in:
Liza 2022-11-01 19:20:43 +01:00
parent df7cd6ea6f
commit c58c1c206a

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)