Correct plugin names we distribute outselves

This commit is contained in:
Łukasz Domeradzki
2024-03-26 01:15:17 +01:00
parent bbad80ae0e
commit 53ec07a7f1
11 changed files with 27 additions and 27 deletions

View File

@@ -48,7 +48,7 @@ internal sealed class ItemsMatcherPlugin : OfficialPlugin, IBot, IBotCommand2, I
[JsonInclude]
[Required]
public override string Name => nameof(ItemsMatcherPlugin);
public override string Name => typeof(ItemsMatcherPlugin).Assembly.GetName().Name ?? throw new InvalidOperationException(nameof(Name));
[JsonInclude]
[Required]