mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
Playtime adminflag (#3480)
This commit is contained in:
parent
617680fb87
commit
671eca79c1
2 changed files with 9 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
|||
using Content.Server.Players.PlayTimeTracking;
|
||||
using Content.Server.Players.PlayTimeTracking;
|
||||
using Content.Shared.Administration;
|
||||
using Content.Shared.Players.PlayTimeTracking;
|
||||
using Robust.Server.Player;
|
||||
|
|
@ -6,7 +6,7 @@ using Robust.Shared.Console;
|
|||
|
||||
namespace Content.Server.Administration.Commands;
|
||||
|
||||
[AdminCommand(AdminFlags.Permissions)] // Corvax-DiscordRoles
|
||||
[AdminCommand(AdminFlags.Playtime)] // Corvax-DiscordRoles
|
||||
public sealed class PlayTimeAddOverallCommand : IConsoleCommand
|
||||
{
|
||||
[Dependency] private readonly IPlayerManager _playerManager = default!;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
namespace Content.Shared.Administration
|
||||
namespace Content.Shared.Administration
|
||||
{
|
||||
/// <summary>
|
||||
/// Permissions that admins can have.
|
||||
|
|
@ -124,6 +124,12 @@
|
|||
/// </summary>
|
||||
NameColor = 1 << 21,
|
||||
|
||||
// Corvax-DiscordRoles
|
||||
/// <summary>
|
||||
/// Allows you to edit players playtime.
|
||||
/// </summary>
|
||||
Playtime = 1 << 22,
|
||||
|
||||
/// <summary>
|
||||
/// Dangerous host permissions like scsi.
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue