* Change BanExemption command to AdminFlags.Ban permissions * Change LOOC to check for Moderator permission * Change ListVerbs from Admin to Debug AdminFlags * Change RunVerbAs from Admin to Fun AdminFlags * More permission changes * Change GhostKick to Moderator perm * Clean up command perms * fuck --------- Co-authored-by: ShadowCommander <10494922+ShadowCommander@users.noreply.github.com>
133 lines
3.2 KiB
C#
133 lines
3.2 KiB
C#
namespace Content.Shared.Administration
|
|
{
|
|
/// <summary>
|
|
/// Permissions that admins can have.
|
|
/// </summary>
|
|
[Flags]
|
|
public enum AdminFlags : uint
|
|
{
|
|
None = 0,
|
|
|
|
/// <summary>
|
|
/// Basic admin verbs.
|
|
/// </summary>
|
|
Admin = 1 << 0,
|
|
|
|
/// <summary>
|
|
/// Ability to ban people.
|
|
/// </summary>
|
|
Ban = 1 << 1,
|
|
|
|
/// <summary>
|
|
/// Debug commands for coders.
|
|
/// </summary>
|
|
Debug = 1 << 2,
|
|
|
|
/// <summary>
|
|
/// !!FUN!!
|
|
/// This is stuff that trial administrators shouldn't quite have access to yet, e.g. for running events.
|
|
/// </summary>
|
|
Fun = 1 << 3,
|
|
|
|
/// <summary>
|
|
/// Ability to edit permissions for other administrators.
|
|
/// </summary>
|
|
Permissions = 1 << 4,
|
|
|
|
/// <summary>
|
|
/// Ability to control the server like restart it or change the round type.
|
|
/// </summary>
|
|
Server = 1 << 5,
|
|
|
|
/// <summary>
|
|
/// Ability to spawn stuff in.
|
|
/// </summary>
|
|
Spawn = 1 << 6,
|
|
|
|
/// <summary>
|
|
/// Ability to use VV.
|
|
/// </summary>
|
|
VarEdit = 1 << 7,
|
|
|
|
/// <summary>
|
|
/// Large mapping operations.
|
|
/// </summary>
|
|
Mapping = 1 << 8,
|
|
|
|
/// <summary>
|
|
/// Makes you british.
|
|
/// </summary>
|
|
//Piss = 1 << 9,
|
|
|
|
/// <summary>
|
|
/// Lets you view admin logs.
|
|
/// </summary>
|
|
Logs = 1 << 9,
|
|
|
|
/// <summary>
|
|
/// Lets you modify the round (forcemap, loadgamemap, etc)
|
|
/// </summary>
|
|
Round = 1 << 10,
|
|
|
|
/// <summary>
|
|
/// Lets you use BQL queries.
|
|
/// </summary>
|
|
Query = 1 << 11,
|
|
|
|
/// <summary>
|
|
/// Lets you use the admin help system.
|
|
/// </summary>
|
|
Adminhelp = 1 << 12,
|
|
|
|
/// <summary>
|
|
/// Lets you view admin notes.
|
|
/// </summary>
|
|
ViewNotes = 1 << 13,
|
|
|
|
/// <summary>
|
|
/// Lets you create, edit and delete admin notes.
|
|
/// </summary>
|
|
EditNotes = 1 << 14,
|
|
|
|
/// <summary>
|
|
/// Lets you Massban, on SS14.Admin
|
|
/// </summary>
|
|
MassBan = 1 << 15,
|
|
|
|
/// <summary>
|
|
/// Allows you to remain hidden from adminwho except to other admins with this flag.
|
|
/// </summary>
|
|
Stealth = 1 << 16,
|
|
|
|
///<summary>
|
|
/// Allows you to use Admin chat
|
|
///</summary>
|
|
Adminchat = 1 << 17,
|
|
|
|
///<summary>
|
|
/// Permits the visibility of Pii in game and on SS14 Admin
|
|
///</summary>
|
|
Pii = 1 << 18,
|
|
|
|
/// <summary>
|
|
/// Lets you take moderator actions on the game server.
|
|
/// </summary>
|
|
Moderator = 1 << 19,
|
|
|
|
/// <summary>
|
|
/// Lets you check currently online admins.
|
|
/// </summary>
|
|
AdminWho = 1 << 20,
|
|
|
|
/// <summary>
|
|
/// Lets you set the color of your OOC name.
|
|
/// </summary>
|
|
NameColor = 1 << 21,
|
|
|
|
/// <summary>
|
|
/// Dangerous host permissions like scsi.
|
|
/// </summary>
|
|
Host = 1u << 31,
|
|
}
|
|
}
|