Skip to content

Commit 969230b

Browse files
authored
Add files via upload
1 parent 7829c42 commit 969230b

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

EventHandler.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public static void OnSpawned(SpawnedEventArgs e)
3232
{
3333
EnterHandler.AddPlayer(e.Player, e.OldRole, (DateTime)e.Player.SessionVariables[$"{e.OldRole.Type}-time"], DateTime.Now);
3434
e.Player.SessionVariables.Remove($"{e.OldRole.Type}-time");
35-
string exited = l.LogMessages.ExitedMessage.Replace("%player%", e.Player.Nickname).Replace("%role%", e.OldRole.Type.ToString());
35+
string exited = l.LogMessages.ExitedMessage.Replace("%player%", e.Player.Nickname).Replace("%role%", e.OldRole.Type.ToString()).Replace("%steamid%", e.Player.UserId);
3636
HookHelper.AddLogMessage(exited, l.Hook);
3737
}
3838
if (l.TrackedRoles.Contains(e.Player.Role.Type))
@@ -42,7 +42,7 @@ public static void OnSpawned(SpawnedEventArgs e)
4242
if (e.Player.Group == null) return;
4343
if (Config.IgnoredGroups.Contains(e.Player.Group.Name)) return;
4444
}
45-
string entered = l.LogMessages.EnteredMessage.Replace("%player%", e.Player.Nickname).Replace("%role%", e.Player.Role.Type.ToString());
45+
string entered = l.LogMessages.EnteredMessage.Replace("%player%", e.Player.Nickname).Replace("%role%", e.Player.Role.Type.ToString()).Replace("%steamid%", e.Player.UserId);
4646
HookHelper.AddLogMessage(entered, l.Hook);
4747
if (!e.Player.SessionVariables.ContainsKey($"{e.Player.Role.Type}-time")) e.Player.SessionVariables[$"{e.Player.Role.Type}-time"] = DateTime.Now;
4848
}

OverwatchLogger.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@
2222
<DebugType>full</DebugType>
2323
<Optimize>false</Optimize>
2424
<OutputPath>bin\Debug\</OutputPath>
25-
<DefineConstants>DEBUG;TRACE</DefineConstants>
25+
<DefineConstants>TRACE;DEBUG</DefineConstants>
2626
<ErrorReport>prompt</ErrorReport>
2727
<WarningLevel>4</WarningLevel>
2828
</PropertyGroup>
2929
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
3030
<DebugType>pdbonly</DebugType>
3131
<Optimize>true</Optimize>
3232
<OutputPath>bin\Release\</OutputPath>
33-
<DefineConstants>TRACE</DefineConstants>
33+
<DefineConstants>TRACE;LabApi</DefineConstants>
3434
<ErrorReport>prompt</ErrorReport>
3535
<WarningLevel>4</WarningLevel>
3636
<WeaverConfiguration>

Plugin.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class Plugin: Plugin<Config>
1414

1515
public override Version RequiredExiledVersion { get; } = new Version(9, 0 ,0);
1616

17-
public override Version Version { get; } = new Version(2, 0, 0);
17+
public override Version Version { get; } = new Version(2, 0, 1);
1818

1919
public override bool IgnoreRequiredVersionCheck { get; } = false;
2020

Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@
2929
// Номер сборки
3030
// Редакция
3131
//
32-
[assembly: AssemblyVersion("2.0.0.0")]
33-
[assembly: AssemblyFileVersion("2.0.0.0")]
32+
[assembly: AssemblyVersion("2.0.1.0")]
33+
[assembly: AssemblyFileVersion("2.0.1.0")]

Serelizables/LogMessagesSerelizable.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ namespace OverwatchLogger.Serelizables
55
public class LogMessagesSerelizable
66
{
77
[Description("Log message when entering a specific role mode")]
8-
public string EnteredMessage { get; set; } = "Staff %player% entered to %role%";
8+
public string EnteredMessage { get; set; } = "Staff %player% (%steamid%) entered to %role%";
99
[Description("Log message when exiting a specific role mode")]
10-
public string ExitedMessage { get; set; } = "Staff %player% exited from %role%";
10+
public string ExitedMessage { get; set; } = "Staff %player% (%steamid%) exited from %role%";
1111
[Description("Summary message with the results of using the role")]
1212
public string SummaryInfo { get; set; } = "Round ended, entered roles time count: %summary%";
1313
[Description("View of the line with the total time for the player used N role")]

0 commit comments

Comments
 (0)