
<?php
echo "PocketMine-MP plugin NoBlock v1.0.0
This file has been generated using DevTools v1.14.0 at Sun, 19 Jul 2020 08:10:45 +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(); ?>
O             ç   a:9:{s:4:"name";s:7:"NoBlock";s:7:"version";s:5:"1.0.0";s:4:"main";s:12:"NoBlock\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:1595146245;}
   plugin.ymlR    _R   O^%¶         src/NoBlock/main.php©   _©  1õÀ"¶      ---
name: NoBlock
main: NoBlock\main
version: 1.0.0
api: 3.0.0
author: narapon
...<?php

namespace NoBlock;

use pocketmine\event\Listener;
use pocketmine\plugin\PluginBase;
use pocketmine\utils\Config;
use pocketmine\event\block\BlockPlaceEvent;

class main extends pluginBase implements Listener{

    public function onEnable(){
        $this->getServer()->getPluginManager()->registerEvents($this, $this);
        $this->Config = new Config($this->getDataFolder() ."Config.yml", Config::YAML, array(
            "æŒ‡å®šãƒ¯ãƒ¼ãƒ«ãƒ‰æ•°" => 2,
            "world" => "world,worlds"
        ));
    }

    public function block(BlockPlaceEvent $event)
    {
        $player = $event->getPlayer();
        $world = $player->getLevel()->getName();

        $config1 = $this->Config->get("æŒ‡å®šãƒ¯ãƒ¼ãƒ«ãƒ‰æ•°");
        $config2 = $this->Config->get("world");

        if(!$player->isOp()) {

            if ($config1 == 1) {
                if ($world == $config2) {
                    $event->setCancelled();
                    $player->sendPopup("Â§lÂ§cãƒ–ãƒ­ãƒƒã‚¯ã‚’è¨­ç½®ã™ã‚‹æ¨©é™ãŒã‚ã‚Šã¾ã›ã‚“");
                }
            } else {
                $config2 = explode(",", $config2);
                for ($i = 0; $i < $config1; $i++) {
                    if ($world == $config2[$i]) {
                        $event->setCancelled();
                        $player->sendPopup("Â§lÂ§cãƒ–ãƒ­ãƒƒã‚¯ã‚’è¨­ç½®ã™ã‚‹æ¨©é™ãŒã‚ã‚Šã¾ã›ã‚“");
                    }
                }
            }

        }

    }
}±l3 ¬‹²ßA°		©^   GBMB