QcMsg::AdminRequest Struct
struct QcMsg::AdminRequestClient -> server: one request of the operator; the server answers with AdminResult (same id) and, for the readers and the changes of a list or setting, the report of that topic. More...
| Header: | #include <common/protocol/QcAdminMessages.h> |
Public Types
| enum class | Kind { Catalogue, Players, Lists, Settings, LogTail, …, Stop } |
Public Variables
Static Public Members
| const quint8 | kindCount |
Detailed Description
Member Type Documentation
enum class AdminRequest::Kind
The requests and their arguments.
| Constant | Value | Description |
|---|---|---|
QcMsg::AdminRequest::Kind::Catalogue | 0 | Asks for AdminCatalogue (no arguments). |
QcMsg::AdminRequest::Kind::Players | 1 | Asks for AdminPlayers (no arguments). |
QcMsg::AdminRequest::Kind::Lists | 2 | Asks for AdminLists (no arguments). |
QcMsg::AdminRequest::Kind::Settings | 3 | Asks for AdminSettings (no arguments). |
QcMsg::AdminRequest::Kind::LogTail | 4 | Asks for the log's tail as AdminLog: level, number of lines (both optional); at most once a second. |
QcMsg::AdminRequest::Kind::Command | 5 | A command line as the operator typed it; the reply lines come back in AdminResult. |
QcMsg::AdminRequest::Kind::Chat | 6 | A chat line to everyone as the server (/say). |
QcMsg::AdminRequest::Kind::Kick | 7 | Kicks a player: name [reason]. |
QcMsg::AdminRequest::Kind::Ban | 8 | Bans a player: name [reason]. |
QcMsg::AdminRequest::Kind::Unban | 9 | Lifts a ban: name. |
QcMsg::AdminRequest::Kind::Op | 10 | Gives a player operator rights: name. |
QcMsg::AdminRequest::Kind::Deop | 11 | Takes a player's operator rights: name. |
QcMsg::AdminRequest::Kind::WhitelistAdd | 12 | Adds a name to the whitelist: name. |
QcMsg::AdminRequest::Kind::WhitelistRemove | 13 | Removes a name from the whitelist: name. |
QcMsg::AdminRequest::Kind::Whitelist | 14 | Switches the whitelist: "on" or "off". |
QcMsg::AdminRequest::Kind::SetRule | 15 | Sets a game rule: name, value. |
QcMsg::AdminRequest::Kind::SetLimit | 16 | Sets a server limit: name, value ("default" resets it). |
QcMsg::AdminRequest::Kind::Save | 17 | Saves the world (no arguments). |
QcMsg::AdminRequest::Kind::Backup | 18 | Makes a backup of the world: [label]. |
QcMsg::AdminRequest::Kind::Stop | 19 | Stops only with the argument "confirm". |
Member Variable Documentation
QStringList AdminRequest::arguments
The arguments of the kind (at most AdminLimits::maxArguments).
quint32 AdminRequest::id
The number the client picked; AdminResult answers with it.
QcMsg::AdminRequest::Kind AdminRequest::kind
What is asked.
const quint8 AdminRequest::kindCount
The number of request kinds.