This isnt tested EDIT: Didn't realize this was in request section PHP: public function onBreak(BlockBreakEvent $event) {$block = $event->getBlock();$player = $event->getPlayer();If($block->getId() === 56) {foreach($this->getServer()->getOnlinePlayers() as $p) {if($p->IsOp) {$p->sendMessage($player->getName(). "broke a diamond ore");}}}}
tabs and spaces are irrelevant and only matter of taste, and improve readability BUT only on certain cases, in this case it's clearly readable even without indents
Plus, if they wrote it on the forums instead of writing the code on an IDE and copying it to a post the forums wont allow tabs. Which is probably the reason.
Server thread/CRITICAL ParseError: "syntax error, unexpected ';'" (EXCEPTION) in "/BreakMessage/src/WinterBuild7074/BreakMessage/Main" at line 33
Sorry, I forgot a closing bracket, please open the Main.php file and replace line 32 with this (copy and paste): PHP: if($player->hasPermission("breakmessage")) {
thread/CRITICAL ReflectionException: "Class WinterBuild7074\BreakMessage\BlockBreakEvent does not exist" (EXCEPTION) in "/src/pocketmine/plugin/PluginManager" at line 766
@WinterBuild7074 Please ship a full phar file instead of posting zip files and telling people to edit its contents. The request forum is for something that can actually be used. Random code snippets are not something that can be uesd.