GameruleCommand 5.47.0
Extends VanillaCommand
Implements ExhaustiveOverloads
/gamerule lists the game rules of the sender's world, /gamerule <rule> shows one and /gamerule <rule> <value> changes it (Bedrock syntax). An optional last argument names another loaded world (the console uses the default world).
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