
<?php
echo "PocketMine-MP plugin GaTAPM v2.0.0
This file has been generated using DevTools v1.14.0 at Sat, 07 Mar 2020 00:11:06 +0800
----------------
";

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(); ?>
t             	  a:9:{s:4:"name";s:6:"GaTAPM";s:7:"version";s:5:"2.0.0";s:4:"main";s:15:"chaca142\GaTAPM";s:3:"api";s:6:"3.11.6";s:6:"depend";s:0:"";s:11:"description";s:30:"Give and Take All Player Money";s:7:"authors";s:0:"";s:7:"website";s:0:"";s:12:"creationDate";i:1583511066;}
   plugin.yml5  vb^5  R…Ú¶         src/chaca142/GaTAPM.phpº  vb^º  [ÚG¶      name: GaTAPM
main: chaca142\GaTAPM
author: chaca142
version: 2.0.0
api: 3.11.6
description: Give and Take All Player Money
commands:
  gapm:
    description: "ã‚ªãƒ³ãƒ©ã‚¤ãƒ³ä¸­ã®ãƒ—ãƒ¬ã‚¤ãƒ¤ãƒ¼ã«ãŠé‡‘ã‚’é…å¸ƒ"
  tapm:
    description: "ã‚ªãƒ³ãƒ©ã‚¤ãƒ³ä¸­ã®ãƒ—ãƒ¬ã‚¤ãƒ¤ãƒ¼ã‹ã‚‰ãŠé‡‘ã‚’æ²¡åŽ"<?php

namespace chaca142;

use pocketmine\Player;
use pocketmine\Server;
use pocketmine\command\CommandSender;
use pocketmine\command\Command;
use pocketmine\utils\Config;
use pocketmine\plugin\PluginBase;
use pocketmine\event\Listener;

use onebone\economyapi\EconomyAPI;
use metowa1227\moneysystem\api\core\API;
use MixCoinSystem\MixCoinSystem;
use MoneyPlugin\MoneyPlugin;
use hayao\main;

class GaTAPM extends PluginBase implements Listener{

    public function onEnable(){
        $this->getServer()->getPluginManager()->registerEvents($this, $this);
        $this->getLogger()->info("Â§aGaTAPMãŒèª­ã¿è¾¼ã¾ã‚Œã¾ã—ãŸ");

        if(!file_exists($this->getDataFolder())){
            mkdir($this->getDataFolder(), 0744, true);
        }
        $this->set = new Config($this->getDataFolder() . "config.yml", Config::YAML, array(
            "Plugin" => "EconomyAPI"
            ##å¿…ãš /reload ã‚’ã—ã¦ãã ã•ã„
        ));
    }

    public function onCommand(CommandSender $sender, Command $command, string $label, array $args):bool{
       if (!$sender->isOp()) {
           $sender->sendMessage("Â§cæ¨©é™ãŒã‚ã‚Šã¾ã›ã‚“");
           return false;
       }else{
           switch ($command->getName()) {
               case "gapm":
                   if (!isset($args[0])){
                       $sender->sendMessage("Â§cãŠé‡‘ã®æ•°ãŒè¨­å®šã•ã‚Œã¦ã„ã¾ã›ã‚“ /gapm <ãŠé‡‘ã®æ•°>");
                       return false;
                   }else{
                       if(!$this->getServer()->getOnlinePlayers()) return false;
                       foreach($this->getServer()->getOnlinePlayers() as $name);
                       $mp = $this->set->get("Plugin");

                       if ($mp == "EconomyAPI"){
                           EconomyAPI::getInstance()->addMoney($name, $args[0]);
                           $this->getServer()->broadcastMessage("Â§aã‚ªãƒ³ãƒ©ã‚¤ãƒ³ä¸­ã®å…¨ãƒ—ãƒ¬ã‚¤ãƒ¤ãƒ¼ã«ï¼„".$args[0]."ã‚’é…ã‚Šã¾ã—ãŸ");
                           return false;
                       }

                       if ($mp == "MixCoinSystem"){
                           MixCoinSystem::getInstance()->PlusCoin($name, $args[0]);
                           $this->getServer()->broadcastMessage("Â§aã‚ªãƒ³ãƒ©ã‚¤ãƒ³ä¸­ã®å…¨ãƒ—ãƒ¬ã‚¤ãƒ¤ãƒ¼ã«ï¼„".$args[0]."ã‚’é…ã‚Šã¾ã—ãŸ");
                           return false;
                       }
                   }
                   return false;
               case "tapm":
                   if (!isset($args[0])){
                       $sender->sendMessage("Â§cãŠé‡‘ã®æ•°ãŒè¨­å®šã•ã‚Œã¦ã„ã¾ã›ã‚“ /tapm <ãŠé‡‘ã®æ•°>");
                       return false;
                   }else{
                       if (!$this->getServer()->getOnlinePlayers()) return false;
                       foreach($this->getServer()->getOnlinePlayers() as $name);
                       $mp = $this->set->get("Plugin");

                       if ($mp == "EconomyAPI"){
                           EconomyAPI::getInstance()->reduceMoney($name, $args[0]);
                           $this->getServer()->broadcastMessage("Â§aã‚ªãƒ³ãƒ©ã‚¤ãƒ³ä¸­ã®å…¨ãƒ—ãƒ¬ã‚¤ãƒ¤ãƒ¼ã‹ã‚‰ï¼„".$args[0]."æ¸›ã‚‰ã—ã¾ã—ãŸ");
                           return false;
                       }

                       if ($mp == "MixCoinSystem"){
                           MixCoinSystem::getInstance()->MinusCoin($name, $args[0]);
                           $this->getServer()->broadcastMessage("Â§aã‚ªãƒ³ãƒ©ã‚¤ãƒ³ä¸­ã®å…¨ãƒ—ãƒ¬ã‚¤ãƒ¤ãƒ¼ã‹ã‚‰ï¼„".$args[0]."æ¸›ã‚‰ã—ã¾ã—ãŸ");
                           return false;
                       }
                   }
           }
       }
     return false;
    }

}NÞŒUÙÓžå³É`ó–­÷   GBMB