Skip to content

Commit a65de7b

Browse files
committed
feat: Enhance GM commands configuration with per-account overrides and default settings
1 parent 7514e2f commit a65de7b

File tree

3 files changed

+472
-41
lines changed

3 files changed

+472
-41
lines changed

conf/mod_gm_commands.conf.dist

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,42 @@ GmCommandsModule.Enable = 1
1818

1919
#
2020
# GmCommandsModule.AccountIds
21-
# Description: Allow the specified accounts to use commands. Separated by comma
22-
#
21+
# Description: Comma separated list of account identifiers that should be managed by this module.
22+
# Each listed account can optionally define a custom GM level or custom command list.
2323
#
2424

2525
GmCommandsModule.AccountIds = ""
2626

2727
#
28+
# GmCommandsModule.DefaultLevel
29+
# Description: Default GM level assigned to managed accounts that do not define their own level.
30+
# The value is clamped between SEC_PLAYER (0) and SEC_ADMINISTRATOR (3).
31+
# Default: 0 - SEC_PLAYER
2832
#
29-
# GmCommandsModule.AllowedCommands
30-
# Description: Allow the specified commands to be used. Separated by comma.
33+
34+
GmCommandsModule.DefaultLevel = 0
35+
3136
#
37+
# GmCommandsModule.DefaultCommands
38+
# Description: Default comma separated list of commands (case-insensitive) allowed to managed accounts
39+
# when a specific command list is not defined for the account. Commands that require
40+
# security level 0 are always allowed.
41+
# Note: The legacy key `GmCommandsModule.AllowedCommands` is still recognised as a fallback.
42+
# Default: ""
3243
#
3344

34-
GmCommandsModule.AllowedCommands = ""
45+
GmCommandsModule.DefaultCommands = ""
46+
47+
#
48+
# Per-account overrides
49+
#
50+
# GmCommandsModule.Account.<AccountId>.Level
51+
# Description: Override the GM level for the specified account id.
52+
# Omit this entry to use `GmCommandsModule.DefaultLevel`.
53+
# Example: GmCommandsModule.Account.42.Level = 2
54+
#
55+
# GmCommandsModule.Account.<AccountId>.Commands
56+
# Description: Override the allowed commands for the specified account id. Provide a comma
57+
# separated, case-insensitive list. Leave unset to inherit `GmCommandsModule.DefaultCommands`.
58+
# Example: GmCommandsModule.Account.42.Commands = "gm, gm visible, account"
59+
#

0 commit comments

Comments
 (0)