Skip to content

Commit

Permalink
1.8.1 | Add configurable plugin path
Browse files Browse the repository at this point in the history
  • Loading branch information
Vretu-Dev committed Nov 30, 2024
1 parent 4f4dd8f commit 6ee55f8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions UsefulHints/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public class Config : IConfig
[Description("Auto Update Plugin:")]
public bool AutoUpdate { get; set; } = true;
public bool EnableBackup { get; set; } = false;
public string PluginPath { get; set; } = "/home/container/.config/EXILED/Plugins/UsefulHints.dll";
[Description("Hint Settings:")]
public bool EnableHints { get; set; } = true;
public string Scp096LookMessage { get; set; } = "You looked at SCP-096!";
Expand Down
4 changes: 2 additions & 2 deletions UsefulHints/Update.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ namespace UsefulHints
public static class UpdateChecker
{
private static readonly string RepositoryUrl = "https://api.github.com/repos/Vretu-Dev/UsefulHints/releases/latest";
private static readonly string PluginPath = "/home/container/.config/EXILED/Plugins/UsefulHints.dll";
private static readonly string CurrentVersion = "1.8.0";
private static readonly string PluginPath = UsefulHints.Instance.Config.PluginPath;
private static readonly string CurrentVersion = UsefulHints.Instance.Version.ToString();
public static void RegisterEvents()
{
Task.Run(async () => await CheckForUpdates(true));
Expand Down
2 changes: 1 addition & 1 deletion UsefulHints/UsefulHints.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class UsefulHints : Plugin<Config>
public override string Name => "Useful Hints";
public override string Author => "Vretu";
public override string Prefix { get; } = "UH";
public override Version Version => new Version(1, 8, 0);
public override Version Version => new Version(1, 8, 1);
public override Version RequiredExiledVersion { get; } = new Version(8, 9, 8);
public override PluginPriority Priority { get; } = PluginPriority.Low;
public static UsefulHints Instance { get; private set; }
Expand Down

0 comments on commit 6ee55f8

Please sign in to comment.