- Check auto translation for commands and execute them instead of sending

- Plugin commands trigger the command helper window now
- Fix auto translation with empty text appearing
- Switch up all dalamud payload usage to ROSS if possible
- Prepare 7.5 changes
- Cleanup
This commit is contained in:
Infi
2026-04-08 21:15:28 +02:00
parent 9f7a6267f6
commit c424311b24
52 changed files with 614 additions and 423 deletions
+3 -8
View File
@@ -4,13 +4,7 @@ namespace ChatTwo;
internal sealed class Commands : IDisposable
{
private Plugin Plugin { get; }
private Dictionary<string, CommandWrapper> Registered { get; } = new();
internal Commands(Plugin plugin)
{
Plugin = plugin;
}
private readonly Dictionary<string, CommandWrapper> Registered = [];
public void Dispose()
{
@@ -47,7 +41,8 @@ internal sealed class Commands : IDisposable
return Registered[name];
}
private void Invoke(string command, string arguments) {
private void Invoke(string command, string arguments)
{
if (!Registered.TryGetValue(command, out var wrapper))
{
Plugin.Log.Warning($"Missing registration for command {command}");