mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-02 13:53:40 +01:00
feat: add ban reason in the installer
This commit is contained in:
parent
daaf3c9328
commit
f8966318c8
3 changed files with 27 additions and 2 deletions
|
|
@ -132,6 +132,7 @@ namespace Dalamud.Plugin.Internal
|
|||
|
||||
var pluginManager = Service<PluginManager>.Get();
|
||||
this.IsBanned = pluginManager.IsManifestBanned(this.Manifest);
|
||||
this.BanReason = pluginManager.GetBanReason(this.Manifest);
|
||||
|
||||
this.SaveManifest();
|
||||
}
|
||||
|
|
@ -167,6 +168,11 @@ namespace Dalamud.Plugin.Internal
|
|||
/// </summary>
|
||||
public string Name => this.instance?.Name ?? this.Manifest.Name ?? this.DllFile.Name;
|
||||
|
||||
/// <summary>
|
||||
/// Gets an optional reason, if the plugin is banned.
|
||||
/// </summary>
|
||||
public string BanReason { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether the plugin is loaded and running.
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue