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 MlgRush\Arena;${"\x47L\x4fBALS"}["s\x62sgrpr\x71\x66"]="\x69te\x6d\x73";${..
Decoded Output download
<?php namespace MlgRush\Arena;${"GLOBALS"}["sbsgrprqf"]="items";${"GLOBALS"}["raldnd"]="position";${"GLOBALS"}["ydmgifr"]="place";${"GLOBALS"}["dxmpigm"]="pos";${"GLOBALS"}["tohdzwp"]="name";${"GLOBALS"}["rmpxqwmk"]="connected";${"GLOBALS"}["vqqnnlq"]="text";${"GLOBALS"}["xitpfrlxw"]="player";${"GLOBALS"}["gkwbucjebg"]="score";${"GLOBALS"}["wrkdjxtbyb"]="score2";${"GLOBALS"}["ywgculuso"]="score1";${"GLOBALS"}["isqdswnvb"]="players";${"GLOBALS"}["ppgvxpxybix"]="p";${"GLOBALS"}["vbdhfbxxugj"]="world";${"GLOBALS"}["olfghgbdx"]="poss";${"GLOBALS"}["nwkpohf"]="plugin";use MlgRush\Main;use pocketmine\item\Dye;use pocketmine\item\Item;use pocketmine\item\Stick;use pocketmine\item\ItemBlock;use pocketmine\item\IronPickaxe;use pocketminelock\Sandstone;use pocketminelock\Air;use pocketmine\level\Level;use pocketmine\level\Position;use pocketmine\math\Vector3;use pocketmine\Player;use function strtolower;use function str_replace;use function array_values;use function array_keys;use function sizeof;class Arena{const STATE_OFFSIDE=0;const STATE_WAITING=1;const STATE_IN_GAME=2;private$state=self::STATE_OFFSIDE;private$players=[];public$positions=[];private$places=[];private$world;private$pointsToWin;private$plugin;public$hotbar=true;public function __construct(Main$plugin,array$poss,string$world,int$pointsToWin=10){$jthpyypsdg="pointsToWin";$this->plugin=${${"GLOBALS"}["nwkpohf"]};$this->positions=${${"GLOBALS"}["olfghgbdx"]};$this->world=${${"GLOBALS"}["vbdhfbxxugj"]};$this->pointsToWin=${$jthpyypsdg};}public function onUpdate(){if(!$this->hotbar){return;}$bdgtmjchjdlp="players";${"GLOBALS"}["ksugcbrkhm"]="players";${"GLOBALS"}["lmguihnwof"]="score2";if(!$this->gameIsOn()){if($this->isWaiting()){foreach($this->getPlayers()as${${"GLOBALS"}["ppgvxpxybix"]}){${${"GLOBALS"}["ppgvxpxybix"]}["obj"]->sendPopup($this->getPlugin()->getCfg()->get("waiting","Waiting..."));}}return;}${"GLOBALS"}["pyqhaoe"]="players";${"GLOBALS"}["vdkhenc"]="text";${${"GLOBALS"}["isqdswnvb"]}=array_values($this->players);${"GLOBALS"}["xylhwxngrz"]="score1";${${"GLOBALS"}["ywgculuso"]}=${${"GLOBALS"}["ksugcbrkhm"]}[0]["score"];${${"GLOBALS"}["lmguihnwof"]}=${$bdgtmjchjdlp}[1]["score"];${"GLOBALS"}["obowpmu"]="players";if(${${"GLOBALS"}["ywgculuso"]}>${${"GLOBALS"}["wrkdjxtbyb"]}){${${"GLOBALS"}["ywgculuso"]}="a{$score1}";${"GLOBALS"}["oykhujmq"]="score2";${${"GLOBALS"}["oykhujmq"]}="c{$score2}";}elseif(${${"GLOBALS"}["xylhwxngrz"]}===${${"GLOBALS"}["wrkdjxtbyb"]}){${"GLOBALS"}["pcyovdqmghq"]="score1";$hcuckjvfs="score2";${${"GLOBALS"}["pcyovdqmghq"]}=${$hcuckjvfs}="e{$score1}";}else{$mgdiihbybo="score1";${"GLOBALS"}["ivjqbp"]="score2";${$mgdiihbybo}="c{$score1}";${${"GLOBALS"}["ivjqbp"]}="a{$score2}";}$djypgjtgu="players";${${"GLOBALS"}["vdkhenc"]}="f".${${"GLOBALS"}["pyqhaoe"]}[0]["obj"]->getDisplayName().": $score1 7| "."f".${${"GLOBALS"}["obowpmu"]}[1]["obj"]->getDisplayName().": $score2";${${"GLOBALS"}["isqdswnvb"]}[0]["obj"]->sendTip("
$text");${$djypgjtgu}[1]["obj"]->sendTip("
$text");}public function onScore(Player$player){$rmeitj="score";if(!$this->gameIsOn()||$this->getPlayer($player->getName())===null){return;}${${"GLOBALS"}["gkwbucjebg"]}=++$this->players[strtolower($player->getName())]["score"];if(${$rmeitj}>=$this->getScoreToWin()){$this->onVictory($player->getName());}else{${"GLOBALS"}["ucjimyueb"]="player";$this->replaceArena();foreach($this->getPlayers()as${${"GLOBALS"}["ucjimyueb"]}){$fyzffwo="player";$this->setProperties(${${"GLOBALS"}["xitpfrlxw"]}["obj"]);$this->setItems(${$fyzffwo}["obj"]);${${"GLOBALS"}["xitpfrlxw"]}["obj"]->teleport(${${"GLOBALS"}["xitpfrlxw"]}["pos"]);}}}public function onVictory(string$winner=null){$this->replaceArena();$hadwaow="text";$this->state=self::STATE_OFFSIDE;$yhqmmsrszm="text";${"GLOBALS"}["xukpejptqb"]="winner";${"GLOBALS"}["ifbifr"]="player";${$hadwaow}=$this->getPlugin()->getCfg()->get("ended","Game end! Winner: %p");${$yhqmmsrszm}=str_replace("%p",${${"GLOBALS"}["xukpejptqb"]},${${"GLOBALS"}["vqqnnlq"]});${${"GLOBALS"}["rmpxqwmk"]}=true;foreach($this->getPlayers()as${${"GLOBALS"}["tohdzwp"]}=>${${"GLOBALS"}["ifbifr"]}){$hatcwabtqv="player";${"GLOBALS"}["rzlsqdcnw"]="name";if(${$hatcwabtqv}["obj"]->isOnline()){$tlksdbpn="player";${"GLOBALS"}["ythvhrhypikm"]="player";$this->setProperties(${${"GLOBALS"}["ythvhrhypikm"]}["obj"]);${$tlksdbpn}["obj"]->setMaxHealth(24);${${"GLOBALS"}["xitpfrlxw"]}["obj"]->setHealth(24);$tntfjfkclgi="defaultLevel";${"GLOBALS"}["rpeqaiyrd"]="winner";${$tntfjfkclgi}=$this->getPlugin()->getServer()->getDefaultLevel();if(${${"GLOBALS"}["xitpfrlxw"]}["obj"]->getLevel()->getFolderName()!==$defaultLevel->getFolderName()){${${"GLOBALS"}["xitpfrlxw"]}["obj"]->teleport($defaultLevel->getSpawnLocation());}if(${${"GLOBALS"}["rpeqaiyrd"]}!==null){${"GLOBALS"}["psnohvvxsk"]="player";${${"GLOBALS"}["psnohvvxsk"]}["obj"]->sendMessage(${${"GLOBALS"}["vqqnnlq"]});}}else{$ydnygsfxh="connected";${$ydnygsfxh}=false;}$this->removePlayer(${${"GLOBALS"}["rzlsqdcnw"]});}if(${${"GLOBALS"}["rmpxqwmk"]}){$this->getPlugin()->getServer()->unloadLevel($this->getLevel());}}public function onPlace(Vector3$pos){$this->places[]=${${"GLOBALS"}["dxmpigm"]};}public function replaceArena(){${"GLOBALS"}["ghafxrdi"]="level";$eupntf="place";${${"GLOBALS"}["ghafxrdi"]}=$this->getLevel();foreach($this->places as${$eupntf}){$level->setBlock(${${"GLOBALS"}["ydmgifr"]},new Air());}$this->places=[];}public function addPlayer(Player$player):bool{$zirubvz="position";if($this->gameIsOn()||sizeof($this->positions)!==2){return false;}${${"GLOBALS"}["raldnd"]}=$this->positions[sizeof($this->getPlayers())];$tfdyku="position";${$zirubvz}=Position::fromObject(${${"GLOBALS"}["raldnd"]},$this->getLevel());$uqxnokkrrt="player";if($this->getPlayers()===[]){$this->state=self::STATE_WAITING;}else{$this->state=self::STATE_IN_GAME;}$this->players[strtolower($player->getName())]=["obj"=>${$uqxnokkrrt},"pos"=>${$tfdyku},"score"=>0];if($this->gameIsOn()){$ymslgpkh="player";${${"GLOBALS"}["vqqnnlq"]}=$this->getPlugin()->getCfg()->get("started","Game started!");foreach($this->getPlayers()as${$ymslgpkh}){${"GLOBALS"}["ykwcbxekjw"]="text";$ushbtob="player";${${"GLOBALS"}["xitpfrlxw"]}["obj"]->sendMessage(${${"GLOBALS"}["ykwcbxekjw"]});$this->setProperties(${${"GLOBALS"}["xitpfrlxw"]}["obj"]);${$ushbtob}["obj"]->teleport(${${"GLOBALS"}["xitpfrlxw"]}["pos"]);$this->setItems(${${"GLOBALS"}["xitpfrlxw"]}["obj"]);}}else{${"GLOBALS"}["lpuzzvv"]="name";${"GLOBALS"}["bqxzfoelyp"]="inventory";${${"GLOBALS"}["bqxzfoelyp"]}=$player->getInventory();${"GLOBALS"}["pxbetkm"]="name";${${"GLOBALS"}["lpuzzvv"]}=$this->getPlugin()->getCfg()->get("item-quit","Quit!");$inventory->clearAll();$inventory->addItem((new Dye(Dye::RED))->setCustomName(${${"GLOBALS"}["pxbetkm"]}));$inventory->addItem(Item::get(102)->setCustomName("0"));$inventory->addItem(Item::get(102)->setCustomName("1"));$nbihzeicjo="player";$inventory->addItem(Item::get(102)->setCustomName("2"));$inventory->addItem(Item::get(102)->setCustomName("3"));$inventory->addItem(Item::get(102)->setCustomName("4"));$inventory->addItem(Item::get(102)->setCustomName("5"));$inventory->addItem(Item::get(102)->setCustomName("6"));$inventory->addItem(Item::get(102)->setCustomName("7"));$inventory->sendContents(${$nbihzeicjo});}return true;}public function setProperties(Player$player){$player->setGamemode(Player::SURVIVAL);$player->getInventory()->clearAll();$player->removeAllEffects();$player->setMaxHealth(20);$player->setHealth(20);$player->setFood($player->getMaxFood());}public function setItems(Player$player){$decduynzh="items";${$decduynzh}=[new Stick(),new ItemBlock(new Sandstone(),0,64),new IronPickaxe()];$player->getInventory()->addItem(...${${"GLOBALS"}["sbsgrprqf"]});}public function getEnemy(string$player){${"GLOBALS"}["whhbmldigw"]="players";$rclzlnth="player";${"GLOBALS"}["bpfdftb"]="players";if($this->getPlayer(${$rclzlnth})===null||!$this->gameIsOn()){return null;}$injoxecnviti="player";${${"GLOBALS"}["bpfdftb"]}=array_keys($this->getPlayers());if(${${"GLOBALS"}["whhbmldigw"]}[0]===strtolower(${$injoxecnviti})){$xnwbbdsl="players";return${$xnwbbdsl}[1];}else{return${${"GLOBALS"}["isqdswnvb"]}[0];}}public function getLevel(){$this->getPlugin()->getServer()->loadLevel($this->getWorld());return$this->getPlugin()->getServer()->getLevelByName($this->getWorld());}public function gameIsOn():bool{return$this->state===self::STATE_IN_GAME;}public function isWaiting():bool{return$this->state===self::STATE_WAITING;}public function removePlayer($player){${"GLOBALS"}["scexuijdbag"]="player";if(${${"GLOBALS"}["scexuijdbag"]} instanceof Player){$fhcvcc="player";${$fhcvcc}=$player->getName();}${"GLOBALS"}["eujbbospml"]="player";unset($this->players[strtolower(${${"GLOBALS"}["eujbbospml"]})]);}public function getPlayer(string$player){return$this->players[strtolower(${${"GLOBALS"}["xitpfrlxw"]})]??null;}public function getPlayers():array{return$this->players;}public function getWorld():string{return$this->world;}public function getPlugin():Main{return$this->plugin;}public function getScoreToWin():int{return$this->pointsToWin;}}
?>
Did this file decode correctly?
Original Code
<?php namespace MlgRush\Arena;${"\x47L\x4fBALS"}["s\x62sgrpr\x71\x66"]="\x69te\x6d\x73";${"\x47L\x4f\x42\x41L\x53"}["\x72\x61\x6cdn\x64"]="\x70\x6fs\x69ti\x6f\x6e";${"\x47L\x4fB\x41L\x53"}["\x79d\x6d\x67i\x66\x72"]="p\x6c\x61\x63\x65";${"G\x4c\x4fB\x41\x4c\x53"}["\x64\x78m\x70\x69\x67\x6d"]="p\x6f\x73";${"G\x4c\x4f\x42\x41L\x53"}["\x74\x6f\x68\x64z\x77\x70"]="\x6e\x61m\x65";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x72\x6d\x70\x78\x71w\x6d\x6b"]="c\x6f\x6en\x65\x63\x74\x65\x64";${"\x47\x4c\x4fB\x41\x4c\x53"}["v\x71qnn\x6c\x71"]="\x74\x65\x78\x74";${"\x47\x4cO\x42ALS"}["\x78\x69\x74\x70\x66\x72\x6cx\x77"]="\x70l\x61y\x65r";${"\x47L\x4fB\x41\x4cS"}["\x67\x6b\x77buc\x6a\x65\x62g"]="\x73\x63\x6f\x72\x65";${"\x47\x4c\x4fBA\x4cS"}["\x77r\x6bdjxt\x62yb"]="\x73\x63\x6f\x72\x65\x32";${"\x47\x4c\x4f\x42ALS"}["\x79\x77\x67cu\x6c\x75\x73\x6f"]="\x73cor\x651";${"GL\x4fB\x41\x4c\x53"}["\x69s\x71ds\x77\x6ev\x62"]="\x70l\x61\x79\x65\x72s";${"\x47\x4c\x4fB\x41L\x53"}["ppg\x76x\x70\x78y\x62\x69\x78"]="\x70";${"\x47\x4c\x4fB\x41\x4c\x53"}["vbd\x68\x66\x62\x78x\x75gj"]="\x77\x6frl\x64";${"G\x4c\x4f\x42\x41\x4cS"}["\x6flf\x67\x68\x67b\x64\x78"]="\x70os\x73";${"\x47\x4c\x4fBALS"}["\x6e\x77\x6bp\x6fh\x66"]="p\x6c\x75\x67\x69\x6e";use MlgRush\Main;use pocketmine\item\Dye;use pocketmine\item\Item;use pocketmine\item\Stick;use pocketmine\item\ItemBlock;use pocketmine\item\IronPickaxe;use pocketmine\block\Sandstone;use pocketmine\block\Air;use pocketmine\level\Level;use pocketmine\level\Position;use pocketmine\math\Vector3;use pocketmine\Player;use function strtolower;use function str_replace;use function array_values;use function array_keys;use function sizeof;class Arena{const STATE_OFFSIDE=0;const STATE_WAITING=1;const STATE_IN_GAME=2;private$state=self::STATE_OFFSIDE;private$players=[];public$positions=[];private$places=[];private$world;private$pointsToWin;private$plugin;public$hotbar=true;public function __construct(Main$plugin,array$poss,string$world,int$pointsToWin=10){$jthpyypsdg="p\x6fi\x6e\x74\x73T\x6f\x57\x69n";$this->plugin=${${"\x47\x4cOB\x41\x4c\x53"}["\x6ewkp\x6fhf"]};$this->positions=${${"\x47\x4c\x4fB\x41L\x53"}["o\x6cf\x67\x68g\x62\x64\x78"]};$this->world=${${"\x47\x4c\x4fBAL\x53"}["v\x62d\x68\x66b\x78xu\x67\x6a"]};$this->pointsToWin=${$jthpyypsdg};}public function onUpdate(){if(!$this->hotbar){return;}$bdgtmjchjdlp="\x70\x6c\x61\x79e\x72\x73";${"G\x4c\x4f\x42\x41\x4cS"}["\x6bs\x75gcb\x72\x6bh\x6d"]="\x70\x6c\x61\x79e\x72\x73";${"G\x4c\x4fBA\x4c\x53"}["l\x6dgu\x69\x68n\x77o\x66"]="sc\x6fr\x65\x32";if(!$this->gameIsOn()){if($this->isWaiting()){foreach($this->getPlayers()as${${"GL\x4f\x42\x41\x4c\x53"}["\x70\x70g\x76x\x70\x78\x79b\x69\x78"]}){${${"\x47\x4c\x4fBA\x4cS"}["\x70\x70gv\x78\x70\x78\x79\x62\x69\x78"]}["\x6f\x62\x6a"]->sendPopup($this->getPlugin()->getCfg()->get("wa\x69\x74ing","\x57a\x69\x74i\x6e\x67\x2e\x2e."));}}return;}${"\x47\x4c\x4fB\x41\x4c\x53"}["\x70\x79q\x68\x61\x6f\x65"]="\x70\x6c\x61y\x65\x72\x73";${"\x47\x4cO\x42\x41\x4c\x53"}["\x76\x64\x6b\x68\x65n\x63"]="\x74\x65\x78\x74";${${"\x47\x4cO\x42A\x4cS"}["\x69s\x71\x64\x73\x77\x6e\x76\x62"]}=array_values($this->players);${"\x47\x4c\x4fBAL\x53"}["x\x79\x6c\x68\x77x\x6e\x67r\x7a"]="\x73\x63\x6f\x72e\x31";${${"\x47\x4cO\x42\x41L\x53"}["y\x77\x67\x63ul\x75\x73\x6f"]}=${${"\x47L\x4fB\x41\x4c\x53"}["k\x73\x75gcb\x72kh\x6d"]}[0]["s\x63\x6fre"];${${"\x47\x4c\x4fB\x41L\x53"}["lm\x67u\x69\x68n\x77o\x66"]}=${$bdgtmjchjdlp}[1]["\x73\x63ore"];${"GL\x4fBA\x4c\x53"}["\x6fbow\x70\x6d\x75"]="\x70\x6c\x61ye\x72\x73";if(${${"GL\x4f\x42\x41\x4c\x53"}["\x79\x77\x67\x63ulu\x73\x6f"]}>${${"\x47\x4cO\x42ALS"}["\x77rk\x64\x6a\x78tbyb"]}){${${"GL\x4f\x42\x41LS"}["\x79\x77g\x63\x75\x6c\x75so"]}="a{$score1}";${"\x47\x4cO\x42\x41\x4c\x53"}["o\x79\x6bh\x75\x6a\x6d\x71"]="s\x63or\x652";${${"\x47\x4cO\x42AL\x53"}["\x6f\x79\x6bh\x75\x6amq"]}="\x63{$score2}";}elseif(${${"GLOB\x41\x4cS"}["\x78\x79\x6c\x68\x77\x78n\x67\x72z"]}===${${"\x47LO\x42\x41\x4cS"}["\x77rk\x64j\x78tb\x79\x62"]}){${"\x47LO\x42A\x4cS"}["p\x63y\x6f\x76\x64\x71\x6d\x67h\x71"]="s\x63o\x72e\x31";$hcuckjvfs="\x73\x63\x6f\x72\x65\x32";${${"\x47\x4c\x4fB\x41\x4c\x53"}["pc\x79\x6f\x76\x64\x71\x6d\x67h\x71"]}=${$hcuckjvfs}="\x65{$score1}";}else{$mgdiihbybo="\x73co\x72\x65\x31";${"GL\x4fBA\x4c\x53"}["\x69\x76j\x71\x62p"]="\x73\x63\x6f\x72\x65\x32";${$mgdiihbybo}="\x63{$score1}";${${"\x47L\x4fB\x41\x4c\x53"}["i\x76\x6aq\x62\x70"]}="a{$score2}";}$djypgjtgu="player\x73";${${"GLO\x42A\x4c\x53"}["\x76d\x6b\x68\x65\x6ec"]}="\x66".${${"\x47\x4cO\x42\x41\x4c\x53"}["p\x79\x71\x68\x61\x6fe"]}[0]["\x6fbj"]->getDisplayName().": $score1 \x37| "."\x66".${${"G\x4c\x4f\x42\x41\x4c\x53"}["o\x62\x6f\x77\x70\x6d\x75"]}[1]["obj"]->getDisplayName().":\x20$score2";${${"G\x4cOB\x41\x4c\x53"}["i\x73\x71\x64\x73\x77\x6e\x76\x62"]}[0]["ob\x6a"]->sendTip("\n\x20\n\x20\n$text");${$djypgjtgu}[1]["\x6fbj"]->sendTip("\n\x20\n\x20\n$text");}public function onScore(Player$player){$rmeitj="s\x63o\x72\x65";if(!$this->gameIsOn()||$this->getPlayer($player->getName())===null){return;}${${"\x47\x4c\x4fBA\x4c\x53"}["\x67k\x77b\x75\x63\x6a\x65\x62\x67"]}=++$this->players[strtolower($player->getName())]["\x73\x63\x6fr\x65"];if(${$rmeitj}>=$this->getScoreToWin()){$this->onVictory($player->getName());}else{${"\x47L\x4f\x42A\x4c\x53"}["\x75cji\x6dyu\x65\x62"]="\x70\x6ca\x79\x65r";$this->replaceArena();foreach($this->getPlayers()as${${"G\x4c\x4fBA\x4c\x53"}["\x75cji\x6d\x79\x75e\x62"]}){$fyzffwo="\x70l\x61\x79e\x72";$this->setProperties(${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x78\x69tp\x66r\x6c\x78\x77"]}["\x6fb\x6a"]);$this->setItems(${$fyzffwo}["o\x62\x6a"]);${${"\x47L\x4fBAL\x53"}["x\x69\x74pfr\x6cx\x77"]}["o\x62j"]->teleport(${${"\x47\x4cOB\x41\x4cS"}["x\x69tp\x66\x72lx\x77"]}["p\x6fs"]);}}}public function onVictory(string$winner=null){$this->replaceArena();$hadwaow="\x74\x65\x78t";$this->state=self::STATE_OFFSIDE;$yhqmmsrszm="\x74\x65x\x74";${"G\x4cO\x42ALS"}["\x78\x75\x6b\x70\x65\x6a\x70t\x71\x62"]="\x77\x69n\x6e\x65\x72";${"G\x4cO\x42A\x4c\x53"}["\x69\x66\x62if\x72"]="\x70\x6c\x61\x79\x65\x72";${$hadwaow}=$this->getPlugin()->getCfg()->get("\x65\x6e\x64\x65\x64","Game\x20e\x6e\x64\x21 \x57\x69nner: %\x70");${$yhqmmsrszm}=str_replace("%\x70",${${"GLO\x42\x41L\x53"}["\x78\x75\x6bpe\x6a\x70\x74q\x62"]},${${"GL\x4f\x42A\x4c\x53"}["v\x71\x71\x6e\x6e\x6cq"]});${${"\x47\x4c\x4fBALS"}["r\x6dp\x78qw\x6d\x6b"]}=true;foreach($this->getPlayers()as${${"G\x4c\x4fB\x41\x4c\x53"}["t\x6fh\x64zwp"]}=>${${"G\x4c\x4fB\x41\x4c\x53"}["if\x62\x69\x66\x72"]}){$hatcwabtqv="\x70l\x61\x79e\x72";${"\x47\x4cOB\x41\x4c\x53"}["\x72\x7a\x6cs\x71\x64\x63\x6e\x77"]="n\x61\x6de";if(${$hatcwabtqv}["\x6fbj"]->isOnline()){$tlksdbpn="\x70\x6c\x61\x79\x65\x72";${"GL\x4fBA\x4cS"}["\x79t\x68v\x68\x72\x68\x79p\x69\x6b\x6d"]="\x70\x6ca\x79\x65r";$this->setProperties(${${"G\x4c\x4f\x42\x41L\x53"}["\x79\x74h\x76h\x72h\x79\x70\x69\x6b\x6d"]}["o\x62\x6a"]);${$tlksdbpn}["obj"]->setMaxHealth(24);${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x78it\x70\x66r\x6cxw"]}["ob\x6a"]->setHealth(24);$tntfjfkclgi="\x64\x65\x66\x61\x75lt\x4c\x65\x76\x65l";${"\x47\x4c\x4f\x42\x41L\x53"}["r\x70\x65\x71\x61\x69\x79r\x64"]="\x77\x69\x6e\x6ee\x72";${$tntfjfkclgi}=$this->getPlugin()->getServer()->getDefaultLevel();if(${${"\x47\x4cO\x42AL\x53"}["\x78it\x70\x66\x72\x6c\x78\x77"]}["o\x62j"]->getLevel()->getFolderName()!==$defaultLevel->getFolderName()){${${"G\x4c\x4f\x42\x41\x4cS"}["\x78i\x74\x70f\x72lxw"]}["ob\x6a"]->teleport($defaultLevel->getSpawnLocation());}if(${${"\x47\x4c\x4f\x42\x41L\x53"}["\x72p\x65\x71\x61i\x79rd"]}!==null){${"G\x4c\x4f\x42\x41\x4c\x53"}["p\x73no\x68\x76\x76\x78\x73\x6b"]="\x70\x6ca\x79e\x72";${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x70\x73no\x68\x76\x76x\x73k"]}["\x6fb\x6a"]->sendMessage(${${"\x47\x4c\x4fB\x41\x4cS"}["v\x71qn\x6el\x71"]});}}else{$ydnygsfxh="\x63\x6fnn\x65\x63\x74ed";${$ydnygsfxh}=false;}$this->removePlayer(${${"G\x4cOB\x41LS"}["rzl\x73qdcn\x77"]});}if(${${"GLO\x42A\x4c\x53"}["\x72m\x70\x78q\x77\x6dk"]}){$this->getPlugin()->getServer()->unloadLevel($this->getLevel());}}public function onPlace(Vector3$pos){$this->places[]=${${"\x47L\x4f\x42\x41\x4cS"}["\x64\x78m\x70i\x67m"]};}public function replaceArena(){${"\x47LO\x42\x41\x4c\x53"}["\x67\x68\x61f\x78r\x64\x69"]="\x6ce\x76\x65\x6c";$eupntf="\x70l\x61\x63\x65";${${"\x47LOB\x41\x4c\x53"}["\x67\x68\x61fx\x72di"]}=$this->getLevel();foreach($this->places as${$eupntf}){$level->setBlock(${${"\x47LO\x42\x41L\x53"}["\x79\x64\x6d\x67if\x72"]},new Air());}$this->places=[];}public function addPlayer(Player$player):bool{$zirubvz="\x70\x6f\x73\x69t\x69\x6f\x6e";if($this->gameIsOn()||sizeof($this->positions)!==2){return false;}${${"\x47\x4cO\x42\x41\x4cS"}["\x72\x61\x6c\x64\x6e\x64"]}=$this->positions[sizeof($this->getPlayers())];$tfdyku="po\x73it\x69on";${$zirubvz}=Position::fromObject(${${"\x47\x4cO\x42\x41LS"}["\x72\x61\x6c\x64\x6e\x64"]},$this->getLevel());$uqxnokkrrt="\x70l\x61\x79e\x72";if($this->getPlayers()===[]){$this->state=self::STATE_WAITING;}else{$this->state=self::STATE_IN_GAME;}$this->players[strtolower($player->getName())]=["obj"=>${$uqxnokkrrt},"\x70\x6fs"=>${$tfdyku},"\x73\x63\x6fre"=>0];if($this->gameIsOn()){$ymslgpkh="\x70l\x61\x79er";${${"\x47\x4c\x4fBA\x4c\x53"}["\x76\x71\x71\x6e\x6el\x71"]}=$this->getPlugin()->getCfg()->get("s\x74\x61\x72t\x65\x64","\x47\x61m\x65 \x73tar\x74\x65d\x21");foreach($this->getPlayers()as${$ymslgpkh}){${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x79k\x77c\x62x\x65\x6b\x6a\x77"]="\x74\x65\x78\x74";$ushbtob="\x70l\x61\x79\x65\x72";${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x78\x69\x74\x70\x66\x72\x6cx\x77"]}["\x6fbj"]->sendMessage(${${"\x47\x4c\x4f\x42\x41LS"}["\x79k\x77c\x62\x78e\x6bj\x77"]});$this->setProperties(${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x78i\x74\x70\x66\x72\x6c\x78\x77"]}["\x6f\x62j"]);${$ushbtob}["o\x62j"]->teleport(${${"\x47\x4c\x4f\x42AL\x53"}["\x78it\x70\x66\x72\x6c\x78w"]}["pos"]);$this->setItems(${${"GL\x4fB\x41LS"}["\x78\x69\x74\x70\x66r\x6c\x78w"]}["o\x62\x6a"]);}}else{${"\x47\x4c\x4fB\x41\x4cS"}["\x6cpu\x7a\x7a\x76\x76"]="\x6e\x61\x6de";${"\x47L\x4f\x42\x41LS"}["bq\x78\x7a\x66o\x65\x6cy\x70"]="in\x76\x65\x6e\x74\x6f\x72\x79";${${"G\x4cOBA\x4cS"}["\x62\x71x\x7a\x66\x6f\x65\x6c\x79\x70"]}=$player->getInventory();${"\x47\x4c\x4f\x42\x41\x4cS"}["p\x78\x62et\x6b\x6d"]="\x6e\x61\x6de";${${"G\x4c\x4f\x42AL\x53"}["l\x70\x75\x7a\x7a\x76\x76"]}=$this->getPlugin()->getCfg()->get("\x69t\x65m-q\x75i\x74","\x51ui\x74\x21");$inventory->clearAll();$inventory->addItem((new Dye(Dye::RED))->setCustomName(${${"\x47\x4c\x4fB\x41L\x53"}["\x70xbe\x74\x6b\x6d"]}));$inventory->addItem(Item::get(102)->setCustomName("0"));$inventory->addItem(Item::get(102)->setCustomName("1"));$nbihzeicjo="\x70l\x61\x79\x65\x72";$inventory->addItem(Item::get(102)->setCustomName("\x32"));$inventory->addItem(Item::get(102)->setCustomName("3"));$inventory->addItem(Item::get(102)->setCustomName("\x34"));$inventory->addItem(Item::get(102)->setCustomName("\x35"));$inventory->addItem(Item::get(102)->setCustomName("\x36"));$inventory->addItem(Item::get(102)->setCustomName("7"));$inventory->sendContents(${$nbihzeicjo});}return true;}public function setProperties(Player$player){$player->setGamemode(Player::SURVIVAL);$player->getInventory()->clearAll();$player->removeAllEffects();$player->setMaxHealth(20);$player->setHealth(20);$player->setFood($player->getMaxFood());}public function setItems(Player$player){$decduynzh="\x69\x74\x65\x6d\x73";${$decduynzh}=[new Stick(),new ItemBlock(new Sandstone(),0,64),new IronPickaxe()];$player->getInventory()->addItem(...${${"\x47\x4cO\x42A\x4c\x53"}["s\x62\x73\x67r\x70rq\x66"]});}public function getEnemy(string$player){${"\x47L\x4f\x42\x41\x4c\x53"}["w\x68\x68b\x6d\x6c\x64\x69\x67\x77"]="\x70\x6c\x61\x79\x65\x72s";$rclzlnth="\x70l\x61\x79e\x72";${"\x47L\x4f\x42\x41\x4c\x53"}["\x62\x70fdf\x74\x62"]="\x70\x6c\x61\x79\x65\x72\x73";if($this->getPlayer(${$rclzlnth})===null||!$this->gameIsOn()){return null;}$injoxecnviti="pl\x61y\x65\x72";${${"\x47\x4cO\x42\x41\x4cS"}["\x62\x70\x66\x64f\x74b"]}=array_keys($this->getPlayers());if(${${"\x47\x4c\x4f\x42\x41L\x53"}["\x77h\x68\x62m\x6c\x64\x69g\x77"]}[0]===strtolower(${$injoxecnviti})){$xnwbbdsl="p\x6ca\x79ers";return${$xnwbbdsl}[1];}else{return${${"\x47L\x4f\x42\x41\x4c\x53"}["\x69\x73q\x64\x73\x77\x6e\x76\x62"]}[0];}}public function getLevel(){$this->getPlugin()->getServer()->loadLevel($this->getWorld());return$this->getPlugin()->getServer()->getLevelByName($this->getWorld());}public function gameIsOn():bool{return$this->state===self::STATE_IN_GAME;}public function isWaiting():bool{return$this->state===self::STATE_WAITING;}public function removePlayer($player){${"GL\x4fB\x41\x4cS"}["\x73\x63\x65\x78u\x69\x6a\x64\x62\x61\x67"]="\x70\x6c\x61\x79\x65r";if(${${"\x47L\x4fB\x41\x4cS"}["\x73\x63ex\x75i\x6a\x64b\x61\x67"]} instanceof Player){$fhcvcc="\x70lay\x65\x72";${$fhcvcc}=$player->getName();}${"\x47\x4c\x4fB\x41\x4c\x53"}["e\x75\x6a\x62\x62\x6f\x73pm\x6c"]="pla\x79\x65\x72";unset($this->players[strtolower(${${"\x47\x4cOB\x41\x4c\x53"}["\x65\x75\x6a\x62bo\x73\x70\x6d\x6c"]})]);}public function getPlayer(string$player){return$this->players[strtolower(${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x78itpf\x72lx\x77"]})]??null;}public function getPlayers():array{return$this->players;}public function getWorld():string{return$this->world;}public function getPlugin():Main{return$this->plugin;}public function getScoreToWin():int{return$this->pointsToWin;}}
?>
Function Calls
None |
Stats
MD5 | e4dccbdf3479597fce1d8d719761c9c1 |
Eval Count | 0 |
Decode Time | 61 ms |