Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php namespace CosmoCraft;${"\x47L\x4fB\x41L\x53"}["\x65\x64\x67\x79em\x79q\x73"]="e\x78\..

Decoded Output download

<?php namespace CosmoCraft;${"GLOBALS"}["edgyemyqs"]="exp";${"GLOBALS"}["qgpyppwfjpk"]="entity";${"GLOBALS"}["dsfdokytgwpk"]="particle";${"GLOBALS"}["hduxsin"]="vector";${"GLOBALS"}["bzybkxnxmold"]="i";${"GLOBALS"}["duozkctbogjj"]="part_pos";${"GLOBALS"}["yperjky"]="ply";${"GLOBALS"}["wsfmefcttbp"]="plx";${"GLOBALS"}["wfoygxj"]="player";${"GLOBALS"}["hxmsxz"]="entityball";${"GLOBALS"}["celhslil"]="hand_item";${"GLOBALS"}["hubxlyzuips"]="direction";${"GLOBALS"}["chlkeo"]="item";${"GLOBALS"}["jpvkvwxgjh"]="sender";${"GLOBALS"}["rgqolt"]="y";${"GLOBALS"}["vrhvqxpxanx"]="z";${"GLOBALS"}["xgygpockdmyh"]="x";use pocketmine\plugin\{Plugin,PluginBase};use pocketmine\event\{Listener,HandlerList};use pocketmine\player\Player;use pocketmine\Server;use CosmoCraft\CosmoCraftCommand;use CosmoCraft\EventsListener;use function mb_strtolower;use pocketmine\block\VanillaBlocks;use pocketmine\entity\Entity;use pocketmine\entity\Living;use pocketmine\lang\TextContainer;use pocketmine\world\Explosion;use pocketmine\math\AxisAlignedBB;use pocketmine\network\mcpe\protocol\types\entity\EntityIds;use pocketmine\entity\projectile\Arrow as ArrowEntity;use pocketmine\entity\projectile\Snowball as SnowEntity;use pocketmine\entity\projectile\Egg as EggEntity;use pocketmine\event\entity\ProjectileHitEvent;use pocketmine\event\entity\ProjectileLaunchEvent;use pocketmine\event\entity\ProjectileHitEntityEvent;use pocketmine\event\entity\EntityExplodeEvent;use pocketmine\event\player\PlayerInteractEvent;use pocketmine\event\player\PlayerItemUseEvent;use pocketmine\math\RayTraceResult;use pocketmine\entity\projectile\Projectile;use pocketmine\entity\EntityDataHelper;use pocketmine\entity\EntityFactory;use pocketmine\event\entity\EntityDamageByEntityEvent;use pocketmine\event\entity\EntityDamageByEntity;use pocketmine\event\entity\EntityDamageByBlockEvent;use pocketmine\event\entity\EntityDamageEvent;use pocketmine\world\World;use pocketmine\entity\Location;use pocketmine\item\VanillaItems;use pocketmine\item\ItemFactory;use pocketmine\item\Item;use pocketmine\item\ItemIds;use pocketmine\block\BlockFactory;use pocketmine\block\BlockIds;use pocketmine\block\BlockLegacyIds;use pocketmine\world\Position;use pocketmine\block\Air;use pocketmine\utils\Random;use pocketmine\nbt\tag\{ByteTag,CompoundTag,DoubleTag,FloatTag,StringTag,ListTag,ShortTag,IntTag};use pocketmine\world\particle\AngryVillagerParticle;use pocketmine\world\particle\BlockForceFieldParticle;use pocketmine\world\particle\BubbleParticle;use pocketmine\world\particle\CriticalParticle;use pocketmine\world\particle\DustParticle;use pocketmine\world\particle\EnchantmentTableParticle;use pocketmine\world\particle\EnchantParticle;use pocketmine\world\particle\EntityFlameParticle;use pocketmine\world\particle\ExplodeParticle;use pocketmine\world\particle\FlameParticle;use pocketmine\world\particle\HappyVillagerParticle;use pocketmine\world\particle\HeartParticle;use pocketmine\world\particle\HugeExplodeParticle;use pocketmine\world\particle\HugeExplodeSeedParticle;use pocketmine\world\particle\InkParticle;use pocketmine\world\particle\InstantEnchantParticle;use pocketmine\world\particle\ItemBreakParticle;use pocketmine\world\particle\LavaDripParticle;use pocketmine\world\particle\LavaParticle;use pocketmine\world\particle\Particle;use pocketmine\world\particle\PortalParticle;use pocketmine\world\particle\RainSplashParticle;use pocketmine\world\particle\RedstoneParticle;use pocketmine\world\particle\SmokeParticle;use pocketmine\world\particle\SplashParticle;use pocketmine\world\particle\SporeParticle;use pocketmine\world\particle\TerrainParticle;use pocketmine\world\particle\WaterDripParticle;use pocketmine\world\particle\WaterParticle;use pocketmine\world\sound\ExplodeSound;use pocketmine\world\sound\FizzSound;use pocketmine\world\sound\TotemUseSound;use pocketmine\world\sound\BlockBreakSound;use pocketmine\world\sound\ItemBreakSound;use pocketmine\world\sound\EndermanTeleportSound;use pocketmine\world\sound\BowShootSound;use pocketmine\world\sound\Sound;use pocketmine\math\Vector3;use pocketmine\utils\TextFormat as TF;use pocketmine\utils\Config;use pocketmine\color\Color;use pocketmine\utils\Utils;class Main extends PluginBase implements Listener{public const PREFIX="l6Cosmol3Craft l9Aprils leFools ra";public const LMAO="l9Aprils leFoolsr";public function onEnable():void{$this->getServer()->getPluginManager()->registerEvents(new EventsListener($this),$this);$this->registerCommands();$this->getServer()->getLogger()->info(self::PREFIX."is loaded.");}public function onDisable():void{$this->getServer()->getLogger()->info(self::PREFIX."is disabled");}public function registerCommands():void{$this->getServer()->getCommandMap()->registerAll("ccaf",[new CosmoCraftCommand($this)]);}public static function getRandVector():Vector3{${${"GLOBALS"}["xgygpockdmyh"]}=rand()/getrandmax()*2-1;$fcnmye="y";$rakphskrbi="z";$sxtgiwx="v";${$fcnmye}=rand()/getrandmax()*2-1;${${"GLOBALS"}["vrhvqxpxanx"]}=rand()/getrandmax()*2-1;${$sxtgiwx}=new Vector3(${${"GLOBALS"}["xgygpockdmyh"]},${${"GLOBALS"}["rgqolt"]},${$rakphskrbi});return$v->normalize();}}namespace CosmoCraft;use CosmoCraft\Main;use CosmoCraft\EventsListener;use pocketmine\command\Command;use pocketmine\command\CommandSender;use pocketmine\item\ItemIdentifier;use pocketmine\item\ItemIds;use pocketmine\player\Player;use pocketmine\utils\TextFormat;use pocketmine\item\LegacyStringToItemParser;use pocketmine\item\LegacyStringToItemParserException;use pocketmine\item\StringToItemParser;use pocketmine\lang\KnownTranslationFactory;use pocketmine\block\VanillaBlocks;use pocketmine\block\BlockIds;use pocketmine\block\BlockLegacyIds;use pocketmine\item\{VanillaItems,ItemFactory,Item};class CosmoCraftCommand extends Command{public function __construct(){parent::__construct("cosmocraft","real cosmocraft command","/cosmocraft");}public function execute(CommandSender$sender,string$commandLabel,array$args){if(!${${"GLOBALS"}["jpvkvwxgjh"]} instanceof Player){$sender->sendMessage("You must be a player to execute this command!");return;}else{$qwforicjpuvg="item";${$qwforicjpuvg}=StringToItemParser::getInstance()->parse("diamond");$item->setCustomName("April Fools");$item->setCount(1);$item->setLore(["aHaha Nub get trolled by this\nrebtw try right click this item."]);$sender->getInventory()->addItem(${${"GLOBALS"}["chlkeo"]});$sender->sendMessage("l9Aprils leFoolsr Lmao");}}}namespace CosmoCraft;use pocketmine\event\Listener;use pocketmine\player\Player;use pocketmine\player\GameMode;use pocketmine\player\PlayerInfo;use pocketmine\Server;use pocketmine\plugin\PluginBase;use pocketmine\block\VanillaBlocks;use pocketmine\entity\Entity;use pocketmine\entity\Living;use pocketmine\lang\TextContainer;use pocketmine\world\Explosion;use pocketmine\math\AxisAlignedBB;use pocketmine\network\mcpe\protocol\types\entity\EntityIds;use pocketmine\entity\projectile\Arrow as ArrowEntity;use pocketmine\entity\projectile\Snowball as SnowEntity;use pocketmine\entity\projectile\Egg as EggEntity;use pocketmine\event\entity\ProjectileHitEvent;use pocketmine\event\entity\ProjectileLaunchEvent;use pocketmine\event\entity\ProjectileHitEntityEvent;use pocketmine\event\entity\EntityExplodeEvent;use pocketmine\event\player\PlayerInteractEvent;use pocketmine\event\player\PlayerItemUseEvent;use pocketmine\math\RayTraceResult;use pocketmine\entity\projectile\Projectile;use pocketmine\entity\EntityDataHelper;use pocketmine\entity\EntityFactory;use pocketmine\event\entity\EntityDamageByEntityEvent;use pocketmine\event\entity\EntityDamageByEntity;use pocketmine\event\entity\EntityDamageByBlockEvent;use pocketmine\event\entity\EntityDamageEvent;use pocketmine\world\World;use pocketmine\entity\Location;use pocketmine\item\VanillaItems;use pocketmine\item\ItemFactory;use pocketmine\item\Item;use pocketmine\item\ItemIds;use pocketmine\block\BlockFactory;use pocketmine\block\BlockIds;use pocketmine\block\BlockLegacyIds;use pocketmine\world\Position;use pocketmine\block\Air;use pocketmine\utils\Random;use pocketmine\nbt\tag\{ByteTag,CompoundTag,DoubleTag,FloatTag,StringTag,ListTag,ShortTag,IntTag};use pocketmine\world\particle\AngryVillagerParticle;use pocketmine\world\particle\BlockForceFieldParticle;use pocketmine\world\particle\BubbleParticle;use pocketmine\world\particle\CriticalParticle;use pocketmine\world\particle\DustParticle;use pocketmine\world\particle\EnchantmentTableParticle;use pocketmine\world\particle\EnchantParticle;use pocketmine\world\particle\EntityFlameParticle;use pocketmine\world\particle\ExplodeParticle;use pocketmine\world\particle\FlameParticle;use pocketmine\world\particle\HappyVillagerParticle;use pocketmine\world\particle\HeartParticle;use pocketmine\world\particle\HugeExplodeParticle;use pocketmine\world\particle\HugeExplodeSeedParticle;use pocketmine\world\particle\InkParticle;use pocketmine\world\particle\InstantEnchantParticle;use pocketmine\world\particle\ItemBreakParticle;use pocketmine\world\particle\LavaDripParticle;use pocketmine\world\particle\LavaParticle;use pocketmine\world\particle\Particle;use pocketmine\world\particle\PortalParticle;use pocketmine\world\particle\RainSplashParticle;use pocketmine\world\particle\RedstoneParticle;use pocketmine\world\particle\SmokeParticle;use pocketmine\world\particle\SplashParticle;use pocketmine\world\particle\SporeParticle;use pocketmine\world\particle\TerrainParticle;use pocketmine\world\particle\WaterDripParticle;use pocketmine\world\particle\WaterParticle;use pocketmine\world\sound\ExplodeSound;use pocketmine\world\sound\FizzSound;use pocketmine\world\sound\TotemUseSound;use pocketmine\world\sound\BlockBreakSound;use pocketmine\world\sound\ItemBreakSound;use pocketmine\world\sound\EndermanTeleportSound;use pocketmine\world\sound\BowShootSound;use pocketmine\world\sound\Sound;use pocketmine\math\Vector3;use pocketmine\utils\TextFormat as TF;use pocketmine\utils\Config;use pocketmine\color\Color;use pocketmine\utils\Utils;use CosmoCraft\Main;use CosmoCraft\CosmoCraftCommand;class EventsListener implements Listener{private$plugin;private$server;public function __construct(Main$plugin){$wytklvlzkpk="plugin";$this->plugin=${$wytklvlzkpk};$this->server=$this->plugin->getServer();}public function getServer(){return$this->plugin->getServer();}public function getPlugin(){return$this->plugin;}public function onFoolUse(PlayerItemUseEvent$event):void{$ljlydwdhusp="player";${${"GLOBALS"}["chlkeo"]}=$event->getItem();${$ljlydwdhusp}=$event->getPlayer();${${"GLOBALS"}["hubxlyzuips"]}=$event->getDirectionVector();${${"GLOBALS"}["celhslil"]}=$player->getInventory()->getItemInHand();if($item->getId()===ItemIds::DIAMOND){if($item->getCustomName("April Fools")||$hand_item->getCustomName("April Fools")){$wibgomvejth="location";${"GLOBALS"}["pterfkoyjupk"]="i";$player->sendMessage("eHappy l9Aprils leFoolsr\naPlay at play.cosmocraft.org | 19132");${$wibgomvejth}=$player->getLocation();${${"GLOBALS"}["hxmsxz"]}=new EggEntity(Location::fromObject($player->getEyePos(),$player->getWorld(),$location->yaw,$location->pitch),${${"GLOBALS"}["wfoygxj"]});$entityball->setMotion($entityball->getMotion()->multiply(2));$entityball->setMotion($player->getDirectionVector()->normalize()->multiply(2));$entityball->setNameTag(Main::LMAO);$entityball->setNameTagAlwaysVisible(true);$entityball->setScale(3.5);${"GLOBALS"}["pakwfvdznyeh"]="plz";${"GLOBALS"}["amcvddeder"]="plz";$entityball->spawnToAll();${"GLOBALS"}["ydthcir"]="i";${${"GLOBALS"}["wsfmefcttbp"]}=$player->getPosition()->getX();${${"GLOBALS"}["yperjky"]}=$player->getPosition()->getY();${${"GLOBALS"}["amcvddeder"]}=$player->getPosition()->getZ();${${"GLOBALS"}["duozkctbogjj"]}=(new Vector3((float)${${"GLOBALS"}["wsfmefcttbp"]},(float)${${"GLOBALS"}["yperjky"]},(float)${${"GLOBALS"}["pakwfvdznyeh"]}));for(${${"GLOBALS"}["bzybkxnxmold"]}=0;${${"GLOBALS"}["ydthcir"]}<20;++${${"GLOBALS"}["pterfkoyjupk"]}){${${"GLOBALS"}["hduxsin"]}=Main::getRandVector()->multiply(2);$vector->y=abs($vector->getY());${${"GLOBALS"}["dsfdokytgwpk"]}=new HappyVillagerParticle();${"GLOBALS"}["hagbrra"]="particle";$player->getWorld()->addParticle($part_pos->add($vector->x,$vector->y,$vector->z),${${"GLOBALS"}["hagbrra"]});}}}}public function onEggFoolHit(ProjectileHitEvent$event){${${"GLOBALS"}["qgpyppwfjpk"]}=$event->getEntity();${"GLOBALS"}["frqarerlit"]="entity";if($entity->getNameTag()===Main::LMAO&&${${"GLOBALS"}["frqarerlit"]} instanceof EggEntity){$nwewbf="i";$wsokka="pos";${"GLOBALS"}["xjmzyf"]="level";$fcbujqv="entity";$xlmfsgmzql="pos";${"GLOBALS"}["dqyttcoylcmv"]="i";${$wsokka}=$entity->getPosition();${${"GLOBALS"}["xjmzyf"]}=$entity->getWorld();${${"GLOBALS"}["edgyemyqs"]}=new Explosion(${$xlmfsgmzql},1.0,${$fcbujqv});$exp->explodeB();$bmujfwjb="i";$entity->flagForDespawn();for(${$bmujfwjb}=0;${${"GLOBALS"}["bzybkxnxmold"]}<90;++${${"GLOBALS"}["bzybkxnxmold"]}){$gcpvjry="vector";${$gcpvjry}=Main::getRandVector()->multiply(2);$vector->y=abs($vector->getY());${"GLOBALS"}["flzhqlz"]="particle";${${"GLOBALS"}["dsfdokytgwpk"]}=new HeartParticle();$entity->getWorld()->addParticle($entity->getLocation()->add($vector->x,$vector->y,$vector->z),${${"GLOBALS"}["flzhqlz"]});}$gpfphgk="i";for(${${"GLOBALS"}["bzybkxnxmold"]}=0;${${"GLOBALS"}["bzybkxnxmold"]}<130;++${${"GLOBALS"}["bzybkxnxmold"]}){$fyjudxkf="vector";${$fyjudxkf}=Main::getRandVector()->multiply(4);$vector->y=abs($vector->getY());$mdpsdkkzocs="particle";${$mdpsdkkzocs}=new EnchantmentTableParticle();$touzdtxum="particle";$entity->getWorld()->addParticle($entity->getLocation()->add($vector->x,$vector->y,$vector->z),${$touzdtxum});}for(${$gpfphgk}=0;${$nwewbf}<70;++${${"GLOBALS"}["bzybkxnxmold"]}){${${"GLOBALS"}["hduxsin"]}=Main::getRandVector()->multiply(5);${"GLOBALS"}["tqdtsyenvddt"]="particle";${"GLOBALS"}["ykrkoquogln"]="particle";$vector->y=abs($vector->getY());${${"GLOBALS"}["ykrkoquogln"]}=new LavaParticle();$entity->getWorld()->addParticle($entity->getLocation()->add($vector->x,$vector->y,$vector->z),${${"GLOBALS"}["tqdtsyenvddt"]});}for(${${"GLOBALS"}["dqyttcoylcmv"]}=0;${${"GLOBALS"}["bzybkxnxmold"]}<120;++${${"GLOBALS"}["bzybkxnxmold"]}){$bvsdfvzip="particle";${${"GLOBALS"}["hduxsin"]}=Main::getRandVector()->multiply(6);$vector->y=abs($vector->getY());${${"GLOBALS"}["dsfdokytgwpk"]}=new AngryVillagerParticle();$entity->getWorld()->addParticle($entity->getLocation()->add($vector->x,$vector->y,$vector->z),${$bvsdfvzip});}}}} 
?>

