Skip to content

GameMasterBlocks 5.47.0 ​

final class · pocketmine\block\utils\GameMasterBlocks · source

Structure blocks and jigsaw blocks are "game master" blocks: only operators in creative mode may place them, open their screens or edit them, like vanilla.

Methods ​

canUse() ​

php
public static function canUse(\pocketmine\player\Player $player) : bool

isGameMasterBlock() ​

php
public static function isGameMasterBlock(\pocketmine\block\Block $block) : bool

Whether only players who self::canUse() game master blocks may break the block: command, structure and jigsaw blocks (vanilla game master blocks), and the allow, deny and border blocks that share their placement rule.

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