Skip to content

TimeCommand ​

class · pocketmine\command\defaults\TimeCommand · source

Extends VanillaCommand
Implements ExhaustiveOverloads

Bedrock syntax: /time add <amount>, /time set <amount|day|night|noon|midnight|sunrise|sunset>, /time query <daytime|gametime|day>. PocketMine also has /time start and /time stop, and /time query without a value (the world time).

Methods ​

__construct() ​

php
public function __construct()

execute() ​

php
public function execute(\pocketmine\command\CommandSender $sender, string $commandLabel, array $args)

getOverloads() 5.46.0 ​

php
public function getOverloads() : array

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