WeatherCommand 5.46.0
Extends VanillaCommand
Implements ExhaustiveOverloads
/weather <clear|rain|thunder> [duration] and /weather query (Bedrock syntax; the duration is in ticks, random 6000-18000 if omitted). Changes the weather of the sender's world (the default world from the console).
Constants
MAX_DURATION
php
public const MAX_DURATION = 20000000Longest accepted duration (Bedrock caps it at 1000000 seconds).
Methods
__construct()
php
public function __construct()execute()
php
public function execute(\pocketmine\command\CommandSender $sender, string $commandLabel, array $args)getOverloads()
php
public function getOverloads() : array