How to add stone block destruction to an area? Plugin: iProtector by LDX public function onBlockBreak(BlockBreakEvent $event) { $b = $event->getBlock(); $p = $event->getPlayer(); $n = strtolower($p->getName()); if(isset($this->sel1[$n])) { unset($this->sel1[$n]); $this->pos1[$n] = new Vector3($b->getX(),$b->getY(),$b->getZ()); $p->sendMessage("Position 1 set to: (" . $this->pos1[$n]->getX() . ", " . $this->pos1[$n]->getY() . ", " . $this->pos1[$n]->getZ() . ")"); $event->setCancelled(); } else if(isset($this->sel2[$n])) { unset($this->sel2[$n]); $this->pos2[$n] = new Vector3($b->getX(),$b->getY(),$b->getZ()); $p->sendMessage("Position 2 set to: (" . $this->pos2[$n]->getX() . ", " . $this->pos2[$n]->getY() . ", " . $this->pos2[$n]->getZ() . ")"); $event->setCancelled(); } else { if(!$this->canEdit($p,$b)) { $event->setCancelled(); } } }