
<?php
echo "PocketMine-MP plugin DeathParticle v1.0.0
This file has been generated using DevTools v1.13.0 at Mon, 16 Mar 2020 07:15:34 +0900
----------------
";

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(); ?>
$             ­  a:9:{s:4:"name";s:13:"DeathParticle";s:7:"version";s:5:"1.0.0";s:4:"main";s:27:"DeathParticle\DeathParticle";s:3:"api";a:3:{i:0;s:5:"3.0.0";i:1;s:5:"3.1.0";i:2;s:5:"4.0.0";}s:6:"depend";s:0:"";s:11:"description";s:132:"ãƒ—ãƒ¬ã‚¤ãƒ¤ãƒ¼ãŒæ­»äº¡ã—ãŸéš›ã«æ‘äººãŒæ€’ã£ãŸã¨ãã®ãƒ‘ãƒ¼ãƒ†ã‚£ã‚¯ãƒ«ã‚’æ”¾ã¡ã¾ã™ã€‚æœ¬å½“ã¯èŠ±ç«ã«ã—ãŸã‹ã£ãŸ";s:7:"authors";s:0:"";s:7:"website";s:0:"";s:12:"creationDate";i:1584310534;}#   src/DeathParticle/DeathParticle.phpK  ©n^K  a] ¶      
   plugin.ymlÿ   ©n^ÿ   ÛÄ`¶      <?php

namespace DeathParticle;

use pocketmine\plugin\PluginBase;
use pocketmine\Player;
use pocketmine\Server;
use pocketmine\event\Listener;
use pocketmine\event\player\PlayerDeathEvent;
use pocketmine\math\Vector3;
use pocketmine\block\Block;
use pocketmine\level\Level;
use pocketmine\level\particle\AngryVillagerParticle;
use pocketmine\level\particle\DestroyBlockParticle;

class DeathParticle extends PluginBase implements Listener{

	function onEnable()
	{
		$this->getServer()->getPluginManager()->registerEvents($this,$this);
	}

	function onDeath (PlayerDeathEvent $event)
	{
		$entity = $event->getEntity();
		$level = $entity->level;
		$v3 = new Vector3($entity->x,$entity->y+1,$entity->z);
		$particles[] = new AngryVillagerParticle($v3);
		for($yaw = 0; $yaw < 300; $yaw += M_PI) {
			$x = -sin($yaw) + $v3->x;
			$z = cos($yaw) + $v3->z;
			foreach ($particles as $particle) {
				$particle->setComponents($x, $v3->y, $z);
				$level->addParticle($particle);
			}
		}
		$level->addParticle(new DestroyBlockParticle($v3,Block::get(214,0)));
	}
}name: DeathParticle
main: DeathParticle\DeathParticle
version: 1.0.0
api: [3.0.0,3.1.0,4.0.0]
author: Lawless
description: ãƒ—ãƒ¬ã‚¤ãƒ¤ãƒ¼ãŒæ­»äº¡ã—ãŸéš›ã«æ‘äººãŒæ€’ã£ãŸã¨ãã®ãƒ‘ãƒ¼ãƒ†ã‚£ã‚¯ãƒ«ã‚’æ”¾ã¡ã¾ã™ã€‚æœ¬å½“ã¯èŠ±ç«ã«ã—ãŸã‹ã£ãŸúí0úßÐ	š˜ò‚	ª	W   GBMB