diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index 1b06aaef..9ae676a1 100644 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -67,6 +67,7 @@ namespace TShockAPI public static bool OverridePort; public static PacketBufferer PacketBuffer; public static MaxMind.GeoIPCountry Geo; + public static bool PostInit = false; /// /// Called after TShock is initialized. Useful for plugins that needs hooks before tshock but also depend on tshock being loaded. @@ -190,7 +191,7 @@ namespace TShockAPI GetDataHandlers.InitGetDataHandler(); Commands.InitCommands(); - //RconHandler.StartThread(); + RconHandler.StartThread(); if (Config.BufferPackets) PacketBuffer = new PacketBufferer(); @@ -359,6 +360,11 @@ namespace TShockAPI private void OnUpdate() { + if (!PostInit) + { + OnPostInit(); + PostInit = true; + } UpdateManager.UpdateProcedureCheck(); if (Backups.IsBackupTime)