<?php __HALT_COMPILER(); ?>
»                     src/pawarenessc/ls/Main.php  ×GŽ]  Ã›…h¶      	   README.md   ×GŽ]    G¶         .poggit.yml~   ×GŽ]~   z^ÆÒ¶      
   plugin.ymlu   ×GŽ]u   ‡©ö2¶      <?php

namespace pawarenessc\ls;

use pocketmine\plugin\PluginBase;
use pocketmine\event\Listener;
use pocketmine\event\block\BlockBreakEvent;

use pocketmine\Server;
use pocketmine\Player;
use pocketmine\item\Item;

use pocketmine\math\Vector3;

class Main extends pluginBase implements Listener{
	
	public function onEnable(){
		$this->getLogger()->info("=========================");
 		$this->getLogger()->info("LuckyStoneã‚’èª­ã�¿è¾¼ã�¿ã�¾ã�—ã�Ÿ");
 		$this->getLogger()->info("åˆ¶ä½œè€…: PawarenessC");
		$this->getLogger()->info("ãƒ©ã‚¤ã‚»ãƒ³ã‚¹: NYSL Version 0.9982");
		$this->getLogger()->info("http://www.kmonos.net/nysl/");
 		$this->getLogger()->info("ãƒ�ãƒ¼ã‚¸ãƒ§ãƒ³:{$this->getDescription()->getVersion()}");
 		$this->getLogger()->info("=========================");
		$this->getServer()->getPluginManager()->registerEvents($this, $this);
	}
	
	public function onDisable(){
		$this->getLogger()->info("=========================");
 		$this->getLogger()->info("LuckyStoneã‚’å�œæ­¢ã�—ã�¾ã�—ã�Ÿ");
 		$this->getLogger()->info("åˆ¶ä½œè€…: PawarenessC");
 		$this->getLogger()->info("ãƒ�ãƒ¼ã‚¸ãƒ§ãƒ³:{$this->getDescription()->getVersion()}");
 		$this->getLogger()->info("=========================");
	}
	
	/**
 	* @ignoreCancelled
 	*/
	public function onBreak(BlockBreakEvent $event){
		$player = $event->getPlayer();
		$block = $event->getBlock();
		$id = $block->getId();
		$x = $block->x;
		$y = $block->y;
		$z = $block->z;
		$pos = new Vector3($x, $y, $z);
		$level = $player->getLevel();
		if($id == 1){
			if(mt_rand(1,1000) == 1){
				$item = Item::get(265, 0, mt_rand(1,10)); //é‰„
				$level->dropItem($pos, $item);
			}
			
			if(mt_rand(1,10000) == 1){
				$item = Item::get(264, 0, mt_rand(1,10)); //ãƒ€ã‚¤ãƒ¤
				$level->dropItem($pos, $item);
			}
		}
	}
			
			
			
	}
# LuckyStone
--- # Poggit-CI Manifest. Open the CI at https://poggit.pmmp.io/ci/PawarenessC/LuckyStone
branches:
- master
projects: []
...
name: LuckyStone
main: pawarenessc\ls\Main
version: 0.5
api: [4.0.0,3.0.0,3.5.0]
author: PawarenessC
load: POSTWORLD
¢Ý¬†™Þw-¬wm›Y«Ç9`®Ž   GBMB