public function onActivate(Item $item, Player $player = null) { if ($player instanceof Player) { if ($player->getServer()->limitedCreative and $player->isCreative()) { return true; } $player->craftingType = Player::CRAFTING_BIG; } return true; }