
<?php
echo "PocketMine-MP plugin AntiTotem v1.0.0
This file has been generated using DevTools v1.14.2 at Sat, 21 Aug 2021 16:56:07 +0900
----------------
Name: AntiTotem
Version: 1.0.0
Main: roi611\\AntiTotem\\Main
Api: 3.0.0
Depend: 
Description: トーテムを無効化します
Authors: 
Website: 
CreationDate: 1629532567
";
__HALT_COMPILER(); ?>
               a:9:{s:4:"name";s:9:"AntiTotem";s:7:"version";s:5:"1.0.0";s:4:"main";s:21:"roi611\AntiTotem\Main";s:3:"api";s:5:"3.0.0";s:6:"depend";s:0:"";s:11:"description";s:33:"トーテムを無効化します";s:7:"authors";s:0:"";s:7:"website";s:0:"";s:12:"creationDate";i:1629532567;}
   plugin.yml    a   -         src/roi611/AntiTotem/Main.phpT   aT  Ӫ      name: AntiTotem
main: roi611\AntiTotem\Main
version: 1.0.0
api: 3.0.0
load: POSTWORLD
author: roi611
description: トーテムを無効化します<?php

namespace roi611\AntiTotem;

use pocketmine\plugin\PluginBase;

use pocketmine\event\Listener;
use pocketmine\event\entity\EntityDamageEvent;

class Main extends PluginBase implements Listener
{

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

    public function onDamage(EntityDamageEvent $source){

        $totemModifier = $source->getModifier(EntityDamageEvent::MODIFIER_TOTEM);
		if($totemModifier < 0){ //Totem prevented death
            $name = $source->getEntity();
            $name->kill();

        }

	}

}-ie.
o\ƃ   GBMB