<?php namespace test; use pocketmine\plugin\PluginBase; use pocketmine\event\Listener; use pocketmine\event\player\PlayerMoveEvent; use pocketmine\world\World; use pocketmine\math\Vector3; class test extends PluginBase implements Listener{ public function onEnable(): void { $this->getLogger()->info('Я запустился!'); $this->getServer()->getPluginManager()->registerEvents($this, $this); } public function Tap(PlayerMoveEvent $e, World $w): bool{ $p = $e->getPlayer(); $locate = $e->getFrom(); $ex = $locate->x; $ey = $locate->y; $ez = $locate->z; $ey--; $vector = new Vector3($ex, $ey, $ez); $block = $w->getBlock($vector); $p->SendMessage($block); return true; } }