QtCraft API C++ classes QML types Handbook

QcMsg::AdminCatalogue::Command Struct

struct QcMsg::AdminCatalogue::Command

One command or macro. More...

Public Variables

QStringList aliases
quint8 category
QString description
bool macro
QString name
QStringList names
bool needsPlayer
quint8 permission
QString usage

Detailed Description

Member Variable Documentation

QStringList Command::aliases

Other names of the command (at most AdminLimits::maxAliases).

quint8 Command::category

QcCommandCategory (decision E-911).

QString Command::description

What the command does (see the struct).

bool Command::macro

Whether it is a macro of the content rather than a command of the registry.

QString Command::name

The command's name without the slash.

QStringList Command::names

What its <structure> or <biome> takes in this world (QcCommandSpec::names).

bool Command::needsPlayer

Whether the command runs only for players (the console gets a refusal).

quint8 Command::permission

QcPermission: 0 player, 1 operator, 2 console.

QString Command::usage

The usage line (see the struct).