diff --git a/UsefulHints/EventHandlers/Modules/RoundSummary.cs b/UsefulHints/EventHandlers/Modules/RoundSummary.cs index 92c1b48..7796d94 100644 --- a/UsefulHints/EventHandlers/Modules/RoundSummary.cs +++ b/UsefulHints/EventHandlers/Modules/RoundSummary.cs @@ -98,7 +98,7 @@ private static void OnPlayerDied(DiedEventArgs ev) // Handler for Escaped Player private static void OnPlayerEscaping(EscapingEventArgs ev) { - if (firstEscaper == null) + if (firstEscaper == null && ev.IsAllowed) { firstEscaper = ev.Player; escapeTime = DateTime.Now - roundStartTime; @@ -120,7 +120,7 @@ private static void OnRoundEnded(RoundEndedEventArgs ev) if (topDamageDealer != null) text += string.Format(UsefulHints.Instance.Config.TopDamageMessage, topDamageDealer.Nickname, humanDamage[topDamageDealer]) + "\n"; if (firstEscaper != null) - text += string.Format(UsefulHints.Instance.Config.EscaperMessage, firstEscaper.Nickname, escapeTime.Minutes, escapeTime.Seconds) + "\n"; + text += string.Format(UsefulHints.Instance.Config.EscaperMessage, firstEscaper.Nickname, escapeTime.Minutes.ToString("D2"), escapeTime.Seconds.ToString("D2")) + "\n"; if (firstScpKiller != null) text += string.Format(UsefulHints.Instance.Config.FirstScpKillerMessage, firstScpKiller.Nickname) + "\n"; if (!string.IsNullOrEmpty(text)) diff --git a/UsefulHints/UsefulHints.cs b/UsefulHints/UsefulHints.cs index 28ce95a..7edf196 100644 --- a/UsefulHints/UsefulHints.cs +++ b/UsefulHints/UsefulHints.cs @@ -1,4 +1,5 @@ using System; +using Exiled.API.Enums; using Exiled.API.Features; namespace UsefulHints @@ -8,8 +9,9 @@ public class UsefulHints : Plugin public override string Name => "Useful Hints"; public override string Author => "Vretu"; public override string Prefix { get; } = "UH"; - public override Version Version => new Version(1, 6, 1); + public override Version Version => new Version(1, 6, 2); public override Version RequiredExiledVersion { get; } = new Version(8, 9, 8); + public override PluginPriority Priority { get; } = PluginPriority.Low; public static UsefulHints Instance { get; private set; } public override void OnEnabled() {