You barely waited for 5 minutes. Anyways check plugin MockingBird. I think that it is capable of doing that.
önce bunun kodunu görmemiz gerekiyor, ancak blockbreak sınıfını miras alan bir sınıf oluşturmanıza ve çimeni her kırdığınızda config olarak kaydetmenize yardımcı olacağım
Main: PHP: <?phpnamespace test;use pocketmine\plugin\PluginBase;use pocketmine\utils\Config;use pocketmine\event\BlockBreakEvent;use pocketmine\command\ConsoleCommandSender;class Main extends PluginBase implements Listener { public function onEnable() { $this->config = new Config($this->getDataFolder()."myconfig.yml", Config:YAML, array()); } public function onBreak(BlockBreakEvent $event) { $block = $event->getBlock(); $player = $event->getPlayer(); $this->config->setNested($player->getName(), ($this->config->getNested($player->getName()) ?? 0)+1); $this->config->save(); $this->config->reload(); if(($this->config->getNested($player->getName()) ?? 0) > 200) { $player->sendMessage("you earned 1 diamond for digging 200 blocks."); $this->getServer()->dispatchCommand(new ConsoleCommandSender(), "give " . $player->getName() . " diamond 1"); } }}