<?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  \5„A¶      ---
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á<m«‰®W\¹	   GBMB