PHP: <?php/* * * __ __ _ *| \/ (_) /\ *| \ / |_ _ __ ___ / \ _ __ ___ *| |\/| | | '_ \ / _ \ / /\ \ | '__/ _ \ *| | | | | | | | __// ____ \| | | (_) | *|_| |_|_|_| |_|\___/_/ \_\_| \___/ * * **/namespace Wing;use pocketmine\event\Listener;use pocketmine\plugin\PluginBase;use pocketmine\event\player\PlayerChatEvent;use pocketmine\event\player\PlayerMoveEvent;use pocketmine\event\player\PlayerQuitEvent;use pocketmine\event\player\PlayerKickEvent;use pocketmine\event\player\PlayerDeathEvent;use pocketmine\event\player\PlayerInteractEvent;use pocketmine\event\player\PlayerDropItemEvent;use pocketmine\event\block\BlockBreakEvent;use pocketmine\event\entity\EntityDamageEvent;use pocketmine\event\entity\ProjectileLaunchEvent;use pocketmine\event\entity\ProjectileHitEvent;use pocketmine\event\entity\EntityDamageByEntityEvent;use pocketmine\event\block\SignChangeEvent;use pocketmine\level\Position;use pocketmine\level\particle\FlameParticle;use pocketmine\utils\Config;use pocketmine\item\Item;use pocketmine\block\Block;use pocketmine\entity\Arrow;use pocketmine\entity\Entity;use pocketmine\command\Command;use pocketmine\command\CommandSender;use pocketmine\nbt\tag\IntTag;use pocketmine\nbt\tag\CompoundTag;use pocketmine\math\Vector2;use pocketmine\math\Vector3;use pocketmine\Player;use pocketmine\IPlayer;class Main extends PluginBase implements Listener { private $db; public $player = ""; public function player(Player $player) { return $player; } public function onCommand(CommandSender $sender, Command $command, $label, array $args) { $player = $this->player($sender); $map = []; $lines = explode("\n", rtrim("X X XX XX XXXXX X")); $height = count($lines); foreach($lines as $lineNumber => $line){ $len = strlen($line); for($i = 0; $i < $len; ++$i){ if($line{$i} === "X"){ $map[] = new Vector2($i, $height - $lineNumber - 1); } } } $scale = 0.2; $particle = new FlameParticle(new Vector3); $yaw = $player->yaw / 180 * M_PI; $xFactor = -sin($yaw) * $scale; $zFactor = cos($yaw) * $scale; foreach($map as $vector){ $particle->y = $vector->y; $particle->x = $xFactor * $vector->x; $particle->z = $zFactor * $vector->x; $player->getLevel()->addParticle($particle); } }}