<?php echo "Altay plugin AuthenticationSystem v1.0.0\nThis file has been generated using Turanic at Fri, 16 Nov 2018 00:34:16 +1030.\n----------------\n";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(); ?>
             H  a:9:{s:4:"name";s:20:"AuthenticationSystem";s:7:"version";s:5:"1.0.0";s:4:"main";s:25:"AuthenticationSystem\main";s:3:"api";a:2:{i:0;s:5:"3.0.0";i:1;s:5:"4.0.0";}s:6:"depend";a:0:{}s:11:"description";s:0:"";s:7:"authors";a:1:{i:0;s:34:"まっちだよ～(｡･ω･｡)";}s:7:"website";s:0:"";s:12:"creationDate";i:1542290656;}
   plugin.yml   |[         )   src/AuthenticationSystem/CallbackTask.php  |[  W      !   src/AuthenticationSystem/main.php&  |[&  xӶ      name: AuthenticationSystem
main: AuthenticationSystem\main
version: 1.0.0
api:
  - 3.0.0
  - 4.0.0
author: まっちだよ～(｡･ω･｡)

commands:
  as:
    description: §l§6認証システム
    usege: /as<?php
/*
 *
 *  ____            _        _   __  __ _                  __  __ ____
 * |  _ \ ___   ___| | _____| |_|  \/  (_)_ __   ___      |  \/  |  _ \
 * | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
 * |  __/ (_) | (__|   <  __/ |_| |  | | | | | |  __/_____| |  | |  __/
 * |_|   \___/ \___|_|\_\___|\__|_|  |_|_|_| |_|\___|     |_|  |_|_|
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * @author PocketMine Team
 * @link http://www.pocketmine.net/
 *
 *
*/
declare(strict_types=1);
namespace AuthenticationSystem;
/**
 * Allows the creation of simple callbacks with extra data
 * The last parameter in the callback will be this object
 *
 * If you want to do a task in a Plugin, consider extending PluginTask to your needs
 *
 */
class CallbackTask extends \pocketmine\scheduler\Task{
	/** @var callable */
	protected $callable;
	/** @var array */
	protected $args;
	/**
	 * @param callable $callable
	 * @param array    $args
	 */
	public function __construct(callable $callable, array $args = []){
		$this->callable = $callable;
		$this->args = $args;
	}
	/**
	 * @return callable
	 */
	public function getCallable() : callable{
		return $this->callable;
	}
	public function onRun(int $currentTicks){
		$c = $this->callable;
		$args = $this->args;
		$c(...$args);
	}
}<?php namespace AuthenticationSystem;${"G\x4c\x4f\x42AL\x53"}["\x76n\x6a\x67oi\x6cjo"]="\x72e\x73u\x6ct";${"GL\x4f\x42\x41\x4cS"}["\x66o\x6a\x6e\x67g\x67\x69\x65o\x61\x6e"]="\x43on\x66\x69\x67\x43\x6f\x64e";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6e\x74\x6f\x71\x6a\x62bh"]="\x69\x64";${"G\x4c\x4f\x42\x41\x4c\x53"}["\x6b\x62\x6b\x6e\x6f\x6ayc\x71"]="\x70\x6b";${"GL\x4f\x42\x41L\x53"}["t\x73\x6e\x73\x7ad\x71w"]="\x61\x72\x67s";${"\x47LO\x42\x41\x4c\x53"}["j\x6ec\x6e\x69\x66\x76\x62"]="\x64\x61t\x61";${"\x47\x4cOB\x41\x4c\x53"}["\x70d\x79i\x65\x62\x72"]="\x6e\x61\x6d\x65";${"G\x4cOB\x41L\x53"}["\x70\x68xb\x6bg\x70"]="\x70l\x61y\x65\x72";${"G\x4cO\x42A\x4c\x53"}["t\x63a\x64\x69\x69\x72ff"]="\x63o\x64\x65";use pocketmine\command\Command;use pocketmine\command\CommandSender;use pocketmine\plugin\PluginBase;use pocketmine\event\Listener;use pocketmine\Server;use pocketmine\Player;use pocketmine\event\player\PlayerJoinEvent;use pocketmine\utils\Config;use pocketmine\network\mcpe\protocol\ModalFormResponsePacket;use pocketmine\network\mcpe\protocol\ModalFormRequestPacket;use pocketmine\event\server\DataPacketReceiveEvent;use pocketmine\scheduler\Task;use AuthenticationSystem\CallbackTask;class Main extends PluginBase implements Listener{public function onEnable(){$this->getScheduler()->scheduleDelayedTask(new CallbackTask([$this,"St\x61r\x74"],[]),5);$this->config=new Config($this->getDataFolder()."con\x66i\x67.ym\x6c",Config::YAML);$dqpwbci="\x63od\x65";$this->code=new Config($this->getDataFolder()."c\x6f\x64\x65.\x79ml",Config::YAML);${${"GL\x4f\x42A\x4c\x53"}["\x74\x63\x61\x64\x69\x69\x72\x66\x66"]}=$this->code->get("コード");if(empty(${$dqpwbci})){$this->code->set("コード","\x30\x300\x300\x30");$this->code->save();}$this->getServer()->getPluginManager()->registerEvents($this,$this);}public function onDisable(){$this->getLogger()->info("§c[終了]\x20§b\x41uthe\x6et\x69\x63a\x74\x69on\x20§aを終了しています...");}public function onJoin(PlayerJoinEvent$event){${${"\x47\x4c\x4fBAL\x53"}["\x70\x68\x78\x62\x6bg\x70"]}=$event->getPlayer();${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x70\x64y\x69\x65\x62\x72"]}=$player->getName();if(!$this->config->exists(${${"\x47L\x4f\x42\x41\x4cS"}["p\x64\x79\x69\x65b\x72"]})){$player->setImmobile(true);${${"\x47\x4c\x4f\x42\x41L\x53"}["\x6a\x6e\x63nifv\x62"]}=["\x74y\x70e"=>"c\x75s\x74\x6f\x6d_fo\x72m","tit\x6ce"=>"§\x6c§8認証システム","con\x74en\x74"=>[["\x74\x79\x70e"=>"label","\x74\x65xt"=>"§l§\x66認証コードを入力してください。"],["\x74\x79pe"=>"\x69n\x70ut","text"=>"§\x6c§f認証コード","p\x6c\x61c\x65hol\x64er"=>"","\x64\x65f\x61ult"=>""]]];$this->createWindow(${${"\x47\x4c\x4f\x42A\x4cS"}["p\x68x\x62kg\x70"]},${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x6a\x6e\x63\x6e\x69\x66\x76\x62"]},647819);}else{$player->sendMessage("§\x6c§\x65[§\x62S\x79s\x74\x65\x6d§\x65] §a認証されています。");}}public function onCommand(CommandSender$sender,Command$command,string$label,array$args):bool{$qpncnhr="\x6ca\x62\x65l";if(${$qpncnhr}==="\x61s"){if($sender->isOp()){${"\x47\x4cO\x42\x41\x4cS"}["\x77\x6f\x74\x6fy\x75\x76\x75"]="\x61\x72gs";${"\x47\x4cO\x42\x41\x4c\x53"}["\x71\x6b\x61\x7atf\x78\x6by\x6b\x74"]="\x61\x72\x67s";if(!isset(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x74s\x6e\x73\x7a\x64q\x77"]}[0])){$sender->sendMessage("§l§e[§\x62\x53\x79s\x74\x65\x6d§e]\n§\x6c§a/as ad\x64\x20\x3c名前>   §6\x3e\x3e\x3e 認証済みにします。\n§l§a/as \x72\x65\x6dove <名前\x3e\x20\x20\x20§\x36\x3e\x3e\x3e 未認証にします。\n§l§a/\x61s\x20c\x6fde\x20\x3cコード> \x20\x20§6>\x3e\x3e\x20認証コードを設定します。");return true;}elseif(${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x74\x73n\x73\x7a\x64\x71\x77"]}[0]=="\x61\x64d"){if(!isset(${${"\x47\x4cO\x42\x41\x4c\x53"}["\x74\x73ns\x7adqw"]}[1])){$sender->sendMessage("§l§e[§\x62S\x79ste\x6d§e]\n§l§\x61/a\x73 \x61\x64\x64\x20<名前> \x20 §6\x3e>\x3e 認証済みにします。\n§\x6c§a/as \x72\x65m\x6fve <名前>\x20\x20 §\x36>\x3e> 未認証にします。\n§\x6c§a/as \x63od\x65\x20<コード\x3e\x20 \x20§6>\x3e\x3e\x20認証コードを設定します。");return true;}else{${"\x47\x4c\x4f\x42A\x4c\x53"}["\x6f\x65\x64\x70\x6evw\x71\x70\x77b"]="a\x72\x67\x73";$this->config->set(${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x74snsz\x64\x71w"]}[1],"",true);$this->config->save();$sender->sendMessage("§\x6c§\x65[§bS\x79\x73te\x6d§e] §d".${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x6f\x65\x64pn\x76\x77q\x70\x77\x62"]}[1]." §aを§\x65認証済み§aにしました。");return true;}}elseif(${${"\x47\x4cO\x42\x41\x4c\x53"}["\x77\x6f\x74\x6f\x79\x75\x76\x75"]}[0]=="\x72\x65mo\x76\x65"){${"\x47\x4c\x4f\x42\x41L\x53"}["\x72\x79\x61\x65emn\x65"]="\x61\x72g\x73";if(!isset(${${"\x47\x4c\x4f\x42A\x4cS"}["\x72y\x61e\x65\x6d\x6e\x65"]}[1])){$sender->sendMessage("§\x6c§e[§\x62\x53\x79s\x74\x65\x6d§\x65]\n§\x6c§a/a\x73 \x61dd \x3c名前\x3e\x20 \x20§\x36>\x3e> 認証済みにします。\n§l§\x61/a\x73\x20\x72\x65move\x20\x3c名前>   §\x36>\x3e\x3e\x20未認証にします。\n§\x6c§a/\x61\x73 c\x6fde <コード>\x20\x20 §6\x3e>\x3e\x20認証コードを設定します。");return true;}else{$kdennwidsgc="\x61\x72\x67\x73";$this->config->remove(${$kdennwidsgc}[1],"",true);$this->config->save();$sender->sendMessage("§l§\x65[§\x62Sys\x74\x65\x6d§e] §d".${${"\x47LO\x42\x41\x4c\x53"}["t\x73\x6e\x73\x7a\x64\x71w"]}[1]."\x20§aを§\x65未認証§aにしました。");return true;}}elseif(${${"G\x4cOB\x41\x4cS"}["q\x6b\x61\x7a\x74f\x78k\x79\x6b\x74"]}[0]=="\x63\x6f\x64e"){if(!isset(${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x74\x73n\x73zd\x71w"]}[1])){$sender->sendMessage("§l§e[§b\x53\x79st\x65\x6d§\x65]\n§\x6c§a/\x61s a\x64d <名前>\x20\x20\x20§6>\x3e>\x20認証済みにします。\n§\x6c§a/\x61s\x20r\x65\x6d\x6f\x76\x65\x20<名前\x3e\x20  §\x36>\x3e\x3e\x20未認証にします。\n§\x6c§a/\x61s c\x6fde\x20\x3cコード>\x20 \x20§\x36>\x3e> 認証コードを設定します。");return true;}else{$this->code->remove("コード");$this->code->set("コード",${${"G\x4c\x4f\x42A\x4c\x53"}["\x74\x73n\x73\x7a\x64\x71w"]}[1]);${"G\x4c\x4f\x42\x41\x4c\x53"}["\x69\x79y\x66\x79\x65\x68txsl"]="\x61r\x67\x73";$this->code->save();$sender->sendMessage("§l§e[§\x62\x53y\x73\x74em§e] §d認証コード§\x61が§\x65 ".${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x74\x73\x6esz\x64\x71\x77"]}[1]."\x20§aに変更されました。");$this->getLogger()->notice("§\x65認証コード§f: §b".${${"GL\x4f\x42ALS"}["\x69y\x79\x66\x79e\x68t\x78s\x6c"]}[1]);return true;}}else{$sender->sendMessage("§\x6c§e[§bSyste\x6d§\x65]\n§l§\x61/as\x20a\x64d <名前\x3e\x20 \x20§6>>> 認証済みにします。\n§\x6c§\x61/\x61\x73\x20\x72em\x6fv\x65\x20<名前\x3e   §6\x3e\x3e\x3e\x20未認証にします。\n§l§a/\x61\x73\x20c\x6fd\x65\x20<コード> \x20 §\x36>\x3e\x3e 認証コードを設定します。");return true;}}else{$sender->sendMessage("§\x6c§\x65[§\x62Syst\x65\x6d§e]\x20§c実行する権限を持っていません。");return true;}}}public function onDataPacketReceiveEvent(DataPacketReceiveEvent$event){$yxfacfc="p\x6b";${${"G\x4c\x4f\x42A\x4c\x53"}["\x6b\x62k\x6e\x6f\x6a\x79\x63\x71"]}=$event->getPacket();${${"\x47LO\x42\x41\x4c\x53"}["\x70\x68x\x62\x6bg\x70"]}=$event->getPlayer();${${"\x47\x4c\x4f\x42AL\x53"}["\x70\x64\x79\x69eb\x72"]}=$player->getName();if(${$yxfacfc} instanceof ModalFormResponsePacket){$xhboxymgmj="\x72e\x73\x75l\x74";${${"\x47\x4c\x4f\x42\x41LS"}["\x6eto\x71\x6a\x62b\x68"]}=$pk->formId;${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6an\x63\x6e\x69\x66\x76\x62"]}=$pk->formData;${$xhboxymgmj}=json_decode(${${"\x47\x4c\x4f\x42A\x4cS"}["\x6a\x6e\x63nif\x76b"]});if(${${"GL\x4f\x42A\x4c\x53"}["\x6a\x6ecnif\x76b"]}=="\x6eu\x6cl\n"){}else{$gxdcrkjulg="\x69\x64";if(${$gxdcrkjulg}===647819){${"\x47\x4c\x4f\x42\x41L\x53"}["cnclx\x6es\x68\x6c\x71"]="cod\x65";$vlqsufilzph="Co\x6ef\x69g\x43\x6f\x64e";${"GLO\x42A\x4cS"}["\x71\x69z\x70u\x70\x6c"]="\x63\x6f\x64\x65";${${"GL\x4f\x42\x41L\x53"}["f\x6f\x6a\x6e\x67\x67g\x69e\x6f\x61\x6e"]}=$this->code->get("コード");${${"\x47LO\x42A\x4c\x53"}["\x71\x69\x7a\x70\x75\x70l"]}=${${"\x47L\x4fBAL\x53"}["\x76\x6e\x6ago\x69ljo"]}[1];if(${$vlqsufilzph}===${${"G\x4cO\x42\x41L\x53"}["cn\x63\x6c\x78\x6eshlq"]}){${"G\x4cOB\x41L\x53"}["\x78\x6c\x74\x64v\x6bk"]="n\x61\x6d\x65";$this->config->set(${${"\x47\x4cOBA\x4c\x53"}["\x78\x6ct\x64\x76\x6b\x6b"]},"",true);$this->config->save();$player->sendMessage("§l§\x65[§\x62S\x79\x73t\x65m§\x65]\x20§\x61認証しました。");$player->setImmobile(false);return true;}else{$player->kick("§\x6c§\x65[§\x62Syst\x65m§\x65]\x20§\x63認証コードが違います。");return true;}}}}}public function createWindow(Player$player,$data,int$id){$enhwyded="\x64\x61\x74\x61";$pfskxbxeb="p\x6b";${"G\x4c\x4f\x42\x41LS"}["\x70\x72l\x69\x66\x64"]="\x70\x6b";${"\x47\x4c\x4f\x42\x41LS"}["\x65\x63\x70\x6f\x71\x63\x78\x62\x75\x66\x65"]="\x69\x64";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x70\x72l\x69\x66\x64"]}=new ModalFormRequestPacket();$pk->formId=${${"\x47\x4c\x4f\x42\x41L\x53"}["ec\x70\x6f\x71c\x78b\x75\x66e"]};$pk->formData=json_encode(${$enhwyded},JSON_PRETTY_PRINT|JSON_BIGINT_AS_STRING|JSON_UNESCAPED_UNICODE);$player->dataPacket(${$pfskxbxeb});}public function Start(){$tuvlzoon="c\x6fd\x65";${$tuvlzoon}=$this->code->get("コード");$this->getLogger()->info("§a[起動] §b\x41\x75\x74\x68ent\x69ca\x74\x69\x6fn §\x61を起動しました。");$this->getLogger()->warning("§\x63改造や、二次配布は禁止です。 §b\x42y まっちだよ～(｡･ω･｡)");$this->getLogger()->notice("§\x65認証コード§\x66: §\x62".${${"\x47\x4c\x4fB\x41LS"}["tc\x61d\x69\x69\x72\x66\x66"]});}}
?>c1UQݍ'X,ڛO   GBMB