
<?php
echo "PocketMine-MP plugin NoShootBow v1
This file has been generated using DevTools v1.13.0 at Sat, 23 Nov 2019 05:50:15 +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:10:"NoShootBow";s:7:"version";i:1;s:4:"main";s:11:"yurisi\main";s:3:"api";a:3:{i:0;s:5:"1.0.0";i:1;s:5:"2.0.0";i:2;s:5:"3.0.0";}s:6:"depend";s:0:"";s:11:"description";s:11:"kimotiiiiii";s:7:"authors";s:0:"";s:7:"website";s:0:"";s:12:"creationDate";i:1574455815;}
   plugin.ymls   J]s   FӰ         src/yurisi/EventListener.php  J]  4Jn         src/yurisi/main.php	  J]	  nض      name: NoShootBow
main: yurisi\main
version: 1
api: [1.0.0,2.0.0,3.0.0]
author: yurisi
description: kimotiiiiii<?php
namespace yurisi;

use pocketmine\Player;
use pocketmine\event\entity\EntityShootBowEvent;
use pocketmine\event\Listener;

class EventListener implements Listener{
        private $main;

   public function __construct(main $main)
        {
            $this->main = $main;
        }

   public function onShoot(EntityShootBowEvent $event) {
	$pworld=$event->getEntity()->getLevel();
	$world=$this->main->config->get("WORLD");
	if(strpos($world,',') === false){
		$world=$this->main->getServer()->getLevelByName($world);
		if($pworld==$world){
			$event->setCancelled();
			$event->getEntity()->sendMessage("[{$this->main->plugin}]§4許可エリアで撃てるようになります");
		}
	}else{
		$worlds=explode(",", $world);
		foreach($worlds as $wd){
			$world=$this->main->getServer()->getLevelByName($wd);
			if($pworld==$world){
				$event->setCancelled();
				$event->getEntity()->sendMessage("[{$this->main->plugin}]§4許可エリアで撃てるようになります");
			}
		}
	}
   }
}<?php

namespace yurisi;

use pocketmine\Server;

use pocketmine\plugin\PluginBase;

use pocketmine\utils\Config;

use pocketmine\event\Listener;

class main extends PluginBase implements Listener{

   public $plugin= "NoShootBow" ;

   public function onEnable() {
	$this->getServer()->getPluginManager()->registerEvents(new EventListener($this), $this);
	$this->getLogger()->info("{$this->plugin}を起動しました。");
	if(!file_exists($this->getDataFolder())){
	mkdir($this->getDataFolder(), 0777);
	}
	$this->config = new Config($this->getDataFolder() . "option.yml", Config::YAML ,array(
		"WORLD"=>"world"
	));
   }
   public function onDisable() {
		$this->getLogger()->info("{$this->plugin}を正常に終了しました。");
   }
}
g{v
B   GBMB