-
Notifications
You must be signed in to change notification settings - Fork 0
Adding Admins
The admin config file is located in ./halfMod/config/admins.conf. There is an example config in the repo.
Each line beginning with a # is ignored and treated as a comment.
Each line contains one admin definition and consists of two parts; the username of the player and their flags. These two parts are separated by an =.
nigel = z
This will give the player nigel every single flag.
generic_admin = ackq
This will give the player generic_admin the generic admin, chat, kick, and reserved slot flags.
condiment = ketchup
This is perfectly legal and will give the player condiment these flags: cehkptu.
ketchup = condiment
This is also just fine. Player ketchup will receive these flags: cdeimnot. The duplicate n will be ignored.
All admin commands are registered with a specific access flag. Plugins can also use them for other things internally.
There are also regular commands that are registered without any flags and can be run by all players.
CUSTOM flags are here for plugins to use for things that don't quite fit with the other flags.
FLAG_ADMIN (a) = Generic admin
FLAG_BAN (b) = Can ban/unban
FLAG_CHAT (c) = Special chat access
FLAG_CUSTOM1 (d) = Custom1
FLAG_EFFECT (e) = Grant/revoke effects
FLAG_CONFIG (f) = Execute server config files
FLAG_CHANGEWORLD (g) = Can change world
FLAG_CVAR (h) = Can change gamerules and plugin variables
FLAG_INVENTORY (i) = Can access inventory commands
FLAG_CUSTOM2 (j) = Custom2
FLAG_KICK (k) = Can kick players
FLAG_CUSTOM3 (l) = Custom3
FLAG_GAMEMODE (m) = Can change players' gamemode
FLAG_CUSTOM4 (n) = Custom4
FLAG_OPER (o) = Grant/revoke operator status
FLAG_CUSTOM5 (p) = Custom5
FLAG_RSVP (q) = Reserved slot access
FLAG_RCON (r) = Access to server RCON
FLAG_SLAY (s) = Slay/harm players
FLAG_TIME (t) = Can modify the world time
FLAG_UNBAN (u) = Can unban, but not ban
FLAG_VOTE (v) = Can initiate votes
FLAG_WHITELIST (w) = Access to whitelist commands
FLAG_CHEATS (x) = Commands like give, xp, enchant, etc...
FLAG_WEATHER (y) = Can change the weather
FLAG_ROOT (z) = Magic flag which grants all flags