mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-09 16:12:17 +00:00
[MIRROR] [MAJOR CHANGE] Admin rank datum (#10316)
Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
86d5086018
commit
a57d38624d
@@ -1,46 +1,89 @@
|
||||
########################################################################################
|
||||
# ADMIN RANK DEFINES #
|
||||
# The format of this is very simple. Rank name goes first. #
|
||||
# Rank is CASE-SENSITIVE, all punctuation will be stripped so spaces don't matter. #
|
||||
# Each rank is then followed by keywords with the prefix "+". #
|
||||
# These keywords represent groups of verbs and abilities which are given to that rank. #
|
||||
# +@ (or +prev) is a special shorthand which adds all the rights of the rank above it. #
|
||||
# Ranks with no keywords will just be given the most basic verbs and abilities ~Carn #
|
||||
########################################################################################
|
||||
# PLEASE NOTE: depending on config options, some abilities will be unavailable regardless if you have permission to use them!
|
||||
# ALSO NOTE: this is a WorkInProgress at the moment. Most of this is just arbitrarily thrown in whatever group because LoadsaWork2Do+LittleTime.
|
||||
# I'll be doing more moving around as feedback comes in. So be sure to check the notes after updates.
|
||||
#Admin Rank format is as follows:
|
||||
#
|
||||
#Name = Game Admin
|
||||
#Include = @ ADMIN BAN SOUND
|
||||
#Exclude = FUN
|
||||
#Edit =
|
||||
#
|
||||
#Name will match anything after '=' and must be identical to an admin's rank in admins.txt to be linked but otherwise has no formatting restrictions.
|
||||
#A rank's permissions are defined with keywords that control access to groups of verbs and abilities, they are case-sensitive and separated by a space with no prefix.
|
||||
#To define no permissions for a type, leave it empty.
|
||||
#There are three types of permissions:
|
||||
#Include will give a keyword to a rank.
|
||||
#Exclude removes a keyword and takes precedence over Include.
|
||||
#Edit will allow an admin to edit these permissions on other ranks or change an admin's rank to another if they can edit all the permissions it has.
|
||||
#Edit is only used when SQL-based admin loading is enabled.
|
||||
#If SQL-based admin loading is enabled, ranks and their keywords listed here will be loaded first and override any with the same name loaded from the database.
|
||||
#
|
||||
#The following are valid permission keywords:
|
||||
#ADMIN = general admin tools, verbs etc.
|
||||
#FUN = events, other event-orientated actions. Access to the fun secrets in the secrets panel.
|
||||
#BAN = the ability to ban and unban.
|
||||
#STEALTH = the ability to stealthmin (make yourself appear with a fake name to everyone but other admins).
|
||||
#POSSESS = the ability to possess objects.
|
||||
#REJUVINATE = the ability to heal, respawn, modify damage and use godmode
|
||||
#BUILDMODE = the ability to use buildmode.
|
||||
#SERVER = the ability to restart the server, change the game mode or force a round to start/end.
|
||||
#DEBUG = debug tools used for diagnosing and fixing problems. It's useful to give this to coders so they can investigate problems on a live server.
|
||||
#VAREDIT = everyone may view viewvars/debugvars/whatever you call it. This keyword allows you to actually EDIT those variables.
|
||||
#PERMISSIONS = allows you to promote and/or demote people.
|
||||
#SOUNDS = allows you to upload and play SOUND.
|
||||
#SPAWN = mob transformations, spawning of most atoms including mobs (high-risk atoms, e.g. blackholes, will require the +FUN flag too).
|
||||
#EVENT = a group of verbs that make it possible to run an event, or other badminnery.
|
||||
#EVERYTHING = Simply gives you everything without having to type every flag.
|
||||
#@ = special keyword for the current permission type that adds all the keywords that the preceding rank has of the same type.
|
||||
|
||||
# KEYWORDS:
|
||||
# +ADMIN = general admin tools, verbs etc
|
||||
# +FUN = events, other event-orientated actions. Access to the fun secrets in the secrets panel.
|
||||
# +BAN = the ability to ban, jobban and fullban
|
||||
# +STEALTH = the ability to stealthmin (make yourself appear with a fake name to everyone but other admins
|
||||
# +POSSESS = the ability to possess objects
|
||||
# +REJUV (or +REJUVINATE) = the ability to heal, respawn, modify damage and use godmode
|
||||
# +BUILD (or +BUILDMODE) = the ability to use buildmode
|
||||
# +SERVER = higher-risk admin verbs and abilities, such as those which affect the server configuration.
|
||||
# +DEBUG = debug tools used for diagnosing and fixing problems. It's useful to give this to coders so they can investigate problems on a live server.
|
||||
# +VAREDIT = everyone may view viewvars/debugvars/whatever you call it. This keyword allows you to actually EDIT those variables.
|
||||
# +RIGHTS (or +PERMISSIONS) = allows you to promote and/or demote people.
|
||||
# +SOUND (or +SOUNDS) = allows you to upload and play sounds
|
||||
# +SPAWN (or +CREATE) = mob transformations, spawning of most atoms including mobs (high-risk atoms, e.g. blackholes, will require the +FUN flag too)
|
||||
# +EVENT = a group of verbs that make it possible to run an event, or other badminnery.
|
||||
# +EVERYTHING (or +HOST or +ALL) = Simply gives you everything without having to type every flag
|
||||
Name = Admin Observer
|
||||
Include =
|
||||
Exclude =
|
||||
Edit =
|
||||
|
||||
Admin Observer
|
||||
Moderator +MOD
|
||||
Mentor +MENTOR
|
||||
Name = Moderator
|
||||
Include = MOD
|
||||
Exclude =
|
||||
Edit =
|
||||
|
||||
Admin Candidate +ADMIN
|
||||
Trial Admin +@ +STEALTH +SPAWN +REJUV +VAREDIT +BAN +FUN
|
||||
Admin +@ +POSSESS +BUILDMODE +SERVER
|
||||
Admin Supervisor +@ +SOUNDS +DEBUG +PERMISSIONS
|
||||
Game Master +ADMIN +FUN +POSSESS +REJUV +BUILD +SERVER +DEBUG +VAREDIT +SOUND +SPAWN
|
||||
Head Admin +EVERYTHING
|
||||
Retired Admin +ADMIN +STEALTH
|
||||
Name = Admin Candidate
|
||||
Include = ADMIN
|
||||
Exclude =
|
||||
Edit =
|
||||
|
||||
Host +EVERYTHING
|
||||
Name = Trial Admin
|
||||
Include = @ SPAWN REJUVINATE VAREDIT BAN
|
||||
Exclude =
|
||||
Edit =
|
||||
|
||||
Developer +DEBUG +VAREDIT +SERVER +SPAWN +REJUV +POSSESS +BUILDMODE
|
||||
Dev Mod +@ +MOD
|
||||
Name = Badmin
|
||||
Include = @ POSSESS BUILDMODE SERVER FUN
|
||||
Exclude =
|
||||
Edit =
|
||||
|
||||
Name = Game Admin
|
||||
Include = @ STEALTH SOUNDS DEBUG PERMISSIONS
|
||||
Exclude =
|
||||
Edit =
|
||||
|
||||
Name = Game Master
|
||||
Include = EVERYTHING
|
||||
Exclude =
|
||||
Edit = EVERYTHING
|
||||
|
||||
Name = Head Admin
|
||||
Include = EVERYTHING
|
||||
Exclude =
|
||||
Edit = EVERYTHING
|
||||
|
||||
Name = Retired Admin
|
||||
Include = ADMIN STEALTH
|
||||
Exclude =
|
||||
Edit =
|
||||
|
||||
Name = Host
|
||||
Include = EVERYTHING
|
||||
Exclude =
|
||||
Edit = EVERYTHING
|
||||
|
||||
Name = Developer
|
||||
Include = DEBUG VAREDIT SERVER SPAWN REJUVINATE POSSESS BUILDMODE
|
||||
Exclude =
|
||||
Edit =
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
######################################################################
|
||||
# Basically, ckey goes first. Rank goes after the "-" #
|
||||
# Case is not important for ckey. #
|
||||
# Case IS important for the rank. However punctuation/spaces are not #
|
||||
# Ranks can be anything defined in admin_ranks.txt ~Carn #
|
||||
######################################################################
|
||||
###############################################################################################
|
||||
# Basically, ckey goes first. Rank goes after the "=" #
|
||||
# Case is not important for ckey. #
|
||||
# Case IS important for the rank. #
|
||||
# All punctuation (spaces etc) EXCEPT '-', '_' and '@' will be stripped from rank names. #
|
||||
# Ranks can be anything defined in admin_ranks.txt #
|
||||
# NOTE: if the rank-name cannot be found in admin_ranks.txt, they will not be adminned! ~Carn #
|
||||
# NOTE: syntax was changed to allow hyphenation of ranknames, since spaces are stripped. #
|
||||
###############################################################################################
|
||||
|
||||
# not_a_user - Admin
|
||||
# not_a_user = Admin
|
||||
|
||||
@@ -17,9 +17,21 @@ $include sqlite.txt
|
||||
## Server name: This appears at the top of the screen in-game. In this case it will read "tgstation: station_name" where station_name is the randomly generated name of the station for the round. Remove the # infront of SERVERNAME and replace 'tgstation' with the name of your choice
|
||||
# SERVERNAME spacestation13
|
||||
|
||||
## Add a # infront of this if you want to use the SQL based admin system, the legacy system uses admins.txt. You need to set up your database to use the SQL based system.
|
||||
## Comment this out if you want to use the SQL based admin system, the legacy system uses admins.txt.
|
||||
## You need to set up your database to use the SQL based system.
|
||||
## This flag is automatically enabled if SQL_ENABLED isn't
|
||||
ADMIN_LEGACY_SYSTEM
|
||||
|
||||
##Uncomment this to stop any admins loaded by the legacy system from having their rank edited by the permissions panel
|
||||
#PROTECT_LEGACY_ADMINS
|
||||
|
||||
##Uncomment this to stop any ranks loaded by the legacy system from having their flags edited by the permissions panel
|
||||
#PROTECT_LEGACY_RANKS
|
||||
|
||||
##Uncomment this to have admin ranks only loaded from the legacy admin_ranks.txt
|
||||
##If enabled, each time admins are loaded ranks the database will be updated with the current ranks and their flags
|
||||
#LOAD_LEGACY_RANKS_ONLY
|
||||
|
||||
## Add a # infront of this if you want to use the SQL based banning system. The legacy systems use the files in the data folder. You need to set up your database to use the SQL based system.
|
||||
BAN_LEGACY_SYSTEM
|
||||
|
||||
@@ -596,3 +608,6 @@ JUKEBOX_TRACK_FILES config/jukebox.json
|
||||
# The endpoint for the chat to fetch the chatlogs from (for example, the last 2500 messages on init for the history)
|
||||
# REQUIRES chatlog_database_backend to be enabled
|
||||
#CHATLOG_DATABASE_API_ENDPOINT https://example.com
|
||||
|
||||
## Uncomment to block granting profiling privileges to users with R_DEBUG, for performance purposes
|
||||
#FORBID_ADMIN_PROFILING
|
||||
|
||||
Reference in New Issue
Block a user