Skip to content

GameruleCommand 5.47.0 ​

class · pocketmine\command\defaults\GameruleCommand · source

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

VanillaMine is a fork of PocketMine-MP. Not affiliated with the PMMP team or Mojang.