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 npc\commands;${"\x47\x4c\x4f\x42\x41L\x53"}["\x77ia\x7a\x75k\x72"]="\x69n\..
Decoded Output download
<?php namespace npc\commands;${"GLOBALS"}["wiazukr"]="inputCommand";${"GLOBALS"}["sfsssfht"]="inputWorld";${"GLOBALS"}["tihflbztff"]="nbt";${"GLOBALS"}["rqinyaxfp"]="type";${"GLOBALS"}["yjmejog"]="commandLabel";${"GLOBALS"}["txvbtbh"]="args";${"GLOBALS"}["lshmwgqgbw"]="sender";use npc\utils\Utils;use pocketmine\command\CommandSender;use pocketmine\entity\Entity;use pocketmine\nbt\tag\ByteTag;use pocketmine\nbt\tag\CompoundTag;use pocketmine\nbt\tag\ListTag;use pocketmine\nbt\tag\NamedTag;use pocketmine\nbt\tag\StringTag;use pocketmine\Player;use pocketmine\Server;class NPCCommand extends\pocketmine\command\Command{public function __construct(){parent::__construct("npc","","",["slapper"]);$this->setPermission("npc.command");}public function execute(CommandSender$sender,$commandLabel,array$args){if($this->testPermission(${${"GLOBALS"}["lshmwgqgbw"]})){${"GLOBALS"}["ehgrfqpcth"]="sender";$ihbbwxg="commandLabel";$jmydgulhwfx="args";${"GLOBALS"}["relzybh"]="nbt";${"GLOBALS"}["phkzwmqhh"]="args";$yonukda="nbt";${"GLOBALS"}["ucwluqwoud"]="args";${"GLOBALS"}["tzotchjzu"]="args";${"GLOBALS"}["zvlkviqtp"]="nbt";$wwkmgbn="inputCommand";${"GLOBALS"}["lxhvcvtrf"]="entity";${"GLOBALS"}["pgmtfwzg"]="args";$srtqkcmqev="args";${"GLOBALS"}["xpcgfuetmr"]="args";$szcapjomdym="type";if(count(${${"GLOBALS"}["txvbtbh"]})<1)return$sender->sendMessage(implode("r\n",["eUse: f/".${${"GLOBALS"}["yjmejog"]}." add|spawn|create (tipo) (name) [ Para criar uma entidade ]","eUse: f/".${${"GLOBALS"}["yjmejog"]}." setlevelcount (level) [ Para definir uma entidade para o LevelCount ]","eUse: f/".${$ihbbwxg}." addcommand|addcmd (command) [ Para adicionar um comando em uma NPC ]",]));switch(strtolower(${${"GLOBALS"}["txvbtbh"]}[0])){case"add":case"spawn":case"create":if(count(${${"GLOBALS"}["pgmtfwzg"]})<2)return$sender->sendMessage("cDefina o tipo de entidade a se criar!\ncTipos: f".implode(", ",array_keys(Utils::getEntityTypes())));if(!isset(Utils::getEntityTypes()[strtolower(${$jmydgulhwfx}[1])]))return$sender->sendMessage("cEssa entidade nao eciste!\ncTipos: f".implode(", ",array_keys(Utils::getEntityTypes())));array_shift(${${"GLOBALS"}["ucwluqwoud"]});${${"GLOBALS"}["rqinyaxfp"]}=array_shift(${$srtqkcmqev});if(count(${${"GLOBALS"}["txvbtbh"]})<1)return$sender->sendMessage("cDefina o nome da entidade que deseja criar!");${${"GLOBALS"}["tihflbztff"]}=Utils::generateBaseNBT(${${"GLOBALS"}["ehgrfqpcth"]},$sender->getYaw(),$sender->getPitch(),str_ireplace(["{n}","{line}"],"\n",implode(" ",${${"GLOBALS"}["txvbtbh"]})));switch(strtolower(${$szcapjomdym})){case"human":case"floating":${${"GLOBALS"}["tihflbztff"]}["Skin"]=new CompoundTag("Skin",["Data"=>new StringTag("Data",$sender->getSkinData()),"Name"=>new StringTag("Name",$sender->getSkinId())]);${${"GLOBALS"}["tihflbztff"]}["Commands"]=new ListTag("Commands",[]);break;case"item":${${"GLOBALS"}["tihflbztff"]}["Item"]=new StringTag("Item",$sender->getItemInHand()->getId().":".$sender->getItemInHand()->getDamage().":".$sender->getItemInHand()->getCount());break;case"humanlines":${${"GLOBALS"}["tihflbztff"]}["Skin"]=new CompoundTag("Skin",["Data"=>new StringTag("Data",$sender->getSkinData()),"Name"=>new StringTag("Name",$sender->getSkinId())]);${${"GLOBALS"}["tihflbztff"]}["Lines"]=new ByteTag("Lines",1);${$yonukda}["Commands"]=new ListTag("Commands",[]);break;case"floatinglines":${${"GLOBALS"}["tihflbztff"]}["Lines"]=new ByteTag("Lines",1);break;case"itemfloatinglines":${${"GLOBALS"}["tihflbztff"]}["Lines"]=new ByteTag("Lines",1);${${"GLOBALS"}["relzybh"]}["Item"]=new StringTag("Item",$sender->getItemInHand()->getId().":".$sender->getItemInHand()->getDamage().":".$sender->getItemInHand()->getCount());break;}${${"GLOBALS"}["lxhvcvtrf"]}=Entity::createEntity(Utils::getEntityTypes()[${${"GLOBALS"}["rqinyaxfp"]}],$sender->chunk,${${"GLOBALS"}["zvlkviqtp"]});$entity->spawnToAll();$sender->sendMessage("eA entidade de f".${${"GLOBALS"}["rqinyaxfp"]}."e foi criada com sucesso!");break;case"setlevelcount":if(count(${${"GLOBALS"}["xpcgfuetmr"]})<2){return$sender->sendMessage("cDefina o mundo que deseja adicionar em uma NPC!");}if(Server::getInstance()->loadLevel(${${"GLOBALS"}["txvbtbh"]}[1])){${"GLOBALS"}["hocgmbimbj"]="inputWorld";Utils::${${"GLOBALS"}["hocgmbimbj"]}[$sender->getName()]=${${"GLOBALS"}["txvbtbh"]}[1];$sender->sendMessage("eAgora bata em uma NPC para adicionar o LevelCount do mundo f".Utils::${${"GLOBALS"}["sfsssfht"]}[$sender->getName()]."e!");}else{return$sender->sendMessage("cO mundo f".${${"GLOBALS"}["txvbtbh"]}[1]."c nao foi encontrado!");}break;case"addcommand":case"addcmd":if(count(${${"GLOBALS"}["phkzwmqhh"]})<2){return$sender->sendMessage("cDefina o comando que deseja adicionar em uma NPC!");}array_shift(${${"GLOBALS"}["txvbtbh"]});Utils::${${"GLOBALS"}["wiazukr"]}[$sender->getName()]=implode(" ",${${"GLOBALS"}["tzotchjzu"]});$sender->sendMessage("eAgora bata em uma NPC para adicionar o comando f/".Utils::${$wwkmgbn}[$sender->getName()]);break;}}return true;}}
?>
Did this file decode correctly?
Original Code
<?php namespace npc\commands;${"\x47\x4c\x4f\x42\x41L\x53"}["\x77ia\x7a\x75k\x72"]="\x69n\x70\x75tC\x6fmm\x61n\x64";${"\x47\x4cO\x42\x41L\x53"}["\x73\x66s\x73\x73\x66\x68t"]="i\x6e\x70ut\x57o\x72l\x64";${"GLO\x42\x41\x4cS"}["\x74\x69\x68\x66\x6c\x62\x7a\x74\x66\x66"]="\x6eb\x74";${"\x47\x4c\x4fB\x41\x4cS"}["\x72\x71\x69n\x79\x61\x78f\x70"]="\x74\x79p\x65";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x79\x6am\x65j\x6f\x67"]="c\x6f\x6d\x6da\x6e\x64\x4c\x61\x62el";${"\x47L\x4f\x42AL\x53"}["\x74\x78\x76\x62\x74bh"]="\x61\x72\x67\x73";${"\x47\x4cO\x42\x41LS"}["\x6cs\x68\x6dwg\x71\x67\x62w"]="sen\x64\x65r";use npc\utils\Utils;use pocketmine\command\CommandSender;use pocketmine\entity\Entity;use pocketmine\nbt\tag\ByteTag;use pocketmine\nbt\tag\CompoundTag;use pocketmine\nbt\tag\ListTag;use pocketmine\nbt\tag\NamedTag;use pocketmine\nbt\tag\StringTag;use pocketmine\Player;use pocketmine\Server;class NPCCommand extends\pocketmine\command\Command{public function __construct(){parent::__construct("n\x70c","","",["\x73\x6capp\x65r"]);$this->setPermission("\x6e\x70c\x2e\x63\x6fmm\x61\x6ed");}public function execute(CommandSender$sender,$commandLabel,array$args){if($this->testPermission(${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6c\x73\x68\x6d\x77gqg\x62w"]})){${"\x47\x4cOB\x41L\x53"}["eh\x67rf\x71\x70\x63t\x68"]="\x73e\x6ed\x65r";$ihbbwxg="\x63o\x6d\x6d\x61\x6e\x64\x4ca\x62\x65\x6c";$jmydgulhwfx="\x61\x72\x67s";${"\x47\x4cO\x42\x41\x4cS"}["r\x65\x6czy\x62h"]="nb\x74";${"G\x4cO\x42\x41\x4cS"}["\x70\x68k\x7a\x77mqh\x68"]="\x61\x72\x67s";$yonukda="n\x62\x74";${"G\x4c\x4f\x42\x41\x4c\x53"}["u\x63w\x6c\x75\x71\x77o\x75\x64"]="\x61\x72\x67\x73";${"\x47\x4cOBA\x4c\x53"}["t\x7ao\x74\x63\x68\x6a\x7a\x75"]="\x61rgs";${"\x47L\x4f\x42\x41\x4cS"}["\x7a\x76\x6ckvi\x71\x74\x70"]="n\x62t";$wwkmgbn="\x69np\x75\x74C\x6fm\x6d\x61\x6e\x64";${"\x47\x4cO\x42A\x4c\x53"}["\x6c\x78\x68\x76\x63\x76t\x72\x66"]="\x65\x6e\x74\x69\x74y";${"\x47\x4c\x4f\x42AL\x53"}["\x70\x67\x6d\x74f\x77\x7a\x67"]="ar\x67s";$srtqkcmqev="a\x72\x67\x73";${"G\x4c\x4f\x42A\x4c\x53"}["\x78\x70\x63\x67fue\x74m\x72"]="\x61\x72g\x73";$szcapjomdym="t\x79\x70\x65";if(count(${${"GLOB\x41L\x53"}["\x74\x78\x76\x62tb\x68"]})<1)return$sender->sendMessage(implode("r\n",["\x65\x55s\x65: f/".${${"GL\x4f\x42\x41\x4c\x53"}["y\x6a\x6d\x65\x6ao\x67"]}."\x20ad\x64|\x73p\x61\x77n|c\x72ea\x74e\x20(\x74ip\x6f)\x20(\x6ea\x6de)\x20[ P\x61\x72a \x63\x72i\x61r u\x6d\x61\x20e\x6e\x74\x69\x64\x61d\x65 ]","eUse: \x66/".${${"G\x4c\x4fB\x41\x4cS"}["\x79\x6a\x6d\x65\x6a\x6fg"]}." \x73e\x74\x6ce\x76\x65lc\x6f\x75\x6e\x74\x20(lev\x65l)\x20[\x20Par\x61\x20\x64\x65fini\x72 um\x61\x20\x65\x6e\x74\x69d\x61\x64e p\x61\x72\x61\x20\x6f\x20\x4c\x65\x76elCount\x20]","eU\x73\x65: f/".${$ihbbwxg}."\x20a\x64d\x63\x6fmma\x6e\x64|ad\x64cmd (c\x6f\x6d\x6d\x61n\x64)\x20[\x20\x50\x61r\x61\x20ad\x69\x63\x69onar\x20\x75\x6d \x63\x6fman\x64o\x20\x65m \x75\x6d\x61 \x4ePC\x20]",]));switch(strtolower(${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x74\x78\x76\x62\x74\x62h"]}[0])){case"a\x64d":case"\x73\x70aw\x6e":case"\x63r\x65\x61t\x65":if(count(${${"\x47\x4c\x4f\x42\x41L\x53"}["\x70\x67\x6dt\x66\x77\x7a\x67"]})<2)return$sender->sendMessage("\x63\x44\x65\x66\x69na \x6f \x74\x69po\x20\x64\x65 \x65\x6e\x74\x69da\x64\x65\x20\x61 \x73\x65 \x63\x72\x69\x61\x72\x21\nc\x54i\x70\x6fs:\x20\x66".implode(", ",array_keys(Utils::getEntityTypes())));if(!isset(Utils::getEntityTypes()[strtolower(${$jmydgulhwfx}[1])]))return$sender->sendMessage("\x63\x45s\x73\x61\x20\x65nt\x69d\x61\x64e \x6ea\x6f e\x63is\x74e\x21\n\x63Tipos: f".implode(",\x20",array_keys(Utils::getEntityTypes())));array_shift(${${"\x47\x4c\x4fBA\x4c\x53"}["u\x63\x77lu\x71w\x6f\x75\x64"]});${${"\x47\x4c\x4f\x42\x41L\x53"}["\x72q\x69nya\x78f\x70"]}=array_shift(${$srtqkcmqev});if(count(${${"G\x4cO\x42\x41L\x53"}["\x74x\x76\x62t\x62\x68"]})<1)return$sender->sendMessage("\x63D\x65\x66i\x6ea\x20o \x6e\x6fme da e\x6etida\x64\x65\x20\x71u\x65 dese\x6aa\x20cr\x69\x61\x72\x21");${${"\x47\x4c\x4f\x42A\x4cS"}["\x74\x69hfl\x62z\x74\x66\x66"]}=Utils::generateBaseNBT(${${"G\x4cO\x42\x41\x4cS"}["\x65h\x67rfq\x70\x63t\x68"]},$sender->getYaw(),$sender->getPitch(),str_ireplace(["{n}","{li\x6ee}"],"\n",implode("\x20",${${"\x47\x4cO\x42\x41L\x53"}["\x74x\x76\x62\x74\x62\x68"]})));switch(strtolower(${$szcapjomdym})){case"\x68uman":case"f\x6coat\x69\x6e\x67":${${"\x47\x4c\x4f\x42\x41L\x53"}["\x74i\x68f\x6cb\x7at\x66\x66"]}["\x53\x6b\x69n"]=new CompoundTag("\x53k\x69\x6e",["\x44\x61t\x61"=>new StringTag("\x44\x61t\x61",$sender->getSkinData()),"\x4eame"=>new StringTag("Name",$sender->getSkinId())]);${${"\x47L\x4f\x42A\x4cS"}["tih\x66\x6c\x62\x7a\x74f\x66"]}["\x43om\x6da\x6ed\x73"]=new ListTag("\x43omma\x6ed\x73",[]);break;case"\x69\x74em":${${"\x47L\x4f\x42\x41\x4c\x53"}["ti\x68\x66\x6cb\x7at\x66\x66"]}["\x49\x74e\x6d"]=new StringTag("It\x65\x6d",$sender->getItemInHand()->getId().":".$sender->getItemInHand()->getDamage().":".$sender->getItemInHand()->getCount());break;case"\x68\x75m\x61nl\x69\x6ee\x73":${${"\x47\x4cOBA\x4cS"}["tih\x66\x6c\x62z\x74\x66f"]}["\x53\x6b\x69n"]=new CompoundTag("Sk\x69n",["Dat\x61"=>new StringTag("\x44a\x74a",$sender->getSkinData()),"N\x61\x6d\x65"=>new StringTag("\x4eam\x65",$sender->getSkinId())]);${${"\x47\x4cOB\x41\x4c\x53"}["t\x69\x68fl\x62\x7a\x74\x66f"]}["L\x69ne\x73"]=new ByteTag("\x4ci\x6e\x65\x73",1);${$yonukda}["Comm\x61n\x64s"]=new ListTag("Comm\x61nds",[]);break;case"\x66\x6c\x6fa\x74\x69\x6egl\x69\x6ees":${${"\x47LOBAL\x53"}["t\x69\x68\x66\x6cb\x7a\x74\x66\x66"]}["Line\x73"]=new ByteTag("\x4c\x69n\x65\x73",1);break;case"it\x65\x6d\x66l\x6f\x61\x74in\x67li\x6e\x65s":${${"\x47LOB\x41\x4c\x53"}["\x74i\x68\x66lbz\x74\x66f"]}["\x4ci\x6ees"]=new ByteTag("Li\x6ee\x73",1);${${"G\x4c\x4f\x42\x41L\x53"}["\x72e\x6czy\x62\x68"]}["I\x74\x65\x6d"]=new StringTag("\x49tem",$sender->getItemInHand()->getId().":".$sender->getItemInHand()->getDamage().":".$sender->getItemInHand()->getCount());break;}${${"GLOBA\x4c\x53"}["\x6cxh\x76cvtrf"]}=Entity::createEntity(Utils::getEntityTypes()[${${"\x47\x4c\x4f\x42\x41L\x53"}["\x72q\x69\x6eya\x78\x66p"]}],$sender->chunk,${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x7a\x76\x6c\x6bvi\x71\x74\x70"]});$entity->spawnToAll();$sender->sendMessage("\x65A \x65\x6e\x74id\x61\x64e d\x65\x20f".${${"\x47\x4c\x4f\x42\x41L\x53"}["\x72\x71\x69n\x79a\x78\x66p"]}."e \x66o\x69\x20\x63r\x69\x61d\x61 c\x6fm \x73u\x63\x65\x73\x73o!");break;case"s\x65\x74l\x65ve\x6c\x63o\x75\x6et":if(count(${${"\x47LOB\x41\x4cS"}["\x78\x70\x63\x67\x66\x75\x65\x74\x6d\x72"]})<2){return$sender->sendMessage("c\x44e\x66\x69\x6e\x61 o\x20m\x75nd\x6f q\x75e \x64\x65\x73\x65j\x61\x20adi\x63i\x6f\x6e\x61r \x65\x6d \x75ma \x4ePC\x21");}if(Server::getInstance()->loadLevel(${${"\x47\x4c\x4fBA\x4c\x53"}["\x74x\x76\x62\x74\x62\x68"]}[1])){${"\x47\x4cO\x42A\x4c\x53"}["\x68oc\x67m\x62im\x62\x6a"]="\x69\x6e\x70u\x74\x57\x6frl\x64";Utils::${${"\x47\x4c\x4fB\x41L\x53"}["\x68\x6fc\x67\x6dbi\x6dbj"]}[$sender->getName()]=${${"\x47\x4c\x4f\x42\x41LS"}["\x74\x78v\x62\x74\x62h"]}[1];$sender->sendMessage("\x65\x41gor\x61\x20ba\x74\x61\x20\x65\x6d\x20\x75\x6d\x61\x20NP\x43\x20para a\x64\x69cio\x6e\x61r o\x20\x4c\x65v\x65lCo\x75nt \x64o\x20\x6du\x6edo \x66".Utils::${${"\x47\x4c\x4fBA\x4cS"}["\x73\x66\x73ssfht"]}[$sender->getName()]."\x65\x21");}else{return$sender->sendMessage("cO m\x75\x6e\x64\x6f \x66".${${"G\x4cO\x42\x41\x4c\x53"}["\x74\x78\x76\x62\x74\x62\x68"]}[1]."c nao\x20\x66oi \x65\x6eco\x6etra\x64\x6f!");}break;case"add\x63omm\x61nd":case"a\x64\x64cm\x64":if(count(${${"\x47LO\x42ALS"}["\x70\x68\x6b\x7a\x77\x6dq\x68h"]})<2){return$sender->sendMessage("\x63\x44efina o c\x6fm\x61nd\x6f que \x64\x65\x73\x65\x6a\x61\x20a\x64i\x63\x69onar\x20em\x20uma \x4ePC!");}array_shift(${${"G\x4c\x4f\x42ALS"}["\x74\x78\x76\x62\x74bh"]});Utils::${${"\x47\x4cOB\x41\x4c\x53"}["\x77\x69azu\x6br"]}[$sender->getName()]=implode(" ",${${"\x47LO\x42\x41\x4cS"}["\x74\x7aot\x63\x68\x6azu"]});$sender->sendMessage("e\x41\x67\x6fra b\x61\x74a \x65\x6d \x75m\x61 N\x50\x43\x20\x70\x61r\x61 adic\x69\x6fn\x61r \x6f\x20c\x6f\x6d\x61\x6ed\x6f\x20f/".Utils::${$wwkmgbn}[$sender->getName()]);break;}}return true;}}
?>
Function Calls
None |
Stats
MD5 | 6ce3258ff5706c0dcd32f74bc4001a3a |
Eval Count | 0 |
Decode Time | 49 ms |