Did this file decode correctly?

Original Code

<?php namespace CosmoCraft;${"\x47L\x4fB\x41L\x53"}["\x65\x64\x67\x79em\x79q\x73"]="e\x78\x70";${"\x47\x4cOB\x41\x4c\x53"}["\x71gpy\x70\x70\x77\x66\x6a\x70\x6b"]="e\x6e\x74\x69\x74\x79";${"\x47\x4cO\x42\x41\x4c\x53"}["\x64sfd\x6fkytg\x77\x70k"]="\x70\x61\x72\x74i\x63l\x65";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x68\x64\x75\x78s\x69\x6e"]="\x76ec\x74\x6fr";${"\x47\x4c\x4fBALS"}["\x62\x7ayb\x6b\x78\x6exm\x6f\x6c\x64"]="\x69";${"\x47L\x4fBALS"}["\x64\x75\x6f\x7a\x6bc\x74\x62o\x67\x6a\x6a"]="\x70\x61\x72\x74\x5fpos";${"\x47L\x4f\x42\x41\x4c\x53"}["\x79\x70\x65rjky"]="\x70\x6c\x79";${"GLOBA\x4c\x53"}["w\x73f\x6de\x66\x63\x74tb\x70"]="\x70lx";${"GL\x4fB\x41LS"}["w\x66\x6fy\x67\x78\x6a"]="\x70\x6ca\x79\x65\x72";${"\x47\x4cO\x42\x41LS"}["hx\x6d\x73\x78\x7a"]="e\x6e\x74\x69\x74yb\x61\x6c\x6c";${"G\x4cO\x42A\x4c\x53"}["ce\x6c\x68s\x6c\x69\x6c"]="\x68\x61n\x64\x5f\x69\x74\x65\x6d";${"\x47L\x4fBA\x4c\x53"}["hubxl\x79\x7a\x75i\x70s"]="\x64\x69\x72ec\x74\x69\x6fn";${"GL\x4f\x42\x41\x4cS"}["\x63hlk\x65\x6f"]="it\x65\x6d";${"\x47LOB\x41\x4c\x53"}["j\x70\x76\x6bv\x77\x78\x67\x6a\x68"]="s\x65n\x64\x65\x72";${"\x47L\x4fBA\x4c\x53"}["\x72\x67q\x6f\x6ct"]="\x79";${"\x47LO\x42\x41\x4cS"}["\x76rh\x76q\x78\x70xa\x6e\x78"]="z";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x78\x67y\x67\x70\x6f\x63\x6bd\x6d\x79\x68"]="x";use pocketmine\plugin\{Plugin,PluginBase};use pocketmine\event\{Listener,HandlerList};use pocketmine\player\Player;use pocketmine\Server;use CosmoCraft\CosmoCraftCommand;use CosmoCraft\EventsListener;use function mb_strtolower;use pocketmine\block\VanillaBlocks;use pocketmine\entity\Entity;use pocketmine\entity\Living;use pocketmine\lang\TextContainer;use pocketmine\world\Explosion;use pocketmine\math\AxisAlignedBB;use pocketmine\network\mcpe\protocol\types\entity\EntityIds;use pocketmine\entity\projectile\Arrow as ArrowEntity;use pocketmine\entity\projectile\Snowball as SnowEntity;use pocketmine\entity\projectile\Egg as EggEntity;use pocketmine\event\entity\ProjectileHitEvent;use pocketmine\event\entity\ProjectileLaunchEvent;use pocketmine\event\entity\ProjectileHitEntityEvent;use pocketmine\event\entity\EntityExplodeEvent;use pocketmine\event\player\PlayerInteractEvent;use pocketmine\event\player\PlayerItemUseEvent;use pocketmine\math\RayTraceResult;use pocketmine\entity\projectile\Projectile;use pocketmine\entity\EntityDataHelper;use pocketmine\entity\EntityFactory;use pocketmine\event\entity\EntityDamageByEntityEvent;use pocketmine\event\entity\EntityDamageByEntity;use pocketmine\event\entity\EntityDamageByBlockEvent;use pocketmine\event\entity\EntityDamageEvent;use pocketmine\world\World;use pocketmine\entity\Location;use pocketmine\item\VanillaItems;use pocketmine\item\ItemFactory;use pocketmine\item\Item;use pocketmine\item\ItemIds;use pocketmine\block\BlockFactory;use pocketmine\block\BlockIds;use pocketmine\block\BlockLegacyIds;use pocketmine\world\Position;use pocketmine\block\Air;use pocketmine\utils\Random;use pocketmine\nbt\tag\{ByteTag,CompoundTag,DoubleTag,FloatTag,StringTag,ListTag,ShortTag,IntTag};use pocketmine\world\particle\AngryVillagerParticle;use pocketmine\world\particle\BlockForceFieldParticle;use pocketmine\world\particle\BubbleParticle;use pocketmine\world\particle\CriticalParticle;use pocketmine\world\particle\DustParticle;use pocketmine\world\particle\EnchantmentTableParticle;use pocketmine\world\particle\EnchantParticle;use pocketmine\world\particle\EntityFlameParticle;use pocketmine\world\particle\ExplodeParticle;use pocketmine\world\particle\FlameParticle;use pocketmine\world\particle\HappyVillagerParticle;use pocketmine\world\particle\HeartParticle;use pocketmine\world\particle\HugeExplodeParticle;use pocketmine\world\particle\HugeExplodeSeedParticle;use pocketmine\world\particle\InkParticle;use pocketmine\world\particle\InstantEnchantParticle;use pocketmine\world\particle\ItemBreakParticle;use pocketmine\world\particle\LavaDripParticle;use pocketmine\world\particle\LavaParticle;use pocketmine\world\particle\Particle;use pocketmine\world\particle\PortalParticle;use pocketmine\world\particle\RainSplashParticle;use pocketmine\world\particle\RedstoneParticle;use pocketmine\world\particle\SmokeParticle;use pocketmine\world\particle\SplashParticle;use pocketmine\world\particle\SporeParticle;use pocketmine\world\particle\TerrainParticle;use pocketmine\world\particle\WaterDripParticle;use pocketmine\world\particle\WaterParticle;use pocketmine\world\sound\ExplodeSound;use pocketmine\world\sound\FizzSound;use pocketmine\world\sound\TotemUseSound;use pocketmine\world\sound\BlockBreakSound;use pocketmine\world\sound\ItemBreakSound;use pocketmine\world\sound\EndermanTeleportSound;use pocketmine\world\sound\BowShootSound;use pocketmine\world\sound\Sound;use pocketmine\math\Vector3;use pocketmine\utils\TextFormat as TF;use pocketmine\utils\Config;use pocketmine\color\Color;use pocketmine\utils\Utils;class Main extends PluginBase implements Listener{public const PREFIX="\x6c\x36C\x6fs\x6dol\x33\x43raf\x74 l\x39Ap\x72\x69l\x73 \x6c\x65Fo\x6f\x6cs \x72a";public const LMAO="l9Ap\x72\x69\x6c\x73 le\x46o\x6f\x6c\x73r";public function onEnable():void{$this->getServer()->getPluginManager()->registerEvents(new EventsListener($this),$this);$this->registerCommands();$this->getServer()->getLogger()->info(self::PREFIX."\x69\x73 \x6co\x61ded.");}public function onDisable():void{$this->getServer()->getLogger()->info(self::PREFIX."i\x73 d\x69\x73ab\x6c\x65\x64");}public function registerCommands():void{$this->getServer()->getCommandMap()->registerAll("\x63c\x61\x66",[new CosmoCraftCommand($this)]);}public static function getRandVector():Vector3{${${"\x47L\x4fBA\x4c\x53"}["\x78\x67\x79\x67\x70\x6f\x63k\x64\x6dyh"]}=rand()/getrandmax()*2-1;$fcnmye="y";$rakphskrbi="z";$sxtgiwx="v";${$fcnmye}=rand()/getrandmax()*2-1;${${"GLO\x42\x41LS"}["v\x72\x68v\x71\x78\x70\x78a\x6e\x78"]}=rand()/getrandmax()*2-1;${$sxtgiwx}=new Vector3(${${"\x47\x4cO\x42\x41L\x53"}["\x78gy\x67\x70\x6f\x63\x6b\x64m\x79\x68"]},${${"GLOB\x41LS"}["r\x67q\x6f\x6c\x74"]},${$rakphskrbi});return$v->normalize();}}namespace CosmoCraft;use CosmoCraft\Main;use CosmoCraft\EventsListener;use pocketmine\command\Command;use pocketmine\command\CommandSender;use pocketmine\item\ItemIdentifier;use pocketmine\item\ItemIds;use pocketmine\player\Player;use pocketmine\utils\TextFormat;use pocketmine\item\LegacyStringToItemParser;use pocketmine\item\LegacyStringToItemParserException;use pocketmine\item\StringToItemParser;use pocketmine\lang\KnownTranslationFactory;use pocketmine\block\VanillaBlocks;use pocketmine\block\BlockIds;use pocketmine\block\BlockLegacyIds;use pocketmine\item\{VanillaItems,ItemFactory,Item};class CosmoCraftCommand extends Command{public function __construct(){parent::__construct("\x63osm\x6f\x63r\x61\x66t","re\x61l\x20co\x73m\x6fc\x72\x61f\x74\x20\x63o\x6dm\x61\x6ed","/\x63\x6f\x73\x6docraf\x74");}public function execute(CommandSender$sender,string$commandLabel,array$args){if(!${${"G\x4c\x4f\x42A\x4cS"}["\x6a\x70v\x6b\x76w\x78\x67j\x68"]} instanceof Player){$sender->sendMessage("\x59o\x75\x20m\x75\x73t \x62\x65\x20\x61 \x70laye\x72\x20\x74\x6f exe\x63\x75\x74\x65\x20\x74his\x20c\x6fmma\x6e\x64\x21");return;}else{$qwforicjpuvg="\x69\x74e\x6d";${$qwforicjpuvg}=StringToItemParser::getInstance()->parse("\x64i\x61\x6d\x6fn\x64");$item->setCustomName("\x41p\x72i\x6c\x20Fool\x73");$item->setCount(1);$item->setLore(["a\x48a\x68\x61\x20Nub\x20\x67et\x20\x74r\x6f\x6cl\x65d\x20by \x74\x68is\n\x72e\x62\x74\x77 \x74\x72y\x20r\x69gh\x74 \x63l\x69\x63\x6b\x20t\x68i\x73\x20item."]);$sender->getInventory()->addItem(${${"\x47\x4cO\x42\x41L\x53"}["c\x68l\x6b\x65o"]});$sender->sendMessage("\x6c9Apr\x69\x6c\x73\x20\x6c\x65Fool\x73\x72\x20\x4cm\x61\x6f");}}}namespace CosmoCraft;use pocketmine\event\Listener;use pocketmine\player\Player;use pocketmine\player\GameMode;use pocketmine\player\PlayerInfo;use pocketmine\Server;use pocketmine\plugin\PluginBase;use pocketmine\block\VanillaBlocks;use pocketmine\entity\Entity;use pocketmine\entity\Living;use pocketmine\lang\TextContainer;use pocketmine\world\Explosion;use pocketmine\math\AxisAlignedBB;use pocketmine\network\mcpe\protocol\types\entity\EntityIds;use pocketmine\entity\projectile\Arrow as ArrowEntity;use pocketmine\entity\projectile\Snowball as SnowEntity;use pocketmine\entity\projectile\Egg as EggEntity;use pocketmine\event\entity\ProjectileHitEvent;use pocketmine\event\entity\ProjectileLaunchEvent;use pocketmine\event\entity\ProjectileHitEntityEvent;use pocketmine\event\entity\EntityExplodeEvent;use pocketmine\event\player\PlayerInteractEvent;use pocketmine\event\player\PlayerItemUseEvent;use pocketmine\math\RayTraceResult;use pocketmine\entity\projectile\Projectile;use pocketmine\entity\EntityDataHelper;use pocketmine\entity\EntityFactory;use pocketmine\event\entity\EntityDamageByEntityEvent;use pocketmine\event\entity\EntityDamageByEntity;use pocketmine\event\entity\EntityDamageByBlockEvent;use pocketmine\event\entity\EntityDamageEvent;use pocketmine\world\World;use pocketmine\entity\Location;use pocketmine\item\VanillaItems;use pocketmine\item\ItemFactory;use pocketmine\item\Item;use pocketmine\item\ItemIds;use pocketmine\block\BlockFactory;use pocketmine\block\BlockIds;use pocketmine\block\BlockLegacyIds;use pocketmine\world\Position;use pocketmine\block\Air;use pocketmine\utils\Random;use pocketmine\nbt\tag\{ByteTag,CompoundTag,DoubleTag,FloatTag,StringTag,ListTag,ShortTag,IntTag};use pocketmine\world\particle\AngryVillagerParticle;use pocketmine\world\particle\BlockForceFieldParticle;use pocketmine\world\particle\BubbleParticle;use pocketmine\world\particle\CriticalParticle;use pocketmine\world\particle\DustParticle;use pocketmine\world\particle\EnchantmentTableParticle;use pocketmine\world\particle\EnchantParticle;use pocketmine\world\particle\EntityFlameParticle;use pocketmine\world\particle\ExplodeParticle;use pocketmine\world\particle\FlameParticle;use pocketmine\world\particle\HappyVillagerParticle;use pocketmine\world\particle\HeartParticle;use pocketmine\world\particle\HugeExplodeParticle;use pocketmine\world\particle\HugeExplodeSeedParticle;use pocketmine\world\particle\InkParticle;use pocketmine\world\particle\InstantEnchantParticle;use pocketmine\world\particle\ItemBreakParticle;use pocketmine\world\particle\LavaDripParticle;use pocketmine\world\particle\LavaParticle;use pocketmine\world\particle\Particle;use pocketmine\world\particle\PortalParticle;use pocketmine\world\particle\RainSplashParticle;use pocketmine\world\particle\RedstoneParticle;use pocketmine\world\particle\SmokeParticle;use pocketmine\world\particle\SplashParticle;use pocketmine\world\particle\SporeParticle;use pocketmine\world\particle\TerrainParticle;use pocketmine\world\particle\WaterDripParticle;use pocketmine\world\particle\WaterParticle;use pocketmine\world\sound\ExplodeSound;use pocketmine\world\sound\FizzSound;use pocketmine\world\sound\TotemUseSound;use pocketmine\world\sound\BlockBreakSound;use pocketmine\world\sound\ItemBreakSound;use pocketmine\world\sound\EndermanTeleportSound;use pocketmine\world\sound\BowShootSound;use pocketmine\world\sound\Sound;use pocketmine\math\Vector3;use pocketmine\utils\TextFormat as TF;use pocketmine\utils\Config;use pocketmine\color\Color;use pocketmine\utils\Utils;use CosmoCraft\Main;use CosmoCraft\CosmoCraftCommand;class EventsListener implements Listener{private$plugin;private$server;public function __construct(Main$plugin){$wytklvlzkpk="\x70\x6c\x75g\x69\x6e";$this->plugin=${$wytklvlzkpk};$this->server=$this->plugin->getServer();}public function getServer(){return$this->plugin->getServer();}public function getPlugin(){return$this->plugin;}public function onFoolUse(PlayerItemUseEvent$event):void{$ljlydwdhusp="pla\x79\x65\x72";${${"G\x4c\x4f\x42\x41\x4cS"}["c\x68\x6c\x6be\x6f"]}=$event->getItem();${$ljlydwdhusp}=$event->getPlayer();${${"GL\x4f\x42AL\x53"}["hu\x62\x78\x6c\x79\x7auips"]}=$event->getDirectionVector();${${"\x47\x4cO\x42\x41\x4c\x53"}["c\x65\x6c\x68\x73\x6c\x69l"]}=$player->getInventory()->getItemInHand();if($item->getId()===ItemIds::DIAMOND){if($item->getCustomName("\x41\x70\x72il Fo\x6fl\x73")||$hand_item->getCustomName("\x41pril\x20Fools")){$wibgomvejth="\x6c\x6f\x63a\x74\x69\x6f\x6e";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x70\x74er\x66ko\x79j\x75\x70k"]="i";$player->sendMessage("\x65H\x61ppy\x20\x6c9A\x70r\x69\x6c\x73\x20\x6c\x65Fool\x73\x72\n\x61Play at\x20\x70lay.\x63\x6f\x73\x6docr\x61ft\x2e\x6frg\x20| 1\x39\x31\x33\x32");${$wibgomvejth}=$player->getLocation();${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x68\x78\x6d\x73\x78\x7a"]}=new EggEntity(Location::fromObject($player->getEyePos(),$player->getWorld(),$location->yaw,$location->pitch),${${"\x47\x4cO\x42\x41\x4c\x53"}["\x77\x66\x6f\x79\x67\x78j"]});$entityball->setMotion($entityball->getMotion()->multiply(2));$entityball->setMotion($player->getDirectionVector()->normalize()->multiply(2));$entityball->setNameTag(Main::LMAO);$entityball->setNameTagAlwaysVisible(true);$entityball->setScale(3.5);${"\x47\x4c\x4f\x42\x41\x4c\x53"}["p\x61\x6bw\x66v\x64\x7a\x6eye\x68"]="\x70\x6c\x7a";${"G\x4cOB\x41L\x53"}["\x61\x6d\x63\x76\x64\x64ed\x65\x72"]="pl\x7a";$entityball->spawnToAll();${"\x47\x4cO\x42A\x4c\x53"}["y\x64\x74\x68\x63\x69\x72"]="\x69";${${"G\x4c\x4fB\x41\x4c\x53"}["\x77sf\x6d\x65\x66\x63t\x74\x62\x70"]}=$player->getPosition()->getX();${${"GL\x4f\x42\x41\x4c\x53"}["y\x70erjky"]}=$player->getPosition()->getY();${${"GLOBA\x4c\x53"}["\x61mc\x76\x64d\x65der"]}=$player->getPosition()->getZ();${${"\x47L\x4f\x42\x41LS"}["\x64uo\x7akctb\x6f\x67j\x6a"]}=(new Vector3((float)${${"\x47\x4c\x4f\x42\x41L\x53"}["\x77\x73\x66\x6d\x65fctt\x62\x70"]},(float)${${"\x47\x4c\x4f\x42\x41L\x53"}["\x79p\x65\x72\x6ak\x79"]},(float)${${"G\x4cO\x42\x41\x4c\x53"}["\x70ak\x77\x66\x76dz\x6e\x79\x65\x68"]}));for(${${"\x47LO\x42ALS"}["b\x7a\x79bkx\x6e\x78m\x6f\x6c\x64"]}=0;${${"\x47\x4cO\x42A\x4c\x53"}["\x79\x64\x74\x68\x63\x69\x72"]}<20;++${${"GLO\x42A\x4c\x53"}["\x70t\x65r\x66\x6b\x6f\x79\x6au\x70\x6b"]}){${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x68du\x78\x73\x69\x6e"]}=Main::getRandVector()->multiply(2);$vector->y=abs($vector->getY());${${"\x47\x4cO\x42\x41L\x53"}["\x64\x73f\x64o\x6b\x79\x74g\x77\x70\x6b"]}=new HappyVillagerParticle();${"\x47L\x4f\x42AL\x53"}["\x68\x61g\x62\x72\x72a"]="pa\x72\x74\x69cl\x65";$player->getWorld()->addParticle($part_pos->add($vector->x,$vector->y,$vector->z),${${"G\x4cO\x42A\x4c\x53"}["\x68\x61g\x62\x72\x72\x61"]});}}}}public function onEggFoolHit(ProjectileHitEvent$event){${${"G\x4cO\x42\x41\x4c\x53"}["\x71\x67\x70\x79\x70\x70\x77f\x6a\x70\x6b"]}=$event->getEntity();${"G\x4c\x4f\x42\x41\x4c\x53"}["\x66\x72\x71\x61rerl\x69t"]="e\x6eti\x74\x79";if($entity->getNameTag()===Main::LMAO&&${${"\x47LO\x42\x41L\x53"}["\x66\x72q\x61\x72\x65\x72\x6c\x69\x74"]} instanceof EggEntity){$nwewbf="i";$wsokka="\x70\x6fs";${"\x47L\x4f\x42\x41\x4c\x53"}["\x78\x6am\x7a\x79\x66"]="\x6cev\x65l";$fcbujqv="en\x74\x69\x74\x79";$xlmfsgmzql="p\x6f\x73";${"\x47\x4cO\x42\x41\x4c\x53"}["\x64\x71y\x74\x74\x63\x6f\x79l\x63\x6d\x76"]="\x69";${$wsokka}=$entity->getPosition();${${"\x47\x4c\x4fBA\x4c\x53"}["\x78\x6amz\x79\x66"]}=$entity->getWorld();${${"G\x4c\x4fB\x41LS"}["\x65\x64\x67y\x65myq\x73"]}=new Explosion(${$xlmfsgmzql},1.0,${$fcbujqv});$exp->explodeB();$bmujfwjb="\x69";$entity->flagForDespawn();for(${$bmujfwjb}=0;${${"\x47L\x4f\x42\x41\x4c\x53"}["\x62\x7a\x79\x62\x6bxn\x78\x6d\x6f\x6c\x64"]}<90;++${${"\x47L\x4f\x42\x41L\x53"}["\x62\x7a\x79b\x6b\x78nx\x6d\x6f\x6c\x64"]}){$gcpvjry="\x76\x65\x63\x74\x6f\x72";${$gcpvjry}=Main::getRandVector()->multiply(2);$vector->y=abs($vector->getY());${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x66l\x7a\x68q\x6c\x7a"]="\x70\x61\x72t\x69\x63\x6ce";${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x64\x73f\x64oky\x74\x67\x77\x70\x6b"]}=new HeartParticle();$entity->getWorld()->addParticle($entity->getLocation()->add($vector->x,$vector->y,$vector->z),${${"\x47\x4c\x4fB\x41LS"}["\x66l\x7ah\x71\x6c\x7a"]});}$gpfphgk="i";for(${${"\x47L\x4f\x42\x41LS"}["bzy\x62\x6bx\x6ex\x6do\x6c\x64"]}=0;${${"\x47\x4cO\x42\x41LS"}["b\x7ay\x62\x6b\x78\x6exm\x6fl\x64"]}<130;++${${"\x47\x4cO\x42A\x4c\x53"}["b\x7a\x79b\x6b\x78\x6ex\x6dol\x64"]}){$fyjudxkf="\x76\x65\x63\x74\x6f\x72";${$fyjudxkf}=Main::getRandVector()->multiply(4);$vector->y=abs($vector->getY());$mdpsdkkzocs="p\x61r\x74\x69\x63l\x65";${$mdpsdkkzocs}=new EnchantmentTableParticle();$touzdtxum="\x70\x61\x72\x74\x69cl\x65";$entity->getWorld()->addParticle($entity->getLocation()->add($vector->x,$vector->y,$vector->z),${$touzdtxum});}for(${$gpfphgk}=0;${$nwewbf}<70;++${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x62z\x79\x62k\x78\x6e\x78\x6d\x6fl\x64"]}){${${"GLO\x42\x41L\x53"}["\x68\x64\x75\x78\x73i\x6e"]}=Main::getRandVector()->multiply(5);${"\x47\x4cO\x42A\x4cS"}["\x74\x71dts\x79\x65\x6ev\x64\x64\x74"]="\x70\x61\x72\x74\x69\x63\x6c\x65";${"\x47\x4c\x4f\x42AL\x53"}["\x79\x6br\x6boq\x75\x6f\x67\x6c\x6e"]="\x70\x61\x72t\x69\x63\x6ce";$vector->y=abs($vector->getY());${${"\x47L\x4fBA\x4cS"}["yk\x72\x6b\x6fq\x75ogln"]}=new LavaParticle();$entity->getWorld()->addParticle($entity->getLocation()->add($vector->x,$vector->y,$vector->z),${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x74q\x64t\x73y\x65n\x76\x64\x64t"]});}for(${${"\x47\x4cO\x42A\x4c\x53"}["\x64\x71\x79t\x74\x63\x6fy\x6cc\x6d\x76"]}=0;${${"\x47\x4cO\x42\x41L\x53"}["\x62\x7ayb\x6b\x78\x6ex\x6do\x6c\x64"]}<120;++${${"GLO\x42\x41\x4c\x53"}["\x62\x7a\x79\x62\x6bxnx\x6do\x6cd"]}){$bvsdfvzip="\x70\x61\x72\x74\x69cl\x65";${${"\x47\x4cOBA\x4c\x53"}["hd\x75\x78\x73\x69n"]}=Main::getRandVector()->multiply(6);$vector->y=abs($vector->getY());${${"GLO\x42\x41\x4c\x53"}["\x64\x73\x66\x64o\x6b\x79tg\x77\x70k"]}=new AngryVillagerParticle();$entity->getWorld()->addParticle($entity->getLocation()->add($vector->x,$vector->y,$vector->z),${$bvsdfvzip});}}}}
?>

Function Calls

None

Variables

None

Stats

MD5 ddddfc5c39df92606556db5a2198f036
Eval Count 0
Decode Time 75 ms