diff --git a/DiscordHook/DiscordHook.cs b/DiscordHook/DiscordHook.cs index 4776a5c..7b60691 100644 --- a/DiscordHook/DiscordHook.cs +++ b/DiscordHook/DiscordHook.cs @@ -233,7 +233,7 @@ private void OnPlayerDeath(Player player, byte damage, Vector3 force, EDeathCaus NoTP.Remove(Killer.SteamPlayer()); } } - catch(Exception ex) { } + catch(Exception) { } switch (death) { @@ -338,7 +338,6 @@ private void OnPlayerChat(SteamPlayer player, EChatMode mode, ref Color color, r default: title = Translations.Instance["player_chat"]; break; - } foreach (ServerSetting bot in Configuration.Instance.Bots) diff --git a/DiscordHook/DiscordHook.csproj b/DiscordHook/DiscordHook.csproj index 0f4bab5..9b237b4 100644 --- a/DiscordHook/DiscordHook.csproj +++ b/DiscordHook/DiscordHook.csproj @@ -33,9 +33,11 @@ ..\Libraries\Assembly-CSharp.dll + False ..\Libraries\Assembly-CSharp-firstpass.dll + False ..\Libraries\Newtonsoft.Json.dll @@ -43,12 +45,15 @@ ..\Libraries\Rocket.API.dll + False ..\Libraries\Rocket.Core.dll + False ..\Libraries\Rocket.Unturned.dll + False @@ -58,6 +63,7 @@ ..\Libraries\UnityEngine.dll + False diff --git a/DiscordHook/Sender.cs b/DiscordHook/Sender.cs index d1a42fa..a6e6e1e 100644 --- a/DiscordHook/Sender.cs +++ b/DiscordHook/Sender.cs @@ -43,10 +43,7 @@ public static bool SendSingle(JObject WebHook, ServerSetting bot) return true; } - catch (Exception ex) - { - return false; - } + catch (Exception){ return false; } } public static bool[] Send(JObject WebHook)