
<?php
echo "PocketMine-MP plugin health v1.0.0
This file has been generated using DevTools v1.14.0 at Sun, 19 Jul 2020 06:46:41 +0000
----------------
";

if(extension_loaded("phar")){
	$phar = new \Phar(__FILE__);
	foreach($phar->getMetadata() as $key => $value){
		echo ucfirst($key) . ": " . (is_array($value) ? implode(", ", $value) : $value) . "\n";
	}
}

__HALT_COMPILER(); ?>
L                a:9:{s:4:"name";s:6:"health";s:7:"version";s:5:"1.0.0";s:4:"main";s:11:"health\main";s:3:"api";s:5:"3.0.0";s:6:"depend";s:0:"";s:11:"description";s:0:"";s:7:"authors";s:0:"";s:7:"website";s:0:"";s:12:"creationDate";i:1595141201;}
   plugin.yml`   Q_`            src/health/main.php  Q_  q٩      ---
name: health
main: health\main
version: 1.0.0
api: 3.0.0
load: POSTWORLD
author: narapon
...<?php

namespace health;

use pocketmine\plugin\PluginBase;
use pocketmine\event\Listener;
use pocketmine\event\player\PlayerInteractEvent;

class main extends PluginBase implements Listener{

    public function onEnable(){
        $this->getServer()->getPluginManager()->registerEvents($this,$this);
    }

    public function block(PlayerInteractEvent $event){

        $player = $event->getPlayer();
        $block = $event->getBlock();
        $id = $block->getId();
        $itemid = 86;

        if($id == $itemid) {
            $player->setFood(20);
            $player->sendPopup("§l§6あなたの空腹度を回復しました！");
        }

    }

}*0-d   GBMB