diff options
| author | Pinapelz <yukais@pinapelz.com> | 2024-09-08 18:36:11 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2024-09-08 18:36:11 -0700 |
| commit | 4b5dd85a1fdcb1039c78261cab72047eb5a3933d (patch) | |
| tree | 94f8f4d1dabeceddd0558c3a5990eb401bd1b970 /Malmstone/Plugin.cs | |
| parent | 728d9ff38a19f0a8b72bcb004d56edabec138af8 (diff) | |
| parent | c434ed7e5b557ff82882d7ac74068169eb83de7c (diff) | |
Merge branch 'fl-bonus'
Diffstat (limited to 'Malmstone/Plugin.cs')
| -rw-r--r-- | Malmstone/Plugin.cs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Malmstone/Plugin.cs b/Malmstone/Plugin.cs index 5ed6a65..ada8202 100644 --- a/Malmstone/Plugin.cs +++ b/Malmstone/Plugin.cs @@ -24,6 +24,7 @@ public sealed class Plugin : IDalamudPlugin [PluginService] internal static IChatGui Chat { get; private set; } = null!; [PluginService] internal static IAddonLifecycle AddonLifeCycle { get; private set; } = null!; [PluginService] internal static IToastGui ToastGui { get; private set; } = null!; + [PluginService] internal static IPluginLog Logger { get; set; } = default!; private const string CommandName = "/pmalm"; @@ -48,12 +49,14 @@ public sealed class Plugin : IDalamudPlugin PvPAddon.EnableCrystallineConflictPostMatch(); if (Configuration.ShowProgressionChatPostRW) PvPAddon.EnableRivalWingsPostMatch(); - if (Configuration.ShowProgressionChatPostFL) + if (Configuration.ShowProgressionChatPostFL || Configuration.TrackFrontlineBonus) PvPAddon.EnableFrontlinePostMatch(); if (Configuration.ShowProgressionToastPostMatch) PvPAddon.EnablePostMatchProgressionToast(); if (Configuration.ShowMainWindowOnPVPReward) EnablePVPRewardWindowAddon(); + + PvPService.UpdateFrontlineResultCache(); if (Configuration.PostmatchProgressionToastType < 0 || Configuration.PostmatchProgressionToastType > 2) { @@ -84,13 +87,13 @@ public sealed class Plugin : IDalamudPlugin PvPAddon.DisableCrystallineConflictPostMatch(); if (Configuration.ShowProgressionChatPostRW) PvPAddon.DisableRivalWingsPostMatch(); - if (Configuration.ShowProgressionChatPostFL) + if (Configuration.ShowProgressionChatPostFL || Configuration.TrackFrontlineBonus) PvPAddon.DisableFrontlinePostMatch(); if (Configuration.ShowProgressionToastPostMatch) PvPAddon.DisablePostMatchProgressionToast(); if(Configuration.ShowMainWindowOnPVPReward) DisablePVPRewardWindowAddon(); - + CommandManager.RemoveHandler(CommandName); } @@ -254,5 +257,6 @@ private void OnCommand(string command, string args) AddonLifeCycle.UnregisterListener(AddonEvent.PostSetup, "PvpReward", MainWindow.OnOpenPVPRewardWindow); AddonLifeCycle.UnregisterListener(AddonEvent.PreFinalize, "PvpReward", MainWindow.OnClosePVPRewardWindow); } + } |
