QtCraft API C++ classes QML types Handbook

QcWeatherCommands Class

/weather (decision E-395): everyone may ask for the weather, operators set it, for a number of seconds or as long as the world's course says (QcWeatherCycle). More...

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

Public Functions

void addTo(QcCommandRegistry &registry)

Detailed Description

With the game rule weatherCycle off the set weather stays until /weather changes it again.

Member Function Documentation

void QcWeatherCommands::addTo(QcCommandRegistry &registry)

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