diff --git a/TShockAPI/Properties/AssemblyInfo.cs b/TShockAPI/Properties/AssemblyInfo.cs index e609f2a3..a8d53f8f 100644 --- a/TShockAPI/Properties/AssemblyInfo.cs +++ b/TShockAPI/Properties/AssemblyInfo.cs @@ -48,5 +48,5 @@ using System.Runtime.InteropServices; // Build Number // MMdd of the build -[assembly: AssemblyVersion("3.4.5.0113")] -[assembly: AssemblyFileVersion("3.4.5.0113")] +[assembly: AssemblyVersion("3.4.5.0114")] +[assembly: AssemblyFileVersion("3.4.5.0114")] diff --git a/TShockAPI/TSPlayer.cs b/TShockAPI/TSPlayer.cs index 2de9283b..9306ef4c 100644 --- a/TShockAPI/TSPlayer.cs +++ b/TShockAPI/TSPlayer.cs @@ -17,6 +17,7 @@ along with this program. If not, see . */ using System; using System.Collections.Generic; +using System.Diagnostics; using System.IO; using System.Threading; using Terraria; @@ -365,6 +366,12 @@ namespace TShockAPI SetBuff(23, 330, true); //Cursed if (!string.IsNullOrEmpty(reason)) Log.ConsoleInfo(string.Format("Player {0} has been disabled for {1}", Name, reason)); + + var trace = new StackTrace(); + StackFrame frame = null; + frame = trace.GetFrame(1); + if (frame != null && frame.GetMethod().DeclaringType != null) + Log.Debug(frame.GetMethod().DeclaringType.Name + " called Disable()"); } public virtual void Whoopie(object time)