diff --git a/TShockAPI/Properties/AssemblyInfo.cs b/TShockAPI/Properties/AssemblyInfo.cs index 6d3f5bc7..204b7aa3 100644 --- a/TShockAPI/Properties/AssemblyInfo.cs +++ b/TShockAPI/Properties/AssemblyInfo.cs @@ -36,5 +36,5 @@ using System.Runtime.InteropServices; // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("3.2.6.0813")] -[assembly: AssemblyFileVersion("3.2.6.0813")] +[assembly: AssemblyVersion("3.2.6.0815")] +[assembly: AssemblyFileVersion("3.2.6.0815")] diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index 1e335d0b..ce952ecd 100644 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -30,9 +30,7 @@ using System.Data; using System.Diagnostics; using System.IO; using System.Net; -using System.Net.Sockets; using System.Reflection; -using System.Security.Cryptography; using System.Linq; using System.Threading; using Community.CsharpSqlite.SQLiteClient; @@ -67,6 +65,11 @@ namespace TShockAPI public static bool OverridePort; static PacketBufferer bufferer; + /// + /// Called after TShock is initialized. Useful for plugins that needs hooks before tshock but also depend on tshock being loaded. + /// + public static event Action Initialized; + public override Version Version { @@ -189,6 +192,8 @@ namespace TShockAPI Log.ConsoleInfo("AutoSave " + (Config.AutoSave ? "Enabled" : "Disabled")); Log.ConsoleInfo("Backups " + (Backups.Interval > 0 ? "Enabled" : "Disabled")); + if (Initialized != null) + Initialized(); } catch (Exception ex) {