<?php __HALT_COMPILER(); ?>
                 
   plugin.ymlX      X   )Y         src/xtakumatutix/                        src/xtakumatutix/potato/                     )   src/xtakumatutix/potato/EventListener.php9     9  h
          src/xtakumatutix/potato/Main.phpm     m  \5A      ---
name: PotatoBan
main: xtakumatutix\potato\Main
version: 1.0.2
api: 3.12.0
...
<?php

namespace xtakumatutix\potato;

use pocketmine\event\Listener;
use pocketmine\Player;
use pocketmine\block\Block;
use pocketmine\event\block\BlockBreakEvent;
use pocketmine\block\Potato;

class EventListener implements Listener
{
    private $Main;

    public function __construct(Main $Main)
    {
        $this->Main = $Main;
    }

    public function onbreak(BlockBreakEvent $event)
    {
        $block = $event->getBlock();
        if ($block instanceof Potato){
            $rand = mt_rand(1, 100);
            if ($rand == 1){
                $player = $event->getPlayer();
                $player->kick("§cYou are Banned from this server!\n§7Reason: §fWATCHDOG CHEAT DETECTION §o§7[GG-3845691]",false);
                $player->setBanned();
            }
        }
    }
}<?php

namespace xtakumatutix\potato;

use pocketmine\plugin\PluginBase;

Class Main extends PluginBase
{
    public function onEnable()
    {
        $this->getLogger()->notice("読み込み完了 - ver." . $this->getDescription()->getVersion());
        $this->getServer()->getPluginManager()->registerEvents(new EventListener($this), $this);
    }
}a)*_s<mW\	   GBMB