QtCraft API C++ classes QML types Handbook

QcExperienceCommands Class

/xp (decision E-398), for operators: adds to, sets or shows the experience of a player, in points (the default) or levels. More...

Header: #include <server/commands/QcExperienceCommands.h>

Public Functions

void addTo(QcCommandRegistry &registry)

Detailed Description

"/xp add <player> -5 levels" takes levels away. The client hears of the change at the end of the next step (QcServerExperience::sendChanges).

Member Function Documentation

void QcExperienceCommands::addTo(QcCommandRegistry &registry)

Adds the commands of this group (see the class) to registry.