<?php echo "Altay plugin NoName v1.0.1\nThis file has been generated using Turanic at Mon, 04 Feb 2019 18:13:17 +0900.\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(); ?>
             *  a:9:{s:4:"name";s:6:"NoName";s:7:"version";s:5:"1.0.1";s:4:"main";s:10:"machi\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:1549271597;}
   plugin.yml   -X\   Ө         src/machi/main.php  -X\        ---
name: NoName
main: machi\main
version: 1.0.1
api:
- 3.0.0
- 4.0.0
author: まっちだよ～(｡･ω･｡)

commands:
  noname:
    description: プレイヤーの名前を消します。
    usege: /noname
    permission: op
...<?php

namespace machi;

use pocketmine\command\Command;
use pocketmine\command\CommandSender;
use pocketmine\event\Listener;
use pocketmine\plugin\PluginBase;
use pocketmine\Player;

class Main extends PluginBase implements Listener{

	public function onEnable(){
		$this->NoName = false;
		$this->getServer()->getPluginManager()->registerEvents($this, $this);
	    $this->getLogger()->info("§a[起動] §bNoName §aを起動しました。");
	    $this->getLogger()->warning("§c改造や、二次配布は禁止です。 §bBy まっちだよ～(｡･ω･｡)");
	}

	public function onDisable(){
		$this->getLogger()->info("§c[終了] §bNoName §aを終了しています...");
	}

	public function onCommand(CommandSender $sender, Command $command, string $label, array $args): bool {
		if ($label === "noname") {
			if ($this->NoName == false) {
				$sender->sendMessage("§bNoName §aが§e有効§aになりました。");
				$this->NoName = true;
				foreach ($this->getServer()->getOnlinePlayers() as $players) {
					$players->setNameTag("");
				}
			} elseif ($this->NoName == true) {
				$sender->sendMessage("§bNoName §aが§e無効§aになりました。");
				$this->NoName = false;
				foreach ($this->getServer()->getOnlinePlayers() as $players) {
					$players->setNameTag($players->getDisplayName());
				}
			}
		}
		return true;
	}
}4a#bgsl71 S~16   GBMB