diff --git a/MosswartMassacre/CommandHandler.cs b/MosswartMassacre/CommandHandler.cs index 94ca447..caaabc1 100644 --- a/MosswartMassacre/CommandHandler.cs +++ b/MosswartMassacre/CommandHandler.cs @@ -22,7 +22,7 @@ namespace MosswartMassacre { // Remove the /mm prefix and trim string[] args = commandText.Length > 3 - ? commandText.Substring(3).Trim().Split(' ', StringSplitOptions.RemoveEmptyEntries) + ? commandText.Substring(3).Trim().Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries) : Array.Empty(); if (args.Length == 0) { diff --git a/MosswartMassacre/MosswartMassacre.csproj b/MosswartMassacre/MosswartMassacre.csproj index 6602520..a518e54 100644 --- a/MosswartMassacre/MosswartMassacre.csproj +++ b/MosswartMassacre/MosswartMassacre.csproj @@ -48,6 +48,9 @@ False lib\Decal.Interop.Inject.dll + + $(FrameworkPathOverride)\System.Configuration.dll + ..\packages\Newtonsoft.Json.13.0.3\lib\net45\Newtonsoft.Json.dll diff --git a/MosswartMassacre/PluginCore.cs b/MosswartMassacre/PluginCore.cs index 8eb1d76..f6ebbc7 100644 --- a/MosswartMassacre/PluginCore.cs +++ b/MosswartMassacre/PluginCore.cs @@ -175,7 +175,10 @@ namespace MosswartMassacre } - private bool IsKilledByMeMessage(string text) + /// + /// Determines if the chat text indicates a kill by this character. + /// + public static bool IsKilledByMeMessage(string text) { // Check each precompiled kill message pattern foreach (var regex in KillRegexes) @@ -185,7 +188,10 @@ namespace MosswartMassacre } return false; } - private bool IsRareDiscoveryMessage(string text, out string rareTextOnly) + /// + /// Determines if the chat text indicates a rare discovery by this character. + /// + public static bool IsRareDiscoveryMessage(string text, out string rareTextOnly) { rareTextOnly = null; diff --git a/MosswartMassacre/PluginSettings.cs b/MosswartMassacre/PluginSettings.cs index 9b2f726..61229ba 100644 --- a/MosswartMassacre/PluginSettings.cs +++ b/MosswartMassacre/PluginSettings.cs @@ -25,7 +25,6 @@ namespace MosswartMassacre private bool _remoteCommandsEnabled = false; private bool _rareMetaEnabled = true; private bool _httpServerEnabled = false; - private bool _telemetryEnabled = false; private bool _webSocketEnabled = false; private string _charTag = "default";