diff --git a/nael/nael/NaelPlugin.cs b/nael/nael/NaelPlugin.cs index d62f2c8..4a20ce8 100644 --- a/nael/nael/NaelPlugin.cs +++ b/nael/nael/NaelPlugin.cs @@ -13,6 +13,7 @@ using Dalamud.Game.Text.SeStringHandling.Payloads; using Dalamud.IoC; using Dalamud.Plugin; + using Dalamud.Plugin.Services; using ImGuiNET; public class NaelPlugin : IDalamudPlugin @@ -22,10 +23,10 @@ public class NaelPlugin : IDalamudPlugin private static bool drawConfiguration; private Configuration configuration; - private ChatGui chatGui; + private IChatGui chatGui; [PluginService] private static DalamudPluginInterface PluginInterface { get; set; } = null!; - [PluginService] private static CommandManager CommandManager { get; set; } = null!; - [PluginService] private static ClientState ClientState { get; set; } = null!; + [PluginService] private static ICommandManager CommandManager { get; set; } = null!; + [PluginService] private static IClientState ClientState { get; set; } = null!; private string configDynamo; private string configChariot; @@ -37,7 +38,7 @@ public class NaelPlugin : IDalamudPlugin private readonly NaelQuotes naelQuotes; private Dictionary naelQuotesDictionary; - public NaelPlugin([RequiredVersion("1.0")] DalamudPluginInterface dalamudPluginInterface, [RequiredVersion("1.0")] ChatGui chatGui, [RequiredVersion("1.0")] CommandManager commandManager) + public NaelPlugin([RequiredVersion("1.0")] DalamudPluginInterface dalamudPluginInterface, [RequiredVersion("1.0")] IChatGui chatGui, [RequiredVersion("1.0")] ICommandManager commandManager) { this.chatGui = chatGui; @@ -90,7 +91,7 @@ private void NaelCommand(string command, string args) private void TestPlugin() { foreach (var quote in naelQuotes.Quotes) - chatGui.PrintChat(NaelMessage($"{GetQuote(quote.ID)}")); + chatGui.Print(NaelMessage($"{GetQuote(quote.ID)}")); } private static XivChatEntry NaelMessage(string message) diff --git a/nael/nael/NaelPlugin.json b/nael/nael/NaelPlugin.json index 1684879..c069470 100644 --- a/nael/nael/NaelPlugin.json +++ b/nael/nael/NaelPlugin.json @@ -3,7 +3,7 @@ "Name": "Nael'd it for UCOB", "Description": "Translates Nael's quotes into mechanics.", "Punchline": "because reading chat is not a mechanic", - "Changelog": "- added support for chinese (if client language isn't EN/DE/FR/JP)\n- this completes all languages that I currently have access to through APIs", + "Changelog": "-updated for Dalamud API9", "InternalName": "NaelPlugin", "Tags": ["ui"], "RepoUrl": "https://github.com/Eisenhuth/dalamud-nael", diff --git a/nael/nael/nael.csproj b/nael/nael/nael.csproj index 691ffd6..0bb6c2a 100644 --- a/nael/nael/nael.csproj +++ b/nael/nael/nael.csproj @@ -9,7 +9,7 @@ false $(AppData)\Eisenhuth\DalamudDevPlugins\NaelPlugin\ false - 1.4.0.0 + 1.4.1.0 true true https://github.com/Eisenhuth/dalamud-nael @@ -36,7 +36,7 @@ - + diff --git a/nael/nael/packages.lock.json b/nael/nael/packages.lock.json index 467f0f2..6cf1c73 100644 --- a/nael/nael/packages.lock.json +++ b/nael/nael/packages.lock.json @@ -4,9 +4,9 @@ "net7.0-windows7.0": { "DalamudPackager": { "type": "Direct", - "requested": "[2.1.11, )", - "resolved": "2.1.11", - "contentHash": "9qlAWoRRTiL/geAvuwR/g6Bcbrd/bJJgVnB/RurBiyKs6srsP0bvpoo8IK+Eg8EA6jWeM6/YJWs66w4FIAzqPw==" + "requested": "[2.1.12, )", + "resolved": "2.1.12", + "contentHash": "Sc0PVxvgg4NQjcI8n10/VfUQBAS4O+Fw2pZrAqBdRMbthYGeogzu5+xmIGCGmsEZ/ukMOBuAqiNiB5qA3MRalg==" } } }