Skip to content

Commit

Permalink
1.6.2 | Fix First Escaper and timer format
Browse files Browse the repository at this point in the history
  • Loading branch information
Vretu-Dev committed Oct 12, 2024
1 parent 0034d6e commit c1a34d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions UsefulHints/EventHandlers/Modules/RoundSummary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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))
Expand Down
4 changes: 3 additions & 1 deletion UsefulHints/UsefulHints.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using Exiled.API.Enums;
using Exiled.API.Features;

namespace UsefulHints
Expand All @@ -8,8 +9,9 @@ public class UsefulHints : Plugin<Config>
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()
{
Expand Down

0 comments on commit c1a34d2

Please sign in to comment.