changed the admin config organization around a bit
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40337
This commit is contained in:
parent
aa5da7bdb2
commit
d351566b25
31
configs/admins.cfg
Normal file
31
configs/admins.cfg
Normal file
@ -0,0 +1,31 @@
|
||||
|
||||
/**
|
||||
* USE THIS SECTION TO DECLARE DETAILED ADMIN PROPERTIES.
|
||||
*
|
||||
* Each admin should have its own "Admin" section, followed by a name.
|
||||
* The name does not have to be unique.
|
||||
*
|
||||
* Available properties: (Anything else is filtered as custom)
|
||||
* "auth" - REQUIRED - Auth method to use. Built-in methods are:
|
||||
* "steam" - Steam based authentication
|
||||
* "name" - Name based authentication
|
||||
* "ip" - IP based authentication
|
||||
* Anything else is treated as custom.
|
||||
*
|
||||
* "identity" - REQUIRED - Identification string, for example, a steamid or name.
|
||||
* "password" - Optional password to use.
|
||||
* "group" - Inherits a set of group permissions.
|
||||
* "flags" - Adds a set of flags.
|
||||
*
|
||||
* Example:
|
||||
"BAILOPAN"
|
||||
{
|
||||
"auth" "steam"
|
||||
"identity" "STEAM_0:1:16"
|
||||
"flags" "abcdef"
|
||||
}
|
||||
*
|
||||
*/
|
||||
Admins
|
||||
{
|
||||
}
|
77
configs/admins_groups.cfg
Normal file
77
configs/admins_groups.cfg
Normal file
@ -0,0 +1,77 @@
|
||||
/**
|
||||
* Use this section to tweak admin permission levels and groupings.
|
||||
* You can also define admin roles in this section.
|
||||
*/
|
||||
Levels
|
||||
{
|
||||
/**
|
||||
* These are the default role flag mappings.
|
||||
* You can assign new letters for custom purposes, however you should
|
||||
* not change the default names, as SourceMod hardcodes these.
|
||||
*/
|
||||
Flags
|
||||
{
|
||||
"reservation" "a"
|
||||
"kick" "b"
|
||||
"ban" "c"
|
||||
"unban" "d"
|
||||
"slay" "e"
|
||||
"changemap" "f"
|
||||
"cvars" "g"
|
||||
"configs" "h"
|
||||
"chat" "i"
|
||||
"vote" "j"
|
||||
"password" "h"
|
||||
"rcon" "i"
|
||||
|
||||
//Custom flags START
|
||||
//Custom flags END
|
||||
|
||||
//Note - root is a magic access flag that grants all permissions.
|
||||
"root" "z"
|
||||
}
|
||||
|
||||
/**
|
||||
* By default, commands are registered with three pieces of information:
|
||||
* 1)Command Name (for example, "csdm_enable")
|
||||
* 2)Command Group Name (for example, "CSDM")
|
||||
* 3)Command Level (for example, "changemap")
|
||||
* You can override the default flags assigned to individual commands or command groups in this way.
|
||||
* To override a group, use the ":" character before the name. Example:
|
||||
* Examples:
|
||||
* ":CSDM" "i" // Override the CSDM group
|
||||
* "csdm_enable" "j" // Override the csdm_enable command
|
||||
* Note that for overrides, order is important. In the above example, csdm_enable overwrites
|
||||
* any setting that csdm_enable previously had.
|
||||
*/
|
||||
Overrides
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
Groups
|
||||
{
|
||||
/**
|
||||
* Allowed properties for a group:
|
||||
*
|
||||
* "flags" - Flag string.
|
||||
* "inherit" - Inherits permissions from another group.
|
||||
* "immunity" - Specifies a group to be immune to. Use "*" for all or "$" for users with no group.
|
||||
* NOTE: No one, even a root user, is immune from other root users.
|
||||
*/
|
||||
"Full Admins"
|
||||
{
|
||||
/**
|
||||
* You can override commands and command groups here.
|
||||
* Specify a command name or group and either "allow" or "deny"
|
||||
* Examples:
|
||||
* ":CSDM" "allow"
|
||||
* "csdm_enable" "deny"
|
||||
*/
|
||||
Commands
|
||||
{
|
||||
}
|
||||
"flags" "abcdefghiz"
|
||||
"immunity" "*"
|
||||
}
|
||||
}
|
@ -2,12 +2,12 @@
|
||||
* READ THIS CAREFULLY! SEE BOTTOM FOR EXAMPLES
|
||||
*
|
||||
* For each admin, you need two settings:
|
||||
* "identity" "permissions"
|
||||
* "identity" "permissions" "password"
|
||||
*
|
||||
* For the Identity, you can use a SteamID, IP address, or Name (the type will be auto-detected).
|
||||
* For the Permissions, you can use a flag string or group (read below), and an optional password.
|
||||
*
|
||||
* There are 26 flags (a-z), and each flag has a specific meaning/role.
|
||||
* There are 13 flags (a-i,z), and each flag has a specific meaning/role.
|
||||
* For example, the "b" flag means "kick permissions."
|
||||
*
|
||||
* You can combine flags into a string like this:
|
||||
@ -29,13 +29,11 @@
|
||||
"rcon" "i" //Use RCON
|
||||
"root" "z" //All permissions
|
||||
*
|
||||
* NOTE: If you specify a - in a flag string, each subsequent flag will be subtracted instead of added.
|
||||
* You can specify a + to "undo" this in the same string.
|
||||
*
|
||||
* Examples:
|
||||
* "STEAM_0:1:16" "bce" //kick, ban, slay for this steam ID
|
||||
* "127.0.0.1" "z" //all permissions for this ip
|
||||
* "BAILOPAN" "mypassword:abc" //name BAILOPAN, password "mypassword" gets reservation, kick, ban
|
||||
* "BAILOPAN" "abc" "Gab3n" //name BAILOPAN, password "Gab3n": gets reservation, kick, ban
|
||||
*
|
||||
***************************************/
|
||||
|
@ -1,124 +0,0 @@
|
||||
|
||||
/**
|
||||
* USE THIS SECTION TO DECLARE DETAILED ADMIN PROPERTIES.
|
||||
*
|
||||
* Each admin should have its own "Admin" section, followed by a name.
|
||||
* The name does not have to be unique.
|
||||
*
|
||||
* Available properties: (Anything else is filtered as custom)
|
||||
* "auth" - REQUIRED - Auth method to use. Built-in methods are:
|
||||
* "steam" - Steam based authentication
|
||||
* "name" - Name based authentication
|
||||
* "ip" - IP based authentication
|
||||
* Anything else is treated as custom.
|
||||
*
|
||||
* "identity" - REQUIRED - Identification string, for example, a steamid or name.
|
||||
* "password" - Optional password to use.
|
||||
* "group" - Inherits a set of group permissions.
|
||||
* "flags" - Inherits a set of flags.
|
||||
* "immunity" - Sets an immunity to a group (* for all, empty string for default users)
|
||||
* CommandGroups - See the Permissions section.
|
||||
* Commands - See the Permissions section.
|
||||
*
|
||||
* Example:
|
||||
"BAILOPAN"
|
||||
{
|
||||
"auth" "steam"
|
||||
"identity" "STEAM_0:1:16"
|
||||
"flags" "abcdef"
|
||||
}
|
||||
*
|
||||
*/
|
||||
Admins
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Use this section to tweak admin permission levels and groupings.
|
||||
* You can also define admin roles in this section.
|
||||
*/
|
||||
Levels
|
||||
{
|
||||
/**
|
||||
* These are the default role flag mappings.
|
||||
* You can assign new letters for custom purposes, however you should
|
||||
* not change the default names, as SourceMod hardcodes these.
|
||||
*/
|
||||
Flags
|
||||
{
|
||||
"reservation" "a"
|
||||
"kick" "b"
|
||||
"ban" "c"
|
||||
"unban" "d"
|
||||
"slay" "e"
|
||||
"changemap" "f"
|
||||
"cvars" "g"
|
||||
"configs" "h"
|
||||
"chat" "i"
|
||||
"votes" "j"
|
||||
"password" "h"
|
||||
"rcon" "i"
|
||||
|
||||
//Custom flags START
|
||||
//Custom flags END
|
||||
|
||||
//Note - root is a magic access flag that grants all permissions.
|
||||
"root" "z"
|
||||
}
|
||||
|
||||
/**
|
||||
* By default, commands are registered with three pieces of information:
|
||||
* 1)Command Name (for example, "csdm_enable")
|
||||
* 2)Command Group Name (for example, "CSDM")
|
||||
* 3)Command Level (for example, "changemap")
|
||||
* You can override the default flags assigned to individual commands or command groups in this way.
|
||||
* You can specify either a one-character, lower-case flag, or a named flag from "Levels."
|
||||
* Examples:
|
||||
* "CSDM" "i"
|
||||
* "csdm_enable" "j"
|
||||
*/
|
||||
Overrides
|
||||
{
|
||||
CommandGroups
|
||||
{
|
||||
}
|
||||
Commands
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Permissions
|
||||
{
|
||||
|
||||
//Lastly, you can define groups for admins. This helps organize large admin lists.
|
||||
Groups
|
||||
{
|
||||
/**
|
||||
* Allowed properties for a group:
|
||||
*
|
||||
* "flags" - Flag string (you can use -/+ as allowed earlier).
|
||||
* "inherit" - Inherits permissions from another group.
|
||||
* "immunity" - Specifies a group to be immune to. Use "*" for all or "" for users with no group.
|
||||
* Note: You can use - to strip immunity from a group, in the case of inheritance.
|
||||
*/
|
||||
"Sample"
|
||||
{
|
||||
/**
|
||||
* You can override commands and command groups here.
|
||||
* Specify a command name or group and either "allow" or "deny"
|
||||
* You can have multiple entries for both sections in order to override/tweak them.
|
||||
* Examples:
|
||||
* "CSDM" "allow"
|
||||
* "csdm_enable" "deny"
|
||||
*/
|
||||
CommandGroups
|
||||
{
|
||||
}
|
||||
Commands
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user