public function onActivate(Item $item, Player $player = null) { if ($player instanceof Player) { return true; } else { return parent::onActivate($item, $player); } }
public function __construct($meta = 0) { parent::__construct(self::WOOD_DOOR_BLOCK, $meta, "Wood Door Block"); $this->isActivable = true; $this->hardness = 15; }
public function __construct($meta = 0) { parent::__construct(self::IRON_DOOR_BLOCK, $meta, "Iron Door Block"); //$this->isActivable = true; $this->hardness = 25; }