Skip to content

WeatherCommand 5.46.0 ​

class · pocketmine\command\defaults\WeatherCommand · source

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 = 20000000

Longest 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

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.