PHP: public function onPlayerInteract(PlayerInteractEvent $e){ if($e->getBlock() instanceof Sign){ }} Note: You must implement pocketmine\event\Listener and register the event using the PluginManager.
I believer tattoo know how to use Events right? Then use @Sergey_D's code, and inside that code make what you want to do
Here is an example on how to use events: https://github.com/LegendOfMCPE/EssentialsPE/blob/master/src/EssentialsPE/Events/EventHandler.php
Just saying it doesnt work doesnt help us in helping you. Be more specific, is there an error message in the console, and if so, what is it? And paste your script's code, please .