Правки
This commit is contained in:
@@ -13,7 +13,6 @@
|
||||
<Nullable>enable</Nullable>
|
||||
<ServerGarbageCollection>true</ServerGarbageCollection>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'" />
|
||||
<ItemGroup>
|
||||
<PackageReference Include="JetBrains.Annotations" PrivateAssets="All" />
|
||||
<PackageReference Include="NetCoreServer" />
|
||||
|
||||
@@ -2,19 +2,20 @@ using Content.Shared._White.Administration;
|
||||
using Robust.Server.Player;
|
||||
using Content.Server.Players.PlayTimeTracking;
|
||||
|
||||
|
||||
namespace Content.Server._White.Administration;
|
||||
|
||||
public sealed class HoursPanelSystem : EntitySystem
|
||||
{
|
||||
[Dependency] private readonly IPlayerManager _playerManager = default!;
|
||||
[Dependency] private readonly IPlayTimeTrackingManager _playTimeTracking = default!;
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
|
||||
SubscribeNetworkEvent<HoursPanelMessageToServer>(OnHoursPanelMessage);
|
||||
}
|
||||
|
||||
private void OnHoursPanelMessage(HoursPanelMessageToServer message, EntitySessionEventArgs eventArgs)
|
||||
{
|
||||
if (!_playerManager.TryGetSessionByUsername(message.PlayerCKey, out var player))
|
||||
|
||||
Reference in New Issue
Block a user