Skip to content

Commit

Permalink
Version plugin bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Vretu-Dev committed Jan 1, 2025
1 parent 73f7d60 commit 29543a7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions UsefulHints/Update.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
/*using System;
using System.IO;
using System.Net.Http;
using System.Threading.Tasks;
Expand Down Expand Up @@ -175,4 +175,5 @@ private static void BackupAndWritePlugin(byte[] pluginData)
File.WriteAllBytes(PluginPath, pluginData);
}
}
}
}
*/
6 changes: 3 additions & 3 deletions UsefulHints/UsefulHints.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ 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, 9, 4);
public override Version Version => new Version(1, 9, 5);
public override Version RequiredExiledVersion { get; } = new Version(9, 0, 0);
public override PluginPriority Priority { get; } = PluginPriority.Low;
public static UsefulHints Instance { get; private set; }
public override void OnEnabled()
{
Instance = this;
if(Config.AutoUpdate){ UpdateChecker.RegisterEvents(); }
//if(Config.AutoUpdate){ UpdateChecker.RegisterEvents(); }
if(Config.Translations){ _ = TranslationManager.RegisterEvents(); }
if(Config.EnableHints){ EventHandlers.Entities.SCP096.RegisterEvents(); }
if(Config.EnableHints){ EventHandlers.Items.Hints.RegisterEvents(); }
Expand All @@ -32,7 +32,7 @@ public override void OnEnabled()
public override void OnDisabled()
{
Instance = null;
if(Config.AutoUpdate){ UpdateChecker.UnregisterEvents(); }
//if(Config.AutoUpdate){ UpdateChecker.UnregisterEvents(); }
if(Config.EnableHints){ EventHandlers.Entities.SCP096.UnregisterEvents(); }
if(Config.EnableHints){ EventHandlers.Items.Hints.UnregisterEvents(); }
if(Config.EnableWarnings){ EventHandlers.Items.WarningHints.UnregisterEvents(); }
Expand Down

0 comments on commit 29543a7

Please sign in to comment.