mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 05:27:38 +03:00
Seperate flag for whitelist commands (#637)
* Update AdminFlags.cs Signed-off-by: Debug <49997488+DebugOk@users.noreply.github.com> * Update WhitelistCommands.cs Signed-off-by: Debug <49997488+DebugOk@users.noreply.github.com> * Update WhitelistCommands.cs Signed-off-by: Debug <49997488+DebugOk@users.noreply.github.com> --------- Signed-off-by: Debug <49997488+DebugOk@users.noreply.github.com>
This commit is contained in:
@@ -11,7 +11,7 @@ using Robust.Shared.Network;
|
||||
|
||||
namespace Content.Server.Whitelist;
|
||||
|
||||
[AdminCommand(AdminFlags.Ban)]
|
||||
[AdminCommand(AdminFlags.Whitelist)] // DeltaV - Custom permission for whitelist
|
||||
public sealed class AddWhitelistCommand : LocalizedCommands
|
||||
{
|
||||
public override string Command => "whitelistadd";
|
||||
@@ -71,7 +71,7 @@ public sealed class AddWhitelistCommand : LocalizedCommands
|
||||
}
|
||||
}
|
||||
|
||||
[AdminCommand(AdminFlags.Ban)]
|
||||
[AdminCommand(AdminFlags.Ban | AdminFlags.Whitelist)] // DeltaV - Custom permission for whitelist. Hopefully this is an or, not an and
|
||||
public sealed class RemoveWhitelistCommand : LocalizedCommands
|
||||
{
|
||||
public override string Command => "whitelistremove";
|
||||
|
||||
@@ -89,6 +89,11 @@
|
||||
/// </summary>
|
||||
EditNotes = 1 << 14,
|
||||
|
||||
/// <summary>
|
||||
/// DeltaV - The ability to whitelist people. Either this permission or +BAN is required for remove.
|
||||
/// </summary>
|
||||
Whitelist = 1 << 15,
|
||||
|
||||
/// <summary>
|
||||
/// Dangerous host permissions like scsi.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user