mc op
Manage the operators: players granted server commands. Operators may join regardless of the allow list. See the Players guide for how the lists reach the server.
mc op add
mc op add [OPTIONS] <NAME>...
Makes players operators, or changes the settings of players who already are, with a warning. Player names are looked up to make sure the account exists and are recorded with the account’s own casing.
When the instance is running and its remote console is reachable, a new operator with the default settings is applied immediately. A custom level or the player limit bypass cannot be applied live and takes effect at the next restart, which is reported with a warning.
Every player named in one command gets the same settings.
mc op add Notch
mc op add jeb_ Dinnerbone --level 2 --bypass-player-limit
Options
--level <LEVEL>— the permission level, from1to4. Defaults to the server’sop-permission-levelproperty, which is4unless set in thepropertiesblock of theserversection.--bypass-player-limit— let the operator join when the server is full.--manifest-path <PATH>— path tomc.kdl. Defaults to./mc.kdl.--lockfile-path <PATH>— path tomc.lock. Defaults to./mc.lock.
mc op remove
mc op remove [OPTIONS] <NAME>...
Removes operators. A player who is not an operator is skipped with a warning.
mc op remove Notch
Options
--manifest-path <PATH>— path tomc.kdl. Defaults to./mc.kdl.--lockfile-path <PATH>— path tomc.lock. Defaults to./mc.lock.
mc op list
mc op list [OPTIONS]
Prints the operators, one per line with their effective permission level.
Options
--manifest-path <PATH>— path tomc.kdl. Defaults to./mc.kdl.--lockfile-path <PATH>— path tomc.lock. Defaults to./mc.lock.