Skip to content

Commit

Permalink
Reformat and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
0b10000 committed Oct 16, 2021
1 parent d68943e commit 7c03b75
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 9 additions & 5 deletions LogManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,15 @@ internal void EnqueueText(string killString, bool sendImmediately = false)

private string GetMention(LogReason reason)
{
if (reason == LogReason.CuffedKill && plugin.Config.PingCuffedHumanKills)
return $"<@&{plugin.Config.RoleIdToPing}>";
if (reason == LogReason.TeamKill && plugin.Config.PingTeamkills)
return $"<@&{plugin.Config.RoleIdToPing}>";
return null;
switch (reason)
{
case LogReason.CuffedKill when plugin.Config.PingCuffedHumanKills:
return $"<@&{plugin.Config.RoleIdToPing}>";
case LogReason.TeamKill when plugin.Config.PingTeamkills:
return $"<@&{plugin.Config.RoleIdToPing}>";
default:
return null;
}
}

private string GetSpecialDecoration(LogReason reason)
Expand Down
2 changes: 1 addition & 1 deletion Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class Plugin : Plugin<Config>
public override string Author => "0b10000";
public override string Name => "KillLogs";
public override string Prefix => "KillLogs";
public override Version Version { get; } = new(1, 0, 0);
public override Version Version { get; } = new(1, 0, 2);
public override Version RequiredExiledVersion { get; } = new(3, 0, 0);

public EventHandlers EventHandlers { get; private set; }
Expand Down

0 comments on commit 7c03b75

Please sign in to comment.