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 pocketmine;${"GLOBALS"}["cvuktglw"]="plugin";${"GLOBALS"}["fwkedbmq"]="met..
Decoded Output download
<?php namespace pocketmine;${"GLOBALS"}["cvuktglw"]="plugin";${"GLOBALS"}["fwkedbmq"]="metadataKey";${"GLOBALS"}["awpifowewpqj"]="cnt";${"GLOBALS"}["gkfbokdkay"]="inventory";${"GLOBALS"}["gcbahsjfclt"]="pitch";${"GLOBALS"}["kdivbhwpq"]="newChunk";${"GLOBALS"}["upxiybwcgt"]="targets";${"GLOBALS"}["qimkoyy"]="source";${"GLOBALS"}["tmwhfwizvc"]="damage";${"GLOBALS"}["bsmoqyvevs"]="amount";${"GLOBALS"}["ymwdgvfhes"]="params";${"GLOBALS"}["sdwjxruutsw"]="e";${"GLOBALS"}["xqxhrfllzfq"]="cause";${"GLOBALS"}["nwrweusm"]="status";${"GLOBALS"}["hkbnuik"]="notify";${"GLOBALS"}["tdblsvbfozv"]="subtitle";${"GLOBALS"}["qigdwzbmxfh"]="parameters";${"GLOBALS"}["xglddxru"]="m";${"GLOBALS"}["lwevctbnvi"]="motion";${"GLOBALS"}["dwlsxgeijy"]="isAdmin";${"GLOBALS"}["tljithwdtrob"]="reason";${"GLOBALS"}["ptsbchlgjw"]="achievements";${"GLOBALS"}["tgmviw"]="inv";${"GLOBALS"}["wwyxljkd"]="transaction";${"GLOBALS"}["rphvvygwidfx"]="extraItem";${"GLOBALS"}["pdupogu"]="newItem";${"GLOBALS"}["oghxtukweu"]="used";${"GLOBALS"}["uzquuflimrlo"]="result";${"GLOBALS"}["jtntyapuvy"]="needed";${"GLOBALS"}["eenngyqlwftm"]="n";${"GLOBALS"}["ynhgqkpwt"]="k";${"GLOBALS"}["qkfywpzvbxtk"]="floatingInventory";${"GLOBALS"}["tppwguly"]="ingredient";${"GLOBALS"}["icvtatikpgn"]="ingredients";${"GLOBALS"}["odnecvfhuz"]="r";${"GLOBALS"}["adicrnq"]="possibleRecipes";${"GLOBALS"}["qbhrokkecsmn"]="canCraft";${"GLOBALS"}["axzwln"]="window";${"GLOBALS"}["hgmhrnrjon"]="anvilInventory";${"GLOBALS"}["nvkxnwvhd"]="recipe";${"GLOBALS"}["vejqusgvsjmr"]="message";${"GLOBALS"}["rdwyqprhnd"]="thornsEvent";${"GLOBALS"}["xugvpoy"]="fireEv";${"GLOBALS"}["orbkwmwke"]="fireAspectL";${"GLOBALS"}["ssbmmrondv"]="cancelled";${"GLOBALS"}["rbnnoik"]="oldItem";${"GLOBALS"}["dnfqdtv"]="vector";${"GLOBALS"}["vgatxryzd"]="slot";${"GLOBALS"}["qcvvxkyceyrn"]="diff";${"GLOBALS"}["mqtriatucqk"]="bow";${"GLOBALS"}["lfomvczyw"]="arrow";${"GLOBALS"}["nunlybjei"]="side";${"GLOBALS"}["vfoysqgh"]="thrownExpBottle";${"GLOBALS"}["decolrthvxs"]="projectileEv";${"GLOBALS"}["pswppcq"]="egg";${"GLOBALS"}["vpiizyx"]="snowball";${"GLOBALS"}["npvozhe"]="f";${"GLOBALS"}["gdwhlctpodo"]="aimPos";${"GLOBALS"}["ljnlmdvwvr"]="target";${"GLOBALS"}["zhpqdsdrtxn"]="blockVector";${"GLOBALS"}["zbisowqvsffw"]="dist";${"GLOBALS"}["fnpglwv"]="valid";${"GLOBALS"}["bzuqaa"]="len";${"GLOBALS"}["eftxoeklah"]="tile";${"GLOBALS"}["sngxvfhv"]="achievement";${"GLOBALS"}["efjvqop"]="nbt";${"GLOBALS"}["knroxqdcfm"]="dot1";${"GLOBALS"}["lokjlenqgk"]="dot";${"GLOBALS"}["ufgqbvfienf"]="dV";${"GLOBALS"}["lupktf"]="maxDistance";${"GLOBALS"}["hbsgxhfknnk"]="expectedVelocity";${"GLOBALS"}["jxseuiun"]="add";${"GLOBALS"}["lebphkl"]="j";${"GLOBALS"}["ngwdki"]="tempos";${"GLOBALS"}["mzvslflk"]="currentTick";${"GLOBALS"}["iuwufpmq"]="entries";${"GLOBALS"}["btswwidef"]="moving";${"GLOBALS"}["tguzxvdc"]="headYaw";${"GLOBALS"}["bcolpuljld"]="yaw";${"GLOBALS"}["mhoejwx"]="y";${"GLOBALS"}["hvbdzocbxau"]="to";${"GLOBALS"}["wjegmqp"]="isFirst";${"GLOBALS"}["wyutiziljyl"]="deltaAngle";${"GLOBALS"}["kflyxnypja"]="delta";${"GLOBALS"}["osjnews"]="diffY";${"GLOBALS"}["rhfneb"]="yS";${"GLOBALS"}["kohjzrm"]="diffX";${"GLOBALS"}["qnftxtonxt"]="dy";${"GLOBALS"}["slfirtkwciaa"]="dz";${"GLOBALS"}["emtslgypncla"]="chunk";${"GLOBALS"}["xytwjboryd"]="revert";${"GLOBALS"}["lbythketfik"]="tickDiff";${"GLOBALS"}["dhjwstu"]="distanceSquared";${"GLOBALS"}["yebtwimdkh"]="newPos";${"GLOBALS"}["iilrmljxz"]="item";${"GLOBALS"}["uxtgqn"]="key";${"GLOBALS"}["mbcevemywy"]="block";${"GLOBALS"}["buejsgcepxgy"]="blocksaround";${"GLOBALS"}["mssktxkff"]="bb";${"GLOBALS"}["dxrhrb"]="movY";${"GLOBALS"}["pjnqykgjd"]="id";${"GLOBALS"}["saylrsf"]="flags";${"GLOBALS"}["srwrindi"]="gm";${"GLOBALS"}["mjkvnnylobc"]="requirementId";${"GLOBALS"}["vlsedhpd"]="list";${"GLOBALS"}["yutppkq"]="p";${"GLOBALS"}["xajltwpux"]="needACK";${"GLOBALS"}["grmrdtwr"]="identifier";${"GLOBALS"}["iysgrb"]="packet";${"GLOBALS"}["rstvcxepgpok"]="layer";${"GLOBALS"}["xupvor"]="leg";${"GLOBALS"}["nmmdqfvonjgy"]="lastChunk";${"GLOBALS"}["yicyexuhqi"]="i";${"GLOBALS"}["eetdfmkct"]="centerZ";${"GLOBALS"}["sgbrxpv"]="newOrder";${"GLOBALS"}["cilqth"]="viewDistance";${"GLOBALS"}["riwdxvk"]="msg";${"GLOBALS"}["pberoxjkdy"]="chunkZ";${"GLOBALS"}["asyeeoldmud"]="chunkX";${"GLOBALS"}["vumdundwbvy"]="c";${"GLOBALS"}["gnodacyuno"]="ev";${"GLOBALS"}["kozwdu"]="pos";${"GLOBALS"}["ymtwvos"]="distance";${"GLOBALS"}["lgbcrlhcta"]="count";${"GLOBALS"}["nnsllrifogoi"]="batch";${"GLOBALS"}["rawzzrlcmsvi"]="BATCH_THRESHOLD";${"GLOBALS"}["emtgqqv"]="x";${"GLOBALS"}["bwiazvxcr"]="z";${"GLOBALS"}["dcmhcbyblq"]="Z";${"GLOBALS"}["oxuultwnlm"]="X";${"GLOBALS"}["vtsgjeil"]="index";${"GLOBALS"}["tdkqqsvd"]="d";${"GLOBALS"}["cphnytuogra"]="targetLevel";${"GLOBALS"}["cptwjld"]="oldLevel";${"GLOBALS"}["xshqddv"]="str";${"GLOBALS"}["zwuntyxz"]="skinId";${"GLOBALS"}["rqertersnswt"]="achievementId";${"GLOBALS"}["upyfyvs"]="clientID";${"GLOBALS"}["eunrdtgp"]="interface";${"GLOBALS"}["ktreyslmiv"]="attachment";${"GLOBALS"}["wuaeriqddd"]="name";${"GLOBALS"}["dfhgismzjwfr"]="remove";${"GLOBALS"}["yupjezso"]="player";${"GLOBALS"}["tkdigqgosc"]="value";${"GLOBALS"}["jdqqbsfkmbh"]="exp";${"GLOBALS"}["ndesogqnmbm"]="level";${"GLOBALS"}["ktwefm"]="entity";${"GLOBALS"}["wzarnypqog"]="pk";${"GLOBALS"}["dcdsqcldbj"]="ping";use pocketmine\block\Block;use pocketmine\block\Air;use pocketmine\block\Fire;use pocketmine\block\PressurePlate;use pocketmine\command\CommandSender;use pocketmine\entity\Animal;use pocketmine\entity\Arrow;use pocketmine\entity\Attribute;use pocketmine\entity\AttributeMap;use pocketmine\entity\Boat;use pocketmine\entity\Effect;use pocketmine\entity\Entity;use pocketmine\entity\FishingHook;use pocketmine\entity\Human;use pocketmine\entity\Item as DroppedItem;use pocketmine\entity\Living;use pocketmine\entity\Minecart;use pocketmine\entity\Projectile;use pocketmine\entity\ThrownExpBottle;use pocketmine\entity\ThrownPotion;use pocketmine\event\block\BlockBreakEvent;use pocketmine\event\block\ItemFrameDropItemEvent;use pocketmine\event\block\SignChangeEvent;use pocketmine\event\entity\EntityCombustByEntityEvent;use pocketmine\event\entity\EntityDamageByBlockEvent;use pocketmine\event\entity\EntityDamageByEntityEvent;use pocketmine\event\entity\EntityDamageEvent;use pocketmine\event\entity\EntityRegainHealthEvent;use pocketmine\event\entity\EntityShootBowEvent;use pocketmine\event\entity\ProjectileLaunchEvent;use pocketmine\event\inventory\CraftItemEvent;use pocketmine\event\inventory\InventoryCloseEvent;use pocketmine\event\inventory\InventoryPickupArrowEvent;use pocketmine\event\inventory\InventoryPickupItemEvent;use pocketmine\event\player\PlayerExhaustEvent;use pocketmine\event\player\PlayerTextPreSendEvent;use pocketmine\event\player\PlayerAchievementAwardedEvent;use pocketmine\event\player\PlayerAnimationEvent;use pocketmine\event\player\PlayerBedEnterEvent;use pocketmine\event\player\PlayerBedLeaveEvent;use pocketmine\event\player\PlayerChatEvent;use pocketmine\event\player\PlayerCommandPreprocessEvent;use pocketmine\event\player\PlayerDeathEvent;use pocketmine\event\player\PlayerDropItemEvent;use pocketmine\event\player\PlayerGameModeChangeEvent;use pocketmine\event\player\PlayerHungerChangeEvent;use pocketmine\event\player\PlayerInteractEvent;use pocketmine\event\player\PlayerItemConsumeEvent;use pocketmine\event\player\PlayerJoinEvent;use pocketmine\event\player\PlayerKickEvent;use pocketmine\event\player\PlayerLoginEvent;use pocketmine\event\player\PlayerMoveEvent;use pocketmine\event\player\PlayerPreLoginEvent;use pocketmine\event\player\PlayerQuitEvent;use pocketmine\event\player\PlayerRespawnEvent;use pocketmine\event\player\PlayerToggleSneakEvent;use pocketmine\event\player\PlayerToggleSprintEvent;use pocketmine\event\player\PlayerUseFishingRodEvent;use pocketmine\event\server\DataPacketReceiveEvent;use pocketmine\event\server\DataPacketSendEvent;use pocketmine\event\TextContainer;use pocketmine\event\Timings;use pocketmine\event\TranslationContainer;use pocketmine\inventory\AnvilInventory;use pocketmine\inventory\BaseTransaction;use pocketmine\inventory\BigShapedRecipe;use pocketmine\inventory\BigShapelessRecipe;use pocketmine\inventory\DropItemTransaction;use pocketmine\inventory\EnchantInventory;use pocketmine\inventory\FurnaceInventory;use pocketmine\inventory\Inventory;use pocketmine\inventory\InventoryHolder;use pocketmine\inventory\PlayerInventory;use pocketmine\inventory\ShapedRecipe;use pocketmine\inventory\ShapelessRecipe;use pocketmine\item\enchantment\Enchantment;use pocketmine\item\FoodSource;use pocketmine\item\Item;use pocketmine\item\Potion;use pocketmine\level\ChunkLoader;use pocketmine\level\format\FullChunk;use pocketmine\level\Level;use pocketmine\level\Location;use pocketmine\level\Position;use pocketmine\level\sound\LaunchSound;use pocketmine\math\AxisAlignedBB;use pocketmine\math\Vector2;use pocketmine\math\Vector3;use pocketmine\metadata\MetadataValue;use pocketmine\nbt\NBT;use pocketmine\nbt\tag\ByteTag;use pocketmine\nbt\tag\CompoundTag;use pocketmine\nbt\tag\DoubleTag;use pocketmine\nbt\tag\ListTag;use pocketmine\nbt\tag\FloatTag;use pocketmine\nbt\tag\IntTag;use pocketmine\nbt\tag\LongTag;use pocketmine\nbt\tag\ShortTag;use pocketmine\nbt\tag\StringTag;use pocketmine\network\AnyVersionManager;use pocketmine\network\Network;use pocketmine\network\protocol\AdventureSettingsPacket;use pocketmine\network\protocol\AnimatePacket;use pocketmine\network\protocol\BatchPacket;use pocketmine\network\protocol\BlockEntityDataPacket;use pocketmine\network\protocol\ChunkRadiusUpdatedPacket;use pocketmine\network\protocol\ContainerClosePacket;use pocketmine\network\protocol\ContainerSetContentPacket;use pocketmine\network\protocol\ChangeDimensionPacket;use pocketmine\network\protocol\DataPacket;use pocketmine\network\protocol\DisconnectPacket;use pocketmine\network\protocol\EntityEventPacket;use pocketmine\network\protocol\FullChunkDataPacket;use pocketmine\network\protocol\Info;use pocketmine\network\protocol\Info as ProtocolInfo;use pocketmine\network\protocol\InteractPacket;use pocketmine\network\protocol\LevelEventPacket;use pocketmine\network\protocol\MobEquipmentPacket;use pocketmine\network\protocol\MovePlayerPacket;use pocketmine\network\protocol\p70\ChunkRadiusUpdatePacket;use pocketmine\network\protocol\p70\LoginPacket;use pocketmine\network\protocol\p70\RemovePlayerPacket;use pocketmine\network\protocol\PlayerActionPacket;use pocketmine\network\protocol\PlayStatusPacket;use pocketmine\network\protocol\RemoveEntityPacket;use pocketmine\network\protocol\RespawnPacket;use pocketmine\network\protocol\SetDifficultyPacket;use pocketmine\network\protocol\SetEntityMotionPacket;use pocketmine\network\protocol\SetEntityDataPacket;use pocketmine\network\protocol\SetHealthPacket;use pocketmine\network\protocol\SetSpawnPositionPacket;use pocketmine\network\protocol\SetTimePacket;use pocketmine\network\protocol\StartGamePacket;use pocketmine\network\protocol\SetPlayerGameTypePacket;use pocketmine\network\protocol\TakeItemEntityPacket;use pocketmine\network\protocol\TextPacket;use pocketmine\network\protocol\UpdateAttributesPacket;use pocketmine\network\protocol\UpdateBlockPacket;use pocketmine\network\SourceInterface;use pocketmine\permission\PermissibleBase;use pocketmine\permission\PermissionAttachment;use pocketmine\plugin\Plugin;use pocketmine\tile\ItemFrame;use pocketmine\tile\Sign;use pocketmine\tile\Spawnable;use pocketmine\tile\Tile;use pocketmine\utils\BinaryStream;use pocketmine\utils\TextFormat;use pocketmine\utils\UUID;use raklib\Binary;class Player extends Human implements CommandSender,InventoryHolder,ChunkLoader,IPlayer{const SURVIVAL=0;const CREATIVE=1;const ADVENTURE=2;const SPECTATOR=3;const VIEW=Player::SPECTATOR;const CRAFTING_SMALL=0;const CRAFTING_BIG=1;const CRAFTING_ANVIL=2;const CRAFTING_ENCHANT=3;protected$interface;public$playedBefore=false;public$spawned=false;public$loggedIn=false;public$gamemode;public$lastBreak;protected$windowCnt=2;protected$windows;protected$windowIndex=[];public$loginData=[];protected$messageCounter=2;protected$sendIndex=0;private$clientSecret;public$speed=null;public$blocked=false;public$achievements=[];public$lastCorrect;public$craftingType=self::CRAFTING_SMALL;protected$isCrafting=false;public$creationTime=0;protected$randomClientId;protected$protocol;public static$staticProtocol;protected$lastMovement=0;protected$forceMovement=null;protected$teleportPosition=null;protected$connected=true;protected$ip;protected$removeFormat=false;protected$port;protected$username;protected$iusername;protected$displayName;protected$startAction=-1;protected$sleeping=null;protected$clientID=null;private$loaderId=null;protected$stepHeight=0.6;public$usedChunks=[];protected$chunkLoadCount=0;protected$loadQueue=[];protected$nextChunkOrderRun=5;protected$hiddenPlayers=[];protected$newPosition;protected$viewDistance;protected$chunksPerTick;protected$spawnThreshold;protected$spawnPosition=null;protected$inAirTicks=0;protected$startAirTicks=5;protected$autoJump=true;protected$allowFlight=false;private$needACK=[];private$batchedPackets=[];private$perm=null;public$weatherData=[0,0,0];public$fromPos=null;private$portalTime=0;protected$shouldSendStatus=false;private$shouldResPos;public$fishingHook=null;public$selectedPos=[];public$selectedLev=[];protected$personalCreativeItems=[];protected$ping=0;public function setPing(int$ping){return$this->ping=${${"GLOBALS"}["dcdsqcldbj"]};}public function getPing(){return$this->ping;}public function linkHookToPlayer(FishingHook$entity){if($entity->isAlive()){${"GLOBALS"}["bdjmelwvej"]="entity";${"GLOBALS"}["sseqqhauz"]="pk";$this->setFishingHook(${${"GLOBALS"}["bdjmelwvej"]});${${"GLOBALS"}["sseqqhauz"]}=new EntityEventPacket();$pk->eid=$this->getFishingHook()->getId();$pk->event=EntityEventPacket::FISH_HOOK_POSITION;$this->server->broadcastPacket($this->level->getPlayers(),${${"GLOBALS"}["wzarnypqog"]});return true;}return false;}public function unlinkHookFromPlayer(){if($this->fishingHook instanceof FishingHook){${${"GLOBALS"}["wzarnypqog"]}=new EntityEventPacket();$pk->eid=$this->fishingHook->getId();$ibojgcyf="pk";$pk->event=EntityEventPacket::FISH_HOOK_TEASE;$this->server->broadcastPacket($this->level->getPlayers(),${$ibojgcyf});$this->setFishingHook();return true;}return false;}public function isFishing(){return($this->fishingHook instanceof FishingHook);}public function getFishingHook(){return$this->fishingHook;}public function setFishingHook(FishingHook$entity=null){${"GLOBALS"}["mvtczaribwr"]="entity";if(${${"GLOBALS"}["mvtczaribwr"]}==null and$this->fishingHook instanceof FishingHook){$this->fishingHook->close();}$this->fishingHook=${${"GLOBALS"}["ktwefm"]};}public function getItemInHand(){return$this->inventory->getItemInHand();}public function getLeaveMessage(){return new TranslationContainer(TextFormat::YELLOW."%multiplayer.player.left",[$this->getDisplayName()]);}public function setExperienceAndLevel(int$exp,int$level){trigger_error("This method is deprecated, do not use it",E_USER_DEPRECATED);return$this->setTotalXp(self::getTotalXpRequirement(${${"GLOBALS"}["ndesogqnmbm"]})+${${"GLOBALS"}["jdqqbsfkmbh"]});}public function setExp(int$exp){trigger_error("This method is deprecated, do not use it",E_USER_DEPRECATED);return$this->setTotalXp(${${"GLOBALS"}["jdqqbsfkmbh"]});}public function setExpLevel(int$level){trigger_error("This method is deprecated, do not use it",E_USER_DEPRECATED);return$this->setXpLevel(${${"GLOBALS"}["ndesogqnmbm"]});}public function getExpectedExperience(){trigger_error("This method is deprecated, do not use it",E_USER_DEPRECATED);return self::getTotalXpRequirement($this->getXpLevel()+1);}public function getLevelUpExpectedExperience(){trigger_error("This method is deprecated, do not use it",E_USER_DEPRECATED);return self::getLevelXpRequirement($this->getXpLevel()+1);}public function calcExpLevel(){trigger_error("This method is deprecated, do not use it",E_USER_DEPRECATED);}public function addExperience(int$exp){$bkacnno="exp";trigger_error("This method is deprecated, do not use it",E_USER_DEPRECATED);return$this->addXp(${$bkacnno});}public function addExpLevel(int$level){$jqptycve="level";trigger_error("This method is deprecated, do not use it",E_USER_DEPRECATED);return$this->addXpLevel(${$jqptycve});}public function getExp(){trigger_error("This method is deprecated, do not use it",E_USER_DEPRECATED);return$this->getTotalXp();}public function getExpLevel(){trigger_error("This method is deprecated, do not use it",E_USER_DEPRECATED);return$this->getXpLevel();}public function canPickupExp():bool{trigger_error("This method is deprecated, do not use it",E_USER_DEPRECATED);return$this->canPickupXp();}public function resetExpCooldown(){trigger_error("This method is deprecated, do not use it",E_USER_DEPRECATED);$this->resetXpCooldown();}public function updateExperience(){trigger_error("This method is deprecated, do not use it",E_USER_DEPRECATED);}public function getClientId(){return$this->randomClientId;}public function getClientSecret(){return$this->clientSecret;}public function isBanned(){return$this->server->getNameBans()->isBanned(strtolower($this->getName()));}public function setBanned($value){if(${${"GLOBALS"}["tkdigqgosc"]}===true){$this->server->getNameBans()->addBan($this->getName(),null,null,null);$this->kick(TextFormat::RED."You have been banned");}else{$this->server->getNameBans()->remove($this->getName());}}public function isWhitelisted():bool{return$this->server->isWhitelisted(strtolower($this->getName()));}public function setWhitelisted($value){if(${${"GLOBALS"}["tkdigqgosc"]}===true){$this->server->addWhitelist(strtolower($this->getName()));}else{$this->server->removeWhitelist(strtolower($this->getName()));}}public function getPlayer(){return$this;}public function getFirstPlayed(){return$this->namedtag instanceof CompoundTag?$this->namedtag["firstPlayed"]:null;}public function getLastPlayed(){return$this->namedtag instanceof CompoundTag?$this->namedtag["lastPlayed"]:null;}public function hasPlayedBefore(){return$this->playedBefore;}public function setAllowFlight($value){${"GLOBALS"}["fckgtirb"]="value";$this->allowFlight=(bool)${${"GLOBALS"}["fckgtirb"]};$this->sendSettings();}public function getAllowFlight():bool{return$this->allowFlight;}public function setAutoJump($value){$this->autoJump=${${"GLOBALS"}["tkdigqgosc"]};$this->sendSettings();}public function hasAutoJump():bool{return$this->autoJump;}public function spawnTo(Player$player){if($this->spawned and$player->spawned and$this->isAlive()and$player->isAlive()and$player->getLevel()===$this->level and$player->canSee($this)and!$this->isSpectator()){parent::spawnTo(${${"GLOBALS"}["yupjezso"]});}}public function getServer(){return$this->server;}public function getRemoveFormat(){return$this->removeFormat;}public function setRemoveFormat($remove=true){$this->removeFormat=(bool)${${"GLOBALS"}["dfhgismzjwfr"]};}public function canSee(Player$player):bool{return!isset($this->hiddenPlayers[$player->getRawUniqueId()]);}public function hidePlayer(Player$player){$ptclfhwxtbm="player";if(${$ptclfhwxtbm}===$this){return;}$this->hiddenPlayers[$player->getRawUniqueId()]=${${"GLOBALS"}["yupjezso"]};$player->despawnFrom($this);}public function showPlayer(Player$player){if(${${"GLOBALS"}["yupjezso"]}===$this){return;}unset($this->hiddenPlayers[$player->getRawUniqueId()]);if($player->isOnline()){$player->spawnTo($this);}}public function canCollideWith(Entity$entity):bool{return false;}public function resetFallDistance(){parent::resetFallDistance();if($this->inAirTicks!==0){$this->startAirTicks=5;}$this->inAirTicks=0;}public function isOnline():bool{return$this->connected===true and$this->loggedIn===true;}public function isOp():bool{return$this->server->isOp($this->getName());}public function setOp($value){if(${${"GLOBALS"}["tkdigqgosc"]}===$this->isOp()){return;}if(${${"GLOBALS"}["tkdigqgosc"]}===true){$this->server->addOp($this->getName());}else{$this->server->removeOp($this->getName());}$this->recalculatePermissions();}public function isPermissionSet($name){$yfkseglovwt="name";return$this->perm->isPermissionSet(${$yfkseglovwt});}public function hasPermission($name):bool{if($this->perm==null)return false;else return$this->perm->hasPermission(${${"GLOBALS"}["wuaeriqddd"]});}public function addAttachment(Plugin$plugin,$name=null,$value=null){${"GLOBALS"}["gbqsqjzvy"]="value";${"GLOBALS"}["dwzhjft"]="plugin";$texlres="name";if($this->perm==null)return false;return$this->perm->addAttachment(${${"GLOBALS"}["dwzhjft"]},${$texlres},${${"GLOBALS"}["gbqsqjzvy"]});}public function removeAttachment(PermissionAttachment$attachment){if($this->perm==null){return false;}$this->perm->removeAttachment(${${"GLOBALS"}["ktreyslmiv"]});return true;}public function recalculatePermissions(){$this->server->getPluginManager()->unsubscribeFromPermission(Server::BROADCAST_CHANNEL_USERS,$this);$this->server->getPluginManager()->unsubscribeFromPermission(Server::BROADCAST_CHANNEL_ADMINISTRATIVE,$this);if($this->perm===null){return;}$this->perm->recalculatePermissions();if($this->hasPermission(Server::BROADCAST_CHANNEL_USERS)){$this->server->getPluginManager()->subscribeToPermission(Server::BROADCAST_CHANNEL_USERS,$this);}if($this->hasPermission(Server::BROADCAST_CHANNEL_ADMINISTRATIVE)){$this->server->getPluginManager()->subscribeToPermission(Server::BROADCAST_CHANNEL_ADMINISTRATIVE,$this);}}public function getEffectivePermissions(){return$this->perm->getEffectivePermissions();}public function __construct(SourceInterface$interface,$clientID,$ip,$port){$this->interface=${${"GLOBALS"}["eunrdtgp"]};${"GLOBALS"}["aiurnhnurxnp"]="ip";$this->windows=new\SplObjectStorage();${"GLOBALS"}["tymoiaiso"]="port";$this->perm=new PermissibleBase($this);$this->namedtag=new CompoundTag();$this->server=Server::getInstance();$this->lastBreak=PHP_INT_MAX;$this->ip=${${"GLOBALS"}["aiurnhnurxnp"]};$this->port=${${"GLOBALS"}["tymoiaiso"]};$this->clientID=${${"GLOBALS"}["upyfyvs"]};$this->loaderId=Level::generateChunkLoaderId($this);$this->chunksPerTick=(int)$this->server->getProperty("chunk-sending.per-tick",4);$this->spawnThreshold=(int)$this->server->getProperty("chunk-sending.spawn-threshold",56);$this->spawnPosition=null;$this->gamemode=$this->server->getGamemode();$this->setLevel($this->server->getDefaultLevel());$this->viewDistance=$this->server->getViewDistance();$this->newPosition=new Vector3(0,0,0);$this->boundingBox=new AxisAlignedBB(0,0,0,0,0,0);$this->uuid=null;$this->rawUUID=null;$this->creationTime=microtime(true);$this->exp=0;$this->expLevel=0;$this->food=20;Entity::setHealth(20);}public function removeAchievement($achievementId){$wdfrwhra="achievementId";if($this->hasAchievement(${$wdfrwhra})){$cakgerqdmh="achievementId";$this->achievements[${$cakgerqdmh}]=false;}}public function hasAchievement($achievementId):bool{${"GLOBALS"}["xmdwvc"]="list";${"GLOBALS"}["gyowtwvn"]="achievementId";if(!isset(Achievement::${${"GLOBALS"}["xmdwvc"]}[${${"GLOBALS"}["gyowtwvn"]}])or!isset($this->achievements)){$this->achievements=[];return false;}return isset($this->achievements[${${"GLOBALS"}["rqertersnswt"]}])and$this->achievements[${${"GLOBALS"}["rqertersnswt"]}]!=false;}public function isConnected():bool{return$this->connected===true;}public function getDisplayName(){return$this->displayName;}public function setDisplayName($name){$this->displayName=${${"GLOBALS"}["wuaeriqddd"]};if($this->spawned){$this->server->updatePlayerListData($this->getUniqueId(),$this->getId(),$this->getDisplayName(),$this->getSkinId(),$this->getSkinData());}}public function setSkin($str,$skinId){${"GLOBALS"}["derlch"]="str";parent::setSkin(${${"GLOBALS"}["derlch"]},${${"GLOBALS"}["zwuntyxz"]});if($this->spawned){$ahlfzeu="skinId";$this->server->updatePlayerListData($this->getUniqueId(),$this->getId(),$this->getDisplayName(),${$ahlfzeu},${${"GLOBALS"}["xshqddv"]});}}public function getAddress():string{return$this->ip;}public function getPort():int{return$this->port;}public function getNextPosition(){return$this->newPosition!==null?new Position($this->newPosition->x,$this->newPosition->y,$this->newPosition->z,$this->level):$this->getPosition();}public function isSleeping():bool{return$this->sleeping!==null;}public function getInAirTicks(){return$this->inAirTicks;}protected function switchLevel(Level$targetLevel){${${"GLOBALS"}["cptwjld"]}=$this->level;if(parent::switchLevel(${${"GLOBALS"}["cphnytuogra"]})){$qnloqnuqkvq="index";foreach($this->usedChunks as${$qnloqnuqkvq}=>${${"GLOBALS"}["tdkqqsvd"]}){Level::getXZ(${${"GLOBALS"}["vtsgjeil"]},${${"GLOBALS"}["oxuultwnlm"]},${${"GLOBALS"}["dcmhcbyblq"]});$jcwdlqi="Z";$this->unloadChunk(${${"GLOBALS"}["oxuultwnlm"]},${$jcwdlqi},${${"GLOBALS"}["cptwjld"]});}$this->usedChunks=[];${${"GLOBALS"}["wzarnypqog"]}=new SetTimePacket();$pk->time=$this->level->getTime();$pk->started=$this->level->stopTime==false;$this->dataPacket(${${"GLOBALS"}["wzarnypqog"]});if($targetLevel->getDimension()!=$oldLevel->getDimension()){${"GLOBALS"}["viwgpwurk"]="pk";${${"GLOBALS"}["viwgpwurk"]}=new ChangeDimensionPacket();$sefnorqyku="pk";$pk->dimension=$targetLevel->getDimension();$pk->x=$this->x;$pk->y=$this->y;$pk->z=$this->z;$this->dataPacket(${$sefnorqyku});$this->shouldSendStatus=true;}$targetLevel->getWeather()->sendWeather($this);if($this->spawned){$this->spawnToAll();}}}private function unloadChunk($x,$z,Level$level=null){$mfrovjdmjeu="x";$uqksbm="index";$jejkchfhq="level";${"GLOBALS"}["kdczlddd"]="index";${${"GLOBALS"}["ndesogqnmbm"]}=${${"GLOBALS"}["ndesogqnmbm"]}===null?$this->level:${$jejkchfhq};$wsbjbaia="x";${$uqksbm}=Level::chunkHash(${$wsbjbaia},${${"GLOBALS"}["bwiazvxcr"]});if(isset($this->usedChunks[${${"GLOBALS"}["kdczlddd"]}])){${"GLOBALS"}["yovmkiwbla"]="entity";foreach($level->getChunkEntities(${${"GLOBALS"}["emtgqqv"]},${${"GLOBALS"}["bwiazvxcr"]})as${${"GLOBALS"}["yovmkiwbla"]}){if(${${"GLOBALS"}["ktwefm"]}!==$this){$entity->despawnFrom($this);}}unset($this->usedChunks[${${"GLOBALS"}["vtsgjeil"]}]);}$level->unregisterChunkLoader($this,${$mfrovjdmjeu},${${"GLOBALS"}["bwiazvxcr"]});unset($this->loadQueue[${${"GLOBALS"}["vtsgjeil"]}]);}public function getSpawn():Position{if($this->spawnPosition instanceof Position and$this->spawnPosition->getLevel()instanceof Level){return$this->spawnPosition;}else{${"GLOBALS"}["ukqqrqqoqlgm"]="level";${${"GLOBALS"}["ukqqrqqoqlgm"]}=$this->server->getDefaultLevel();return$level->getSafeSpawn();}}public function sendChunk($x,$z,$payload,$ordering=FullChunkDataPacket::ORDER_COLUMNS){if($this->connected===false){return;}$lqsthlvk="z";$this->usedChunks[Level::chunkHash(${${"GLOBALS"}["emtgqqv"]},${$lqsthlvk})]=true;$this->chunkLoadCount++;if($this->getProtocol()==84){${"GLOBALS"}["zbfetbu"]="pk";${${"GLOBALS"}["zbfetbu"]}=new FullChunkDataPacket();$pk->chunkX=$payload->chunkX;$pk->chunkZ=$payload->chunkZ;$pk->order=$payload->order;$pk->data=$payload->data;if(Network::${${"GLOBALS"}["rawzzrlcmsvi"]}>=0){$pk->encode();$hlgdufxgmq="batch";$yhcimck="batch";${$hlgdufxgmq}=new BatchPacket();$batch->payload=zlib_encode(Binary::writeInt(strlen($pk->getBuffer())).$pk->getBuffer(),ZLIB_ENCODING_DEFLATE,Server::getInstance()->networkCompressionLevel);$batch->encode();$batch->isEncoded=true;$this->dataPacket(${$yhcimck});}else{$cxjnilejj="pk";$this->dataPacket(${$cxjnilejj});}}else if(AnyVersionManager::isProtocol($this,"0.14")){${${"GLOBALS"}["wzarnypqog"]}=new\pocketmine\network\protocol\p70\FullChunkDataPacket();$pk->chunkX=$payload->chunkX;$pk->chunkZ=$payload->chunkZ;$pk->order=$payload->order;${"GLOBALS"}["ozojvnxy"]="batch";$pk->data=$payload->data;$pk->encode();${${"GLOBALS"}["ozojvnxy"]}=new BatchPacket();$batch->payload=\zlib_encode(pack("N",\strlen($pk->getBuffer())).$pk->getBuffer(),ZLIB_ENCODING_DEFLATE,Server::getInstance()->networkCompressionLevel);$batch->encode();$batch->isEncoded=\true;$this->dataPacket(${${"GLOBALS"}["nnsllrifogoi"]});}if($this->spawned){$ncvmkbx="x";$mtpbzosgpslv="entity";foreach($this->level->getChunkEntities(${$ncvmkbx},${${"GLOBALS"}["bwiazvxcr"]})as${$mtpbzosgpslv}){if(${${"GLOBALS"}["ktwefm"]}!==$this and!$entity->closed and$entity->isAlive()){$entity->spawnTo($this);}}}}protected function sendNextChunk(){if($this->connected===false){return;}Timings::$playerChunkSendTimer->startTiming();${${"GLOBALS"}["lgbcrlhcta"]}=0;$iujdeugp="index";foreach($this->loadQueue as${$iujdeugp}=>${${"GLOBALS"}["ymtwvos"]}){${"GLOBALS"}["kbtdizvebq"]="X";$qckenmajg="count";${"GLOBALS"}["ikxeuklfc"]="index";$uxxugylfs="X";${"GLOBALS"}["jcwgnccex"]="index";$sksfpetml="Z";${"GLOBALS"}["vxipmdhtminp"]="Z";if(${$qckenmajg}>=$this->chunksPerTick){break;}$oayhfbgxwcrm="Z";${$uxxugylfs}=null;${${"GLOBALS"}["dcmhcbyblq"]}=null;${"GLOBALS"}["dpeteendvbd"]="count";Level::getXZ(${${"GLOBALS"}["ikxeuklfc"]},${${"GLOBALS"}["kbtdizvebq"]},${$sksfpetml});++${${"GLOBALS"}["dpeteendvbd"]};$this->usedChunks[${${"GLOBALS"}["jcwgnccex"]}]=false;$this->level->registerChunkLoader($this,${${"GLOBALS"}["oxuultwnlm"]},${${"GLOBALS"}["vxipmdhtminp"]},true);if(!$this->level->populateChunk(${${"GLOBALS"}["oxuultwnlm"]},${${"GLOBALS"}["dcmhcbyblq"]})){if($this->spawned and$this->teleportPosition===null){continue;}else{break;}}unset($this->loadQueue[${${"GLOBALS"}["vtsgjeil"]}]);$this->level->requestChunk(${${"GLOBALS"}["oxuultwnlm"]},${$oayhfbgxwcrm},$this);if((count($this->loadQueue)==0)and$this->shouldSendStatus){$this->shouldSendStatus=false;${${"GLOBALS"}["wzarnypqog"]}=new PlayStatusPacket();$jtehbulh="pk";$pk->status=PlayStatusPacket::PLAYER_SPAWN;$this->dataPacket(${$jtehbulh});}}if($this->chunkLoadCount>=$this->spawnThreshold and$this->spawned===false and$this->teleportPosition===null){$this->doFirstSpawn();}Timings::$playerChunkSendTimer->stopTiming();}protected function doFirstSpawn(){$xxuvbrde="pos";$wkxxhtmdpxjf="pos";$this->spawned=true;$this->sendPotionEffects($this);$this->sendData($this);${${"GLOBALS"}["wzarnypqog"]}=new SetTimePacket();$wrolmyhyntu="pk";$ubfuttbvtnp="pos";$pk->time=$this->level->getTime();$pk->started=$this->level->stopTime==false;$this->dataPacket(${$wrolmyhyntu});${${"GLOBALS"}["kozwdu"]}=$this->level->getSafeSpawn($this);$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["gnodacyuno"]}=new PlayerRespawnEvent($this,${${"GLOBALS"}["kozwdu"]}));${$wkxxhtmdpxjf}=$ev->getRespawnPosition();if($pos->getY()<127)${$ubfuttbvtnp}=$pos->add(0,0.2,0);${${"GLOBALS"}["wzarnypqog"]}=new PlayStatusPacket();$pk->status=PlayStatusPacket::PLAYER_SPAWN;$this->dataPacket(${${"GLOBALS"}["wzarnypqog"]});$this->noDamageTicks=60;foreach($this->usedChunks as${${"GLOBALS"}["vtsgjeil"]}=>${${"GLOBALS"}["vumdundwbvy"]}){$jiwytcibqn="chunkZ";Level::getXZ(${${"GLOBALS"}["vtsgjeil"]},${${"GLOBALS"}["asyeeoldmud"]},${${"GLOBALS"}["pberoxjkdy"]});foreach($this->level->getChunkEntities(${${"GLOBALS"}["asyeeoldmud"]},${$jiwytcibqn})as${${"GLOBALS"}["ktwefm"]}){if(${${"GLOBALS"}["ktwefm"]}!==$this and!$entity->closed and$entity->isAlive()){$entity->spawnTo($this);}}}$this->teleport(${$xxuvbrde});$this->allowFlight=(($this->gamemode==3)or($this->gamemode==1));${"GLOBALS"}["hbseffizxe"]="ev";$this->setHealth($this->getHealth());$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["hbseffizxe"]}=new PlayerJoinEvent($this,new TranslationContainer(TextFormat::YELLOW."%multiplayer.player.joined",[$this->getDisplayName()])));$this->sendSettings();if(strlen(trim(${${"GLOBALS"}["riwdxvk"]}=$ev->getJoinMessage()))>0){${"GLOBALS"}["mxmtkludvii"]="msg";if($this->server->playerMsgType===Server::PLAYER_MSG_TYPE_MESSAGE)$this->server->broadcastMessage(${${"GLOBALS"}["mxmtkludvii"]});elseif($this->server->playerMsgType===Server::PLAYER_MSG_TYPE_TIP)$this->server->broadcastTip(str_replace("@player",$this->getName(),$this->server->playerLoginMsg));elseif($this->server->playerMsgType===Server::PLAYER_MSG_TYPE_POPUP)$this->server->broadcastPopup(str_replace("@player",$this->getName(),$this->server->playerLoginMsg));}$this->server->onPlayerLogin($this);$this->spawnToAll();$this->level->getWeather()->sendWeather($this);if($this->server->dserverConfig["enable"]and$this->server->dserverConfig["queryAutoUpdate"]){$this->server->updateQuery();}if($this->getHealth()<=0){${${"GLOBALS"}["wzarnypqog"]}=new RespawnPacket();${${"GLOBALS"}["kozwdu"]}=$this->getSpawn();$pk->x=$pos->x;$pk->y=$pos->y;$pk->z=$pos->z;$this->dataPacket(${${"GLOBALS"}["wzarnypqog"]});}$this->inventory->sendContents($this);$this->inventory->sendArmorContents($this);}protected function orderChunks(){if($this->connected===false){return false;}Timings::$playerChunkOrderTimer->startTiming();$this->nextChunkOrderRun=200;$vbkgcq="layer";$wnrvvmnmc="lastChunk";${"GLOBALS"}["tnvwyr"]="centerX";${${"GLOBALS"}["cilqth"]}=$this->server->getMemoryManager()->getViewDistance($this->viewDistance);$qikpttyvkhj="leg";$gireirw="x";${${"GLOBALS"}["sgbrxpv"]}=[];${$wnrvvmnmc}=$this->usedChunks;${"GLOBALS"}["lupuxuxhrp"]="i";${${"GLOBALS"}["tnvwyr"]}=$this->x>>4;${${"GLOBALS"}["eetdfmkct"]}=$this->z>>4;$gicxzix="bool";${$vbkgcq}=1;${$qikpttyvkhj}=0;$ejsinrlplek="z";${$gireirw}=0;${"GLOBALS"}["jlpdyzjuvqx"]="viewDistance";${$ejsinrlplek}=0;for(${${"GLOBALS"}["lupuxuxhrp"]}=0;${${"GLOBALS"}["yicyexuhqi"]}<${${"GLOBALS"}["jlpdyzjuvqx"]};++${${"GLOBALS"}["yicyexuhqi"]}){${"GLOBALS"}["cylkvqmi"]="centerX";$uvoppkie="z";$ksqtwazho="layer";${"GLOBALS"}["pyyksgtu"]="index";$rewdilynj="chunkX";${"GLOBALS"}["zgshikem"]="x";$tgkjefbpsp="centerZ";$vslevjbe="x";$rednrqob="chunkZ";${${"GLOBALS"}["asyeeoldmud"]}=${$vslevjbe}+${${"GLOBALS"}["cylkvqmi"]};${"GLOBALS"}["weowhxtlt"]="index";$kvuqrvoxq="index";${$rednrqob}=${${"GLOBALS"}["bwiazvxcr"]}+${$tgkjefbpsp};if(!isset($this->usedChunks[${${"GLOBALS"}["weowhxtlt"]}=Level::chunkHash(${$rewdilynj},${${"GLOBALS"}["pberoxjkdy"]})])or$this->usedChunks[${$kvuqrvoxq}]===false){$rgmosjmf="newOrder";${$rgmosjmf}[${${"GLOBALS"}["vtsgjeil"]}]=true;}unset(${${"GLOBALS"}["nmmdqfvonjgy"]}[${${"GLOBALS"}["pyyksgtu"]}]);switch(${${"GLOBALS"}["xupvor"]}){case 0:++${${"GLOBALS"}["emtgqqv"]};if(${${"GLOBALS"}["emtgqqv"]}===${$ksqtwazho}){++${${"GLOBALS"}["xupvor"]};}break;case 1:++${${"GLOBALS"}["bwiazvxcr"]};if(${${"GLOBALS"}["bwiazvxcr"]}===${${"GLOBALS"}["rstvcxepgpok"]}){++${${"GLOBALS"}["xupvor"]};}break;case 2:--${${"GLOBALS"}["emtgqqv"]};if(-${${"GLOBALS"}["zgshikem"]}===${${"GLOBALS"}["rstvcxepgpok"]}){$nvnmku="leg";++${$nvnmku};}break;case 3:--${${"GLOBALS"}["bwiazvxcr"]};if(-${$uvoppkie}===${${"GLOBALS"}["rstvcxepgpok"]}){${"GLOBALS"}["jxolhkz"]="layer";${"GLOBALS"}["kemejxa"]="leg";${${"GLOBALS"}["kemejxa"]}=0;++${${"GLOBALS"}["jxolhkz"]};}break;}}foreach(${${"GLOBALS"}["nmmdqfvonjgy"]} as${${"GLOBALS"}["vtsgjeil"]}=>${$gicxzix}){$pykgtttp="Z";${"GLOBALS"}["zsmreowpt"]="index";$jayhfhg="Z";Level::getXZ(${${"GLOBALS"}["zsmreowpt"]},${${"GLOBALS"}["oxuultwnlm"]},${$jayhfhg});$this->unloadChunk(${${"GLOBALS"}["oxuultwnlm"]},${$pykgtttp});}$this->loadQueue=${${"GLOBALS"}["sgbrxpv"]};Timings::$playerChunkOrderTimer->stopTiming();return true;}public function batchDataPacket($packet){$zriuifm="ev";$xaojqeoixpj="packet";if($this->connected===false){return false;}$this->server->getPluginManager()->callEvent(${$zriuifm}=new DataPacketSendEvent($this,${${"GLOBALS"}["iysgrb"]}));if($ev->isCancelled()){return false;}if(!isset($this->batchedPackets)){$this->batchedPackets=[];}$this->batchedPackets[]=clone${$xaojqeoixpj};return true;}public function dataPacket($packet,$needACK=false){if(!$this->connected){return false;}$fbiykvltdcr="packet";${"GLOBALS"}["wxpept"]="packet";${"GLOBALS"}["qcfyire"]="ev";${$fbiykvltdcr}=AnyVersionManager::parsePacket($this,${${"GLOBALS"}["iysgrb"]});${"GLOBALS"}["bxeoogveens"]="packet";$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["qcfyire"]}=new DataPacketSendEvent($this,${${"GLOBALS"}["wxpept"]}));if($ev->isCancelled()){return false;}${${"GLOBALS"}["grmrdtwr"]}=$this->interface->putPacket($this,${${"GLOBALS"}["bxeoogveens"]},${${"GLOBALS"}["xajltwpux"]},false);if(${${"GLOBALS"}["xajltwpux"]} and${${"GLOBALS"}["grmrdtwr"]}!==null){$this->needACK[${${"GLOBALS"}["grmrdtwr"]}]=false;return${${"GLOBALS"}["grmrdtwr"]};}return true;}public function directDataPacket($packet,$needACK=false){$pjdqyxm="needACK";${"GLOBALS"}["enrerbeezdss"]="packet";${"GLOBALS"}["opuwii"]="identifier";$woyqmiwsy="packet";${"GLOBALS"}["frwqvnmpbqwb"]="packet";${"GLOBALS"}["qmpptwnjaxn"]="needACK";$onrtmtcg="packet";$pgwgxjemcsjv="identifier";if($this->connected===false){return false;}${${"GLOBALS"}["enrerbeezdss"]}=AnyVersionManager::parsePacket($this,${$woyqmiwsy});$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["gnodacyuno"]}=new DataPacketSendEvent($this,${${"GLOBALS"}["frwqvnmpbqwb"]}));if($ev->isCancelled()){return false;}${$pgwgxjemcsjv}=$this->interface->putPacket($this,${$onrtmtcg},${${"GLOBALS"}["qmpptwnjaxn"]},true);if(${$pjdqyxm} and${${"GLOBALS"}["opuwii"]}!==null){${"GLOBALS"}["rwmiufpog"]="identifier";$this->needACK[${${"GLOBALS"}["rwmiufpog"]}]=false;return${${"GLOBALS"}["grmrdtwr"]};}return true;}public function sleepOn(Vector3$pos){if(!$this->isOnline()){return false;}$jdwhjxm="ev";foreach($this->level->getNearbyEntities($this->boundingBox->grow(2,1,2),$this)as${${"GLOBALS"}["yutppkq"]}){${"GLOBALS"}["qdlnuxqrgh"]="p";if(${${"GLOBALS"}["qdlnuxqrgh"]} instanceof Player){if($p->sleeping!==null and$pos->distance($p->sleeping)<=0.1){return false;}}}$this->server->getPluginManager()->callEvent(${$jdwhjxm}=new PlayerBedEnterEvent($this,$this->level->getBlock(${${"GLOBALS"}["kozwdu"]})));if($ev->isCancelled()){return false;}$this->sleeping=clone${${"GLOBALS"}["kozwdu"]};$this->setDataProperty(self::DATA_PLAYER_BED_POSITION,self::DATA_TYPE_POS,[$pos->x,$pos->y,$pos->z]);$this->setDataFlag(self::DATA_PLAYER_FLAGS,self::DATA_PLAYER_FLAG_SLEEP,true);$this->setSpawn(${${"GLOBALS"}["kozwdu"]});$this->level->sleepTicks=60;return true;}public function setSpawn(Vector3$pos){${"GLOBALS"}["mojkvotnj"]="level";$mtxjctl="pk";if(!(${${"GLOBALS"}["kozwdu"]} instanceof Position)){${${"GLOBALS"}["ndesogqnmbm"]}=$this->level;}else{${${"GLOBALS"}["ndesogqnmbm"]}=$pos->getLevel();}$this->spawnPosition=new Position($pos->x,$pos->y,$pos->z,${${"GLOBALS"}["mojkvotnj"]});${${"GLOBALS"}["wzarnypqog"]}=new SetSpawnPositionPacket();$pk->x=(int)$this->spawnPosition->x;$pk->y=(int)$this->spawnPosition->y;$pk->z=(int)$this->spawnPosition->z;$this->dataPacket(${$mtxjctl});}public function stopSleep(){if($this->sleeping instanceof Vector3){$yzvcoofkop="ev";$this->server->getPluginManager()->callEvent(${$yzvcoofkop}=new PlayerBedLeaveEvent($this,$this->level->getBlock($this->sleeping)));$this->sleeping=null;$this->setDataProperty(self::DATA_PLAYER_BED_POSITION,self::DATA_TYPE_POS,[0,0,0]);$this->setDataFlag(self::DATA_PLAYER_FLAGS,self::DATA_PLAYER_FLAG_SLEEP,false);$this->level->sleepTicks=0;${${"GLOBALS"}["wzarnypqog"]}=new AnimatePacket();$pk->eid=0;$pk->action=PlayerAnimationEvent::WAKE_UP;$this->dataPacket(${${"GLOBALS"}["wzarnypqog"]});}}public function awardAchievement($achievementId){${"GLOBALS"}["jjkcbfxgjhl"]="list";$wedhqirgtsx="achievementId";if(isset(Achievement::${${"GLOBALS"}["jjkcbfxgjhl"]}[${${"GLOBALS"}["rqertersnswt"]}])and!$this->hasAchievement(${$wedhqirgtsx})){$jymocc="ev";foreach(Achievement::${${"GLOBALS"}["vlsedhpd"]}[${${"GLOBALS"}["rqertersnswt"]}]["requires"]as${${"GLOBALS"}["mjkvnnylobc"]}){$urnghtc="requirementId";if(!$this->hasAchievement(${$urnghtc})){return false;}}$this->server->getPluginManager()->callEvent(${$jymocc}=new PlayerAchievementAwardedEvent($this,${${"GLOBALS"}["rqertersnswt"]}));if(!$ev->isCancelled()){$this->achievements[${${"GLOBALS"}["rqertersnswt"]}]=true;${"GLOBALS"}["uudqmxsyekv"]="achievementId";Achievement::broadcast($this,${${"GLOBALS"}["uudqmxsyekv"]});return true;}else{return false;}}return false;}public function getGamemode():int{return$this->gamemode;}public function setGamemode(int$gm){$lyhedtdqu="gm";$bokvnggn="ev";$klqybfnlsbep="gm";if(${${"GLOBALS"}["srwrindi"]}<0 or${$klqybfnlsbep}>3 or$this->gamemode===${${"GLOBALS"}["srwrindi"]}){return false;}$this->server->getPluginManager()->callEvent(${$bokvnggn}=new PlayerGameModeChangeEvent($this,${${"GLOBALS"}["srwrindi"]}));if($ev->isCancelled()){return false;}if($this->server->autoClearInv){$this->inventory->clearAll();}$this->gamemode=${$lyhedtdqu};$this->allowFlight=$this->isCreative();$fcywghnuw="pk";if($this->isSpectator()){$this->despawnFromAll();}else{$this->spawnToAll();}${"GLOBALS"}["qkdyurlbsw"]="pk";$this->namedtag->playerGameType=new IntTag("playerGameType",$this->gamemode);${$fcywghnuw}=new SetPlayerGameTypePacket();$pk->gamemode=$this->gamemode&0x01;$this->dataPacket(${${"GLOBALS"}["qkdyurlbsw"]});$this->sendSettings();if($this->gamemode===Player::SPECTATOR){$jclbclcfp="pk";${$jclbclcfp}=new ContainerSetContentPacket();$pk->windowid=ContainerSetContentPacket::SPECIAL_CREATIVE;$this->dataPacket(${${"GLOBALS"}["wzarnypqog"]});}else{if(AnyVersionManager::isProtocol($this,"0.15")){$guyldcn="pk";${$guyldcn}=new ContainerSetContentPacket();$pk->windowid=ContainerSetContentPacket::SPECIAL_CREATIVE;$pk->slots=array_merge(Item::getCreativeItems(),$this->personalCreativeItems);$this->dataPacket(${${"GLOBALS"}["wzarnypqog"]});}else if(AnyVersionManager::isProtocol($this,"0.14")){${"GLOBALS"}["vwevluwv"]="pk";${${"GLOBALS"}["vwevluwv"]}=new ContainerSetContentPacket();$imfxuulfuevc="pk";$pk->windowid=ContainerSetContentPacket::SPECIAL_CREATIVE;$pk->slots=array_merge(Item::getp70CreativeItems(),$this->personalCreativeItems);$this->dataPacket(${$imfxuulfuevc});}}$this->inventory->sendContents($this);$this->inventory->sendContents($this->getViewers());$this->inventory->sendHeldItem($this->hasSpawned);return true;}public function sendSettings(){$hjlvnjiufxg="flags";${$hjlvnjiufxg}=0;if($this->isAdventure()){${${"GLOBALS"}["saylrsf"]}|=0x01;}$rkywtzggdd="flags";if($this->autoJump){$bpiczemfsw="flags";${$bpiczemfsw}|=0x40;}if($this->allowFlight){$wfacksbaef="flags";${$wfacksbaef}|=0x80;}if($this->isSpectator()){${${"GLOBALS"}["saylrsf"]}|=0x100;}${${"GLOBALS"}["saylrsf"]}|=0x02;${"GLOBALS"}["onfseroo"]="flags";${$rkywtzggdd}|=0x04;${${"GLOBALS"}["onfseroo"]}|=0x08;${${"GLOBALS"}["wzarnypqog"]}=new AdventureSettingsPacket();$pk->flags=${${"GLOBALS"}["saylrsf"]};$pk->userPermission=2;$pk->globalPermission=2;$this->dataPacket(${${"GLOBALS"}["wzarnypqog"]});}public function isSurvival():bool{return($this->gamemode&0x01)===0;}public function isCreative():bool{return($this->gamemode&0x01)>0;}public function isSpectator():bool{return$this->gamemode===3;}public function isAdventure():bool{return($this->gamemode&0x02)>0;}public function getDrops():array{if(!$this->isCreative()){return parent::getDrops();}return[];}public function setDataProperty($id,$type,$value){${"GLOBALS"}["wedfdufmym"]="type";$burjcxwcv="id";${"GLOBALS"}["vxsjlmv"]="value";if(parent::setDataProperty(${$burjcxwcv},${${"GLOBALS"}["wedfdufmym"]},${${"GLOBALS"}["vxsjlmv"]})){$this->sendData($this,[${${"GLOBALS"}["pjnqykgjd"]}=>$this->dataProperties[${${"GLOBALS"}["pjnqykgjd"]}]]);return true;}return false;}protected function checkGroundState($movX,$movY,$movZ,$dx,$dy,$dz){if(!$this->onGround or${${"GLOBALS"}["dxrhrb"]}!=0){${${"GLOBALS"}["mssktxkff"]}=clone$this->boundingBox;$bb->maxY=$bb->minY+0.5;$bb->minY-=1;if(count($this->level->getCollisionBlocks(${${"GLOBALS"}["mssktxkff"]},true))>0){$this->onGround=true;}else{$this->onGround=false;}}$this->isCollided=$this->onGround;}protected function checkBlockCollision(){foreach(${${"GLOBALS"}["buejsgcepxgy"]}=$this->getBlocksAround()as${${"GLOBALS"}["mbcevemywy"]}){$block->onEntityCollide($this);if($this->getServer()->redstoneEnabled){if(${${"GLOBALS"}["mbcevemywy"]} instanceof PressurePlate){$this->activatedPressurePlates[Level::blockHash($block->x,$block->y,$block->z)]=${${"GLOBALS"}["mbcevemywy"]};}}}if($this->getServer()->redstoneEnabled){${"GLOBALS"}["hiikky"]="block";foreach($this->activatedPressurePlates as${${"GLOBALS"}["uxtgqn"]}=>${${"GLOBALS"}["hiikky"]}){if(!isset(${${"GLOBALS"}["buejsgcepxgy"]}[${${"GLOBALS"}["uxtgqn"]}]))$block->checkActivation();}}}protected function checkNearEntities($tickDiff){${"GLOBALS"}["ovintwxsug"]="entity";foreach($this->level->getNearbyEntities($this->boundingBox->grow(0.5,0.5,0.5),$this)as${${"GLOBALS"}["ovintwxsug"]}){$entity->scheduleUpdate();if(!$entity->isAlive()){continue;}if(${${"GLOBALS"}["ktwefm"]} instanceof Arrow and$entity->hadCollision){$gpnyxrcvapx="pk";${"GLOBALS"}["ojdoxiexx"]="pk";$ubqyod="item";$qtwkcfyuow="add";${$ubqyod}=Item::get(Item::ARROW,$entity->getPotionId(),1);${$qtwkcfyuow}=false;$ulrxbhpgo="entity";if(!$this->server->allowInventoryCheats and!$this->isCreative()){$zejdptmf="item";$rrrbogrhx="add";${"GLOBALS"}["sgisjr"]="item";if(!$this->getFloatingInventory()->canAddItem(${${"GLOBALS"}["sgisjr"]})or!$this->inventory->canAddItem(${$zejdptmf})){continue;}${$rrrbogrhx}=true;}$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["gnodacyuno"]}=new InventoryPickupArrowEvent($this->inventory,${$ulrxbhpgo}));if($ev->isCancelled()){continue;}${${"GLOBALS"}["wzarnypqog"]}=new TakeItemEntityPacket();$pk->eid=$this->getId();$pk->target=$entity->getId();$ufykpns="pk";Server::broadcastPacket($entity->getViewers(),${${"GLOBALS"}["ojdoxiexx"]});${$gpnyxrcvapx}=new TakeItemEntityPacket();${"GLOBALS"}["ajuxidd"]="add";$pk->eid=0;$pk->target=$entity->getId();$this->dataPacket(${$ufykpns});if(${${"GLOBALS"}["ajuxidd"]}){${"GLOBALS"}["gkbdom"]="item";$this->getFloatingInventory()->addItem(clone${${"GLOBALS"}["gkbdom"]});}$entity->kill();}elseif(${${"GLOBALS"}["ktwefm"]} instanceof DroppedItem){if($entity->getPickupDelay()<=0){${"GLOBALS"}["vkdgkbfby"]="item";${${"GLOBALS"}["iilrmljxz"]}=$entity->getItem();if(${${"GLOBALS"}["vkdgkbfby"]} instanceof Item){${"GLOBALS"}["fkmjnvuudro"]="pk";${"GLOBALS"}["llqizathslfu"]="add";${${"GLOBALS"}["llqizathslfu"]}=false;if(!$this->server->allowInventoryCheats and!$this->isCreative()){${"GLOBALS"}["ehhodvrsveke"]="item";${"GLOBALS"}["dooidn"]="add";if(!$this->getFloatingInventory()->canAddItem(${${"GLOBALS"}["ehhodvrsveke"]})or!$this->inventory->canAddItem(${${"GLOBALS"}["iilrmljxz"]})){continue;}${${"GLOBALS"}["dooidn"]}=true;}$pnoevumb="pk";$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["gnodacyuno"]}=new InventoryPickupItemEvent($this->inventory,${${"GLOBALS"}["ktwefm"]}));if($ev->isCancelled()){continue;}switch($item->getId()){case Item::WOOD:$this->awardAchievement("mineWood");break;case Item::DIAMOND:$this->awardAchievement("diamond");break;}${${"GLOBALS"}["fkmjnvuudro"]}=new TakeItemEntityPacket();$pk->eid=$this->getId();${"GLOBALS"}["gbstcbxgksrh"]="pk";$pk->target=$entity->getId();${"GLOBALS"}["uvuqobbgh"]="add";Server::broadcastPacket($entity->getViewers(),${${"GLOBALS"}["wzarnypqog"]});${$pnoevumb}=new TakeItemEntityPacket();$pk->eid=0;$pk->target=$entity->getId();$this->dataPacket(${${"GLOBALS"}["gbstcbxgksrh"]});if(${${"GLOBALS"}["uvuqobbgh"]}){$this->getFloatingInventory()->addItem(clone${${"GLOBALS"}["iilrmljxz"]});}$entity->kill();}}}}}protected function processMovement($tickDiff){${"GLOBALS"}["nmwibdcjjdof"]="revert";$vnvrjevk="from";${"GLOBALS"}["jlwhpmt"]="to";if(!$this->isAlive()or!$this->spawned or$this->newPosition===null or$this->teleportPosition!==null){$this->setMoving(false);return;}${"GLOBALS"}["xrsdfwi"]="delta";$cppypgz="deltaAngle";${${"GLOBALS"}["yebtwimdkh"]}=$this->newPosition;${${"GLOBALS"}["dhjwstu"]}=$newPos->distanceSquared($this);${${"GLOBALS"}["nmwibdcjjdof"]}=false;$rnqlprd="distanceSquared";if($this->server->checkMovement){${"GLOBALS"}["arhayrdrxsz"]="distanceSquared";if((${${"GLOBALS"}["arhayrdrxsz"]}/(${${"GLOBALS"}["lbythketfik"]}**2))>200){${${"GLOBALS"}["xytwjboryd"]}=true;}else{if($this->chunk===null or!$this->chunk->isGenerated()){${"GLOBALS"}["xqpxbsehey"]="chunk";${${"GLOBALS"}["xqpxbsehey"]}=$this->level->getChunk($newPos->x>>4,$newPos->z>>4,false);if(${${"GLOBALS"}["emtslgypncla"]}===null or!$chunk->isGenerated()){${${"GLOBALS"}["xytwjboryd"]}=true;$this->nextChunkOrderRun=0;}else{if($this->chunk!==null){$this->chunk->removeEntity($this);}$this->chunk=${${"GLOBALS"}["emtslgypncla"]};}}}}else{if($this->chunk===null or!$this->chunk->isGenerated()){${"GLOBALS"}["xaggdfxiicma"]="chunk";${${"GLOBALS"}["xaggdfxiicma"]}=$this->level->getChunk($newPos->x>>4,$newPos->z>>4,false);if(${${"GLOBALS"}["emtslgypncla"]}===null or!$chunk->isGenerated()){${"GLOBALS"}["gxyyacjicx"]="revert";${${"GLOBALS"}["gxyyacjicx"]}=true;$this->nextChunkOrderRun=0;}else{$yemkezdsslxg="chunk";if($this->chunk!==null){$this->chunk->removeEntity($this);}$this->chunk=${$yemkezdsslxg};}}}${"GLOBALS"}["lmeqivzeyxf"]="distanceSquared";if(!${${"GLOBALS"}["xytwjboryd"]} and${$rnqlprd}!=0){${"GLOBALS"}["nxxkgihmksiq"]="dy";$tzrmdfighvn="tickDiff";$qmbvgow="diffY";$wpbngrewr="dx";${"GLOBALS"}["atwnxy"]="diff";$awxtyqlr="dx";${"GLOBALS"}["sqoimjgmly"]="diffY";$bcvlvroqkb="yS";${"GLOBALS"}["dgcfvwhc"]="dz";${$wpbngrewr}=$newPos->x-$this->x;${${"GLOBALS"}["nxxkgihmksiq"]}=$newPos->y-$this->y;$fefrwdia="diffY";$cbwtzt="yS";${"GLOBALS"}["giisrsz"]="diffZ";$kmnmodslyc="diffY";${${"GLOBALS"}["slfirtkwciaa"]}=$newPos->z-$this->z;$tsxkbwux="diffZ";$this->move(${$awxtyqlr},${${"GLOBALS"}["qnftxtonxt"]},${${"GLOBALS"}["dgcfvwhc"]});${${"GLOBALS"}["kohjzrm"]}=$this->x-$newPos->x;${$kmnmodslyc}=$this->y-$newPos->y;${${"GLOBALS"}["giisrsz"]}=$this->z-$newPos->z;${${"GLOBALS"}["rhfneb"]}=0.5+$this->ySize;if(${$qmbvgow}>=-${$cbwtzt} or${${"GLOBALS"}["sqoimjgmly"]}<=${$bcvlvroqkb}){${${"GLOBALS"}["osjnews"]}=0;}${${"GLOBALS"}["atwnxy"]}=(${${"GLOBALS"}["kohjzrm"]}**2+${$fefrwdia}**2+${$tsxkbwux}**2)/(${$tzrmdfighvn}**2);}${$vnvrjevk}=new Location($this->lastX,$this->lastY,$this->lastZ,$this->lastYaw,$this->lastPitch,$this->level);${${"GLOBALS"}["jlwhpmt"]}=$this->getLocation();${${"GLOBALS"}["xrsdfwi"]}=pow($this->lastX-$to->x,2)+pow($this->lastY-$to->y,2)+pow($this->lastZ-$to->z,2);${$cppypgz}=abs($this->lastYaw-$to->yaw)+abs($this->lastPitch-$to->pitch);if(!${${"GLOBALS"}["xytwjboryd"]} and(${${"GLOBALS"}["kflyxnypja"]}>(1/16)or${${"GLOBALS"}["wyutiziljyl"]}>10)){${${"GLOBALS"}["wjegmqp"]}=($this->lastX===null or$this->lastY===null or$this->lastZ===null);$this->lastX=$to->x;$this->lastY=$to->y;$this->lastZ=$to->z;$this->lastYaw=$to->yaw;$this->lastPitch=$to->pitch;if(!${${"GLOBALS"}["wjegmqp"]}){$fmpfrvohqxy="ev";$hlgtyiws="from";${"GLOBALS"}["pyywhzmajtz"]="to";${$fmpfrvohqxy}=new PlayerMoveEvent($this,${$hlgtyiws},${${"GLOBALS"}["pyywhzmajtz"]});$this->setMoving(true);${"GLOBALS"}["ewmopif"]="ev";$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["ewmopif"]});if(!(${${"GLOBALS"}["xytwjboryd"]}=$ev->isCancelled())){if($this->server->netherEnabled){if($this->isInsideOfPortal()){if($this->portalTime==0){$this->portalTime=$this->server->getTick();}}else{$this->portalTime=0;}}if($to->distanceSquared($ev->getTo())>0.01){$this->teleport($ev->getTo());}else{$this->addMovement($this->x,$this->y+$this->getEyeHeight(),$this->z,$this->yaw,$this->pitch,$this->yaw);}if($this->fishingHook instanceof FishingHook){if($this->distance($this->fishingHook)>33 or$this->inventory->getItemInHand()->getId()!==Item::FISHING_ROD){$this->setFishingHook();}}}}if(!$this->isSpectator()){$this->checkNearEntities(${${"GLOBALS"}["lbythketfik"]});}$this->speed=$from->subtract(${${"GLOBALS"}["hvbdzocbxau"]});}elseif(${${"GLOBALS"}["lmeqivzeyxf"]}==0){$this->speed=new Vector3(0,0,0);$this->setMoving(false);}if(${${"GLOBALS"}["xytwjboryd"]}&&!$this->isSpectator()){$this->lastX=$from->x;$uyovexoevldw="from";$this->lastY=$from->y;$this->lastZ=$from->z;$this->lastYaw=$from->yaw;$this->lastPitch=$from->pitch;$this->sendPosition(${$uyovexoevldw},$from->yaw,$from->pitch,1);$this->forceMovement=new Vector3($from->x,$from->y,$from->z);}else{$ihhxnhwv="distanceSquared";$this->forceMovement=null;if(${$ihhxnhwv}!=0 and$this->nextChunkOrderRun>20){$this->nextChunkOrderRun=20;}}$this->newPosition=null;}public function addMovement($x,$y,$z,$yaw,$pitch,$headYaw=null){if($this->chunk!==null){$icjspabrq="z";${"GLOBALS"}["yslttqt"]="headYaw";${"GLOBALS"}["dqsqjslhwuq"]="pitch";$this->level->addPlayerMovement($this->chunk->getX(),$this->chunk->getZ(),$this->id,${${"GLOBALS"}["emtgqqv"]},${${"GLOBALS"}["mhoejwx"]},${$icjspabrq},${${"GLOBALS"}["bcolpuljld"]},${${"GLOBALS"}["dqsqjslhwuq"]},$this->onGround,${${"GLOBALS"}["tguzxvdc"]}===null?${${"GLOBALS"}["bcolpuljld"]}:${${"GLOBALS"}["yslttqt"]});}}public function setMotion(Vector3$mot){$ohrobbq="mot";if(parent::setMotion(${$ohrobbq})){if($this->chunk!==null){$this->level->addEntityMotion($this->chunk->getX(),$this->chunk->getZ(),$this->getId(),$this->motionX,$this->motionY,$this->motionZ);${${"GLOBALS"}["wzarnypqog"]}=new SetEntityMotionPacket();${"GLOBALS"}["ogqehneyk"]="pk";$pk->entities[]=[0,$mot->x,$mot->y,$mot->z];$this->dataPacket(${${"GLOBALS"}["ogqehneyk"]});}if($this->motionY>0){$this->startAirTicks=(-(log($this->gravity/($this->gravity+$this->drag*$this->motionY)))/$this->drag)*2+5;}return true;}return false;}protected function updateMovement(){}public$foodTick=0;public$starvationTick=0;public$foodUsageTime=0;protected$moving=false;public function setMoving($moving){$this->moving=${${"GLOBALS"}["btswwidef"]};}public function isMoving():bool{return$this->moving;}public function sendAttributes(){${"GLOBALS"}["bkgngzwuho"]="entries";${${"GLOBALS"}["bkgngzwuho"]}=$this->attributeMap->needSend();if(count(${${"GLOBALS"}["iuwufpmq"]})>0){${"GLOBALS"}["vmmuledl"]="entries";${${"GLOBALS"}["wzarnypqog"]}=new UpdateAttributesPacket();${"GLOBALS"}["ubpddvnn"]="entry";$bvqmmolf="pk";$pk->entityId=0;$pk->entries=${${"GLOBALS"}["vmmuledl"]};$this->dataPacket(${$bvqmmolf});foreach(${${"GLOBALS"}["iuwufpmq"]} as${${"GLOBALS"}["ubpddvnn"]}){$entry->markSynchronized();}}}public function onUpdate($currentTick){${"GLOBALS"}["dkhihwotm"]="currentTick";if(!$this->loggedIn){return false;}${"GLOBALS"}["nbzxgxps"]="tickDiff";${${"GLOBALS"}["nbzxgxps"]}=${${"GLOBALS"}["mzvslflk"]}-$this->lastUpdate;if(${${"GLOBALS"}["lbythketfik"]}<=0){return true;}$this->messageCounter=2;$this->lastUpdate=${${"GLOBALS"}["dkhihwotm"]};$this->sendAttributes();if(!$this->isAlive()and$this->spawned){++$this->deadTicks;if($this->deadTicks>=10){$this->despawnFromAll();}return true;}$this->timings->startTiming();if($this->spawned){${"GLOBALS"}["wnodyqvigj"]="tickDiff";if($this->server->netherEnabled){if(($this->isCreative()or$this->isSurvival()and$this->server->getTick()-$this->portalTime>=80)and$this->portalTime>0){if($this->server->netherLevel instanceof Level){if($this->getLevel()!=$this->server->netherLevel){$this->fromPos=$this->getPosition();$this->fromPos->x=((int)$this->fromPos->x)+0.5;$this->fromPos->z=((int)$this->fromPos->z)+0.5;$this->teleport($this->shouldResPos=$this->server->netherLevel->getSafeSpawn());}elseif($this->fromPos instanceof Position){${"GLOBALS"}["usknnlawlig"]="j";${"GLOBALS"}["oshnfh"]="add";$olaqxnkldgk="tempos";$zhhxcngol="j";if(!($this->getLevel()->isChunkLoaded($this->fromPos->x,$this->fromPos->z))){$this->getLevel()->loadChunk($this->fromPos->x,$this->fromPos->z);}${${"GLOBALS"}["oshnfh"]}=[1,0,-1,0,0,1,0,-1];${"GLOBALS"}["gdgvzcps"]="j";${"GLOBALS"}["lrefcxcjhq"]="tempos";${${"GLOBALS"}["ngwdki"]}=null;for(${${"GLOBALS"}["usknnlawlig"]}=2;${${"GLOBALS"}["gdgvzcps"]}<5;${$zhhxcngol}++){${"GLOBALS"}["ejophdgc"]="i";$xxbubustdt="i";for(${${"GLOBALS"}["yicyexuhqi"]}=0;${${"GLOBALS"}["ejophdgc"]}<4;${$xxbubustdt}++){${"GLOBALS"}["ocowwdxl"]="add";${"GLOBALS"}["puovcddj"]="j";${"GLOBALS"}["mwtfteo"]="i";${"GLOBALS"}["wvctsiwinkb"]="i";if($this->fromPos->getLevel()->getBlock($this->temporalVector->fromObjectAdd($this->fromPos,${${"GLOBALS"}["ocowwdxl"]}[${${"GLOBALS"}["wvctsiwinkb"]}]*${${"GLOBALS"}["lebphkl"]},0,${${"GLOBALS"}["jxseuiun"]}[${${"GLOBALS"}["mwtfteo"]}+4]*${${"GLOBALS"}["puovcddj"]}))->getId()===Block::AIR){$ohpcwclh="add";$bweitjhqyc="j";$kiiifori="j";$kmbiekimi="add";${"GLOBALS"}["qswoeffzgrx"]="i";if($this->fromPos->getLevel()->getBlock($this->temporalVector->fromObjectAdd($this->fromPos,${$ohpcwclh}[${${"GLOBALS"}["qswoeffzgrx"]}]*${$kiiifori},1,${$kmbiekimi}[${${"GLOBALS"}["yicyexuhqi"]}+4]*${$bweitjhqyc}))->getId()===Block::AIR){$kvphmusmbq="add";${"GLOBALS"}["sndypumykpr"]="tempos";$rimqcjouuub="add";${${"GLOBALS"}["sndypumykpr"]}=$this->fromPos->add(${$rimqcjouuub}[${${"GLOBALS"}["yicyexuhqi"]}]*${${"GLOBALS"}["lebphkl"]},0,${$kvphmusmbq}[${${"GLOBALS"}["yicyexuhqi"]}+4]*${${"GLOBALS"}["lebphkl"]});break;}}}if(${${"GLOBALS"}["ngwdki"]}!=null){break;}}$unptgwlb="add";if(${${"GLOBALS"}["ngwdki"]}==null){$sacisytuuoeu="tempos";${$sacisytuuoeu}=$this->fromPos->add(mt_rand(-2,2),0,mt_rand(-2,2));}$this->teleport($this->shouldResPos=${$olaqxnkldgk});${$unptgwlb}=null;${${"GLOBALS"}["lrefcxcjhq"]}=null;$this->fromPos=null;}else{$this->teleport($this->shouldResPos=$this->server->getDefaultLevel()->getSafeSpawn());}$this->portalTime=0;}}}if(!$this->isSleeping()){${"GLOBALS"}["jmcodqsmsc"]="tickDiff";$this->processMovement(${${"GLOBALS"}["jmcodqsmsc"]});}if(!$this->isSpectator())$this->entityBaseTick(${${"GLOBALS"}["wnodyqvigj"]});if($this->isOnFire()or$this->lastUpdate%10==0){if($this->isCreative()and!$this->isInsideOfFire()){$this->extinguish();}elseif($this->getLevel()->getWeather()->isRainy()){if($this->getLevel()->canBlockSeeSky($this)){$this->extinguish();}}}if($this->server->antiFly){if(!$this->isSpectator()and$this->speed!==null){if($this->onGround){if($this->inAirTicks!==0){$this->startAirTicks=5;}$this->inAirTicks=0;}else{if(!$this->allowFlight and$this->inAirTicks>10 and!$this->isSleeping()and$this->getDataProperty(self::DATA_NO_AI)!==1){$icgxpfgjkiz="expectedVelocity";$eqiftjzxo="diff";${"GLOBALS"}["kmkrhpgyivf"]="diff";${${"GLOBALS"}["hbsgxhfknnk"]}=(-$this->gravity)/$this->drag-((-$this->gravity)/$this->drag)*exp(-$this->drag*($this->inAirTicks-$this->startAirTicks));${${"GLOBALS"}["kmkrhpgyivf"]}=($this->speed->y-${$icgxpfgjkiz})**2;if(!$this->hasEffect(Effect::JUMP)and${$eqiftjzxo}>0.6 and${${"GLOBALS"}["hbsgxhfknnk"]}<$this->speed->y and!$this->server->getAllowFlight()){${"GLOBALS"}["ppyctruub"]="expectedVelocity";$this->setMotion($this->temporalVector->setComponents(0,${${"GLOBALS"}["ppyctruub"]},0));}}++$this->inAirTicks;}}}if($this->getTransactionQueue()!==null){$this->getTransactionQueue()->execute();}}$this->checkTeleportPosition();$this->timings->stopTiming();return true;}public function checkNetwork(){if(!$this->isOnline()){return;}if($this->nextChunkOrderRun--<=0 or$this->chunk===null){$this->orderChunks();}if(count($this->loadQueue)>0 or!$this->spawned){$this->sendNextChunk();}if(count($this->batchedPackets)>0){$this->server->batchPackets([$this],$this->batchedPackets,false);$this->batchedPackets=[];}}public function canInteract(Vector3$pos,$maxDistance,$maxDiff=0.5){${"GLOBALS"}["lpqtfrjcldc"]="eyePos";${${"GLOBALS"}["lpqtfrjcldc"]}=$this->getPosition()->add(0,$this->getEyeHeight(),0);if($eyePos->distanceSquared(${${"GLOBALS"}["kozwdu"]})>${${"GLOBALS"}["lupktf"]}**2){return false;}${${"GLOBALS"}["ufgqbvfienf"]}=$this->getDirectionPlane();${"GLOBALS"}["lurvgjg"]="maxDiff";${${"GLOBALS"}["lokjlenqgk"]}=$dV->dot(new Vector2($eyePos->x,$eyePos->z));${${"GLOBALS"}["knroxqdcfm"]}=$dV->dot(new Vector2($pos->x,$pos->z));return(${${"GLOBALS"}["knroxqdcfm"]}-${${"GLOBALS"}["lokjlenqgk"]})>=-${${"GLOBALS"}["lurvgjg"]};}public function onPlayerPreLogin(){$kifkqx="pk";${${"GLOBALS"}["wzarnypqog"]}=new PlayStatusPacket();$pk->status=PlayStatusPacket::LOGIN_SUCCESS;$this->dataPacket(${$kifkqx});$this->processLogin();}public function clearCreativeItems(){$this->personalCreativeItems=[];}public function getCreativeItems():array{return$this->personalCreativeItems;}public function addCreativeItem(Item$item){$this->personalCreativeItems[]=Item::get($item->getId(),$item->getDamage());}public function removeCreativeItem(Item$item){$psacwhji="item";${${"GLOBALS"}["vtsgjeil"]}=$this->getCreativeItemIndex(${$psacwhji});if(${${"GLOBALS"}["vtsgjeil"]}!==-1){${"GLOBALS"}["fnagykwvsjo"]="index";unset($this->personalCreativeItems[${${"GLOBALS"}["fnagykwvsjo"]}]);}}public function getCreativeItemIndex(Item$item):int{foreach($this->personalCreativeItems as${${"GLOBALS"}["yicyexuhqi"]}=>${${"GLOBALS"}["tdkqqsvd"]}){if($item->equals(${${"GLOBALS"}["tdkqqsvd"]},!$item->isTool())){return${${"GLOBALS"}["yicyexuhqi"]};}}return-1;}protected function processLogin(){$eubuxclrnsf="level";$ufsrvincyej="nbt";$tajbiqh="nbt";if(!$this->server->isWhitelisted(strtolower($this->getName()))){$this->close($this->getLeaveMessage(),"Server is white-listed");return;}elseif($this->server->getNameBans()->isBanned(strtolower($this->getName()))or$this->server->getIPBans()->isBanned($this->getAddress())or$this->server->getCIDBans()->isBanned($this->randomClientId)){$this->close($this->getLeaveMessage(),TextFormat::RED."You are banned");return;}if($this->hasPermission(Server::BROADCAST_CHANNEL_USERS)){$this->server->getPluginManager()->subscribeToPermission(Server::BROADCAST_CHANNEL_USERS,$this);}$ejtbukpvj="p";if($this->hasPermission(Server::BROADCAST_CHANNEL_ADMINISTRATIVE)){$this->server->getPluginManager()->subscribeToPermission(Server::BROADCAST_CHANNEL_ADMINISTRATIVE,$this);}${"GLOBALS"}["mohguknctg"]="pk";${"GLOBALS"}["xlhocydjjc"]="nbt";${"GLOBALS"}["fdagztyzjhl"]="nbt";foreach($this->server->getOnlinePlayers()as${$ejtbukpvj}){${"GLOBALS"}["glslgizwm"]="p";if(${${"GLOBALS"}["glslgizwm"]}!==$this and strtolower($p->getName())===strtolower($this->getName())){if($p->kick("logged in from another location")===false){$this->close($this->getLeaveMessage(),"Logged in from another location");return;}}elseif($p->loggedIn and$this->getUniqueId()->equals($p->getUniqueId())){if($p->kick("logged in from another location")===false){$this->close($this->getLeaveMessage(),"Logged in from another location");return;}}}${"GLOBALS"}["kqrartxlu"]="pk";$this->setNameTag($this->getDisplayName());${"GLOBALS"}["ppcrjflge"]="nbt";${$ufsrvincyej}=$this->server->getOfflinePlayerData($this->username);$wmcirnk="nbt";${"GLOBALS"}["tjwrerh"]="nbt";$this->playedBefore=(${${"GLOBALS"}["efjvqop"]}["lastPlayed"]-${${"GLOBALS"}["fdagztyzjhl"]}["firstPlayed"])>1;if(!isset($nbt->NameTag)){$nbt->NameTag=new StringTag("NameTag",$this->username);}else{$ltiiwzkyjxk="nbt";${$ltiiwzkyjxk}["NameTag"]=$this->username;}${"GLOBALS"}["skcjqphnep"]="level";if(!isset($nbt->Hunger)or!isset($nbt->Health)or!isset($nbt->MaxHealth)){$nbt->Hunger=new ShortTag("Hunger",20);$nbt->Health=new ShortTag("Health",20);$nbt->MaxHealth=new ShortTag("MaxHealth",20);}$this->food=${${"GLOBALS"}["xlhocydjjc"]}["Hunger"];$this->setMaxHealth(${${"GLOBALS"}["tjwrerh"]}["MaxHealth"]);Entity::setHealth((${${"GLOBALS"}["efjvqop"]}["Health"]<=0)?20:${${"GLOBALS"}["efjvqop"]}["Health"]);$this->gamemode=${${"GLOBALS"}["ppcrjflge"]}["playerGameType"]&0x03;if($this->server->getForceGamemode()){$this->gamemode=$this->server->getGamemode();$nbt->playerGameType=new IntTag("playerGameType",$this->gamemode);}$this->allowFlight=$this->isCreative();${"GLOBALS"}["recqfgwxeyd"]="pk";if((${${"GLOBALS"}["skcjqphnep"]}=$this->server->getLevelByName(${${"GLOBALS"}["efjvqop"]}["Level"]))===null){$this->setLevel($this->server->getDefaultLevel());${"GLOBALS"}["yrccre"]="nbt";${${"GLOBALS"}["efjvqop"]}["Level"]=$this->level->getName();${${"GLOBALS"}["yrccre"]}["Pos"][0]=$this->level->getSpawnLocation()->x;${${"GLOBALS"}["efjvqop"]}["Pos"][1]=$this->level->getSpawnLocation()->y;${${"GLOBALS"}["efjvqop"]}["Pos"][2]=$this->level->getSpawnLocation()->z;}else{$this->setLevel(${${"GLOBALS"}["ndesogqnmbm"]});}if(!(${$tajbiqh} instanceof CompoundTag)){$this->close($this->getLeaveMessage(),"Invalid data");return;}${"GLOBALS"}["aobljkf"]="spawnPosition";$obqfcs="nbt";$this->achievements=[];foreach($nbt->Achievements as${${"GLOBALS"}["sngxvfhv"]}){$this->achievements[$achievement->getName()]=$achievement->getValue()>0?true:false;}$qxqgwqhedgh="pk";$nbt->lastPlayed=new LongTag("lastPlayed",floor(microtime(true)*1000));if($this->server->getAutoSave()){${"GLOBALS"}["omqpjqsijo"]="nbt";$this->server->saveOfflinePlayerData($this->username,${${"GLOBALS"}["omqpjqsijo"]},true);}parent::__construct($this->level->getChunk(${$wmcirnk}["Pos"][0]>>4,${${"GLOBALS"}["efjvqop"]}["Pos"][2]>>4,true),${$obqfcs});$this->loggedIn=true;$this->server->addOnlinePlayer($this);$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["gnodacyuno"]}=new PlayerLoginEvent($this,"Plugin reason"));if($ev->isCancelled()){$this->close($this->getLeaveMessage(),$ev->getKickMessage());return;}if(!$this->isConnected()){return;}${${"GLOBALS"}["kqrartxlu"]}=new PlayStatusPacket();$pk->status=PlayStatusPacket::LOGIN_SUCCESS;$this->dataPacket(${${"GLOBALS"}["mohguknctg"]});if($this->spawnPosition===null and isset($this->namedtag->SpawnLevel)and(${$eubuxclrnsf}=$this->server->getLevelByName($this->namedtag["SpawnLevel"]))instanceof Level){$rggoooemuljz="level";$this->spawnPosition=new Position($this->namedtag["SpawnX"],$this->namedtag["SpawnY"],$this->namedtag["SpawnZ"],${$rggoooemuljz});}${${"GLOBALS"}["aobljkf"]}=$this->getSpawn();${${"GLOBALS"}["wzarnypqog"]}=new StartGamePacket();$pk->seed=-1;$pk->dimension=$this->level->getDimension();$pk->x=$this->x;$pk->y=$this->y;$pk->z=$this->z;$pk->spawnX=(int)$spawnPosition->x;$pk->spawnY=(int)$spawnPosition->y;$yircxdacwe="pk";$pk->spawnZ=(int)$spawnPosition->z;$pk->generator=1;$pk->gamemode=$this->gamemode&0x01;$pk->eid=0;$this->dataPacket(${${"GLOBALS"}["wzarnypqog"]});${${"GLOBALS"}["wzarnypqog"]}=new SetTimePacket();$pk->time=$this->level->getTime();$pk->started=$this->level->stopTime==false;$this->dataPacket(${${"GLOBALS"}["wzarnypqog"]});${${"GLOBALS"}["wzarnypqog"]}=new SetSpawnPositionPacket();$pk->x=(int)$spawnPosition->x;$pk->y=(int)$spawnPosition->y;$pk->z=(int)$spawnPosition->z;$this->dataPacket(${${"GLOBALS"}["wzarnypqog"]});${$qxqgwqhedgh}=new SetHealthPacket();$pk->health=$this->getHealth();$this->dataPacket(${${"GLOBALS"}["wzarnypqog"]});${${"GLOBALS"}["wzarnypqog"]}=new SetDifficultyPacket();$pk->difficulty=$this->server->getDifficulty();$this->dataPacket(${$yircxdacwe});$this->server->getLogger()->info($this->getServer()->getLanguage()->translateString("pocketmine.player.logIn",[TextFormat::AQUA.$this->username.TextFormat::WHITE,$this->ip,$this->port,TextFormat::GREEN.$this->randomClientId.TextFormat::WHITE,$this->id,$this->level->getName(),round($this->x,4),round($this->y,4),round($this->z,4)]));if($this->gamemode===Player::SPECTATOR){$eiuzlogyk="pk";${$eiuzlogyk}=new ContainerSetContentPacket();$pk->windowid=ContainerSetContentPacket::SPECIAL_CREATIVE;$this->dataPacket(${${"GLOBALS"}["wzarnypqog"]});}else{if(AnyVersionManager::isProtocol($this,"0.15")){${"GLOBALS"}["zfofwf"]="pk";${${"GLOBALS"}["zfofwf"]}=new ContainerSetContentPacket();${"GLOBALS"}["tmbbenso"]="pk";$pk->windowid=ContainerSetContentPacket::SPECIAL_CREATIVE;$pk->slots=array_merge(Item::getCreativeItems(),$this->personalCreativeItems);$this->dataPacket(${${"GLOBALS"}["tmbbenso"]});}else if(AnyVersionManager::isProtocol($this,"0.14")){${"GLOBALS"}["qcpymbknfm"]="pk";${${"GLOBALS"}["wzarnypqog"]}=new ContainerSetContentPacket();$pk->windowid=ContainerSetContentPacket::SPECIAL_CREATIVE;$pk->slots=array_merge(Item::getp70CreativeItems(),$this->personalCreativeItems);$this->dataPacket(${${"GLOBALS"}["qcpymbknfm"]});}}${${"GLOBALS"}["recqfgwxeyd"]}=new SetEntityDataPacket();$pk->eid=0;$pk->metadata=[self::DATA_LEAD_HOLDER=>[self::DATA_TYPE_LONG,-1]];$this->dataPacket(${${"GLOBALS"}["wzarnypqog"]});$this->forceMovement=$this->teleportPosition=$this->getPosition();}public function getProtocol(){return$this->protocol;}public function handleDataPacket($packet){$nifther="pos";$agfhrcauhxob="packet";$vgybaoxd="target";$drffdpgi="pk";${"GLOBALS"}["osaeqdcdfeoh"]="ev";${"GLOBALS"}["whqdljqrbdj"]="i";$dywatckscjx="len";${"GLOBALS"}["ingfonkjrqqo"]="vector";$fkreieyjkgk="packet";$zujlqycwtwa="ev";${"GLOBALS"}["mrrapukbuwb"]="valid";${"GLOBALS"}["utxbsmlripb"]="vector";${"GLOBALS"}["zljtnoeo"]="i";$divljmcxvysr="item";${"GLOBALS"}["aqndzbbpk"]="pk";${"GLOBALS"}["hlrdnngmxvgc"]="target";$llujkwq="tile";if($this->connected===false){return;}${"GLOBALS"}["nncbdmdp"]="i";${"GLOBALS"}["kbpipi"]="blockVector";${"GLOBALS"}["xyeblvs"]="ev";$wriiralyooi="target";$cnxkewkxm="t";${"GLOBALS"}["xfndyiv"]="i";$uhpxmbauy="pk";$pqiyrtjkvrmj="revert";$injbhxv="oldItem";$tpfbnoelo="pos";${"GLOBALS"}["cyetjetd"]="pos";${"GLOBALS"}["tcrjxbkprpge"]="target";${"GLOBALS"}["wfxmjux"]="target";$dywxge="t";${"GLOBALS"}["xinyqdi"]="item";$bkijhpyis="ev";${"GLOBALS"}["fptryekpvb"]="pos";if(${${"GLOBALS"}["iysgrb"]}::NETWORK_ID===ProtocolInfo::BATCH_PACKET or${${"GLOBALS"}["iysgrb"]}::NETWORK_ID===0x92){$this->server->getNetwork()->processBatch(${${"GLOBALS"}["iysgrb"]},$this);return;}$ijrepr="recipe";$vbbsrvopwwbr="valid";${"GLOBALS"}["jecskzubn"]="item";$iwhonkg="pk";${"GLOBALS"}["dfrvwpi"]="recipe";$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["gnodacyuno"]}=new DataPacketReceiveEvent($this,${$fkreieyjkgk}));${"GLOBALS"}["gyqpqnr"]="recipe";$mmknnvlj="target";${"GLOBALS"}["ijkmfoc"]="tile";${"GLOBALS"}["olbqdh"]="ev";${"GLOBALS"}["kivknjnbdodf"]="ev";if($ev->isCancelled()){return;}${"GLOBALS"}["mfyfowbxfb"]="transaction";switch(${$agfhrcauhxob}::NETWORK_ID){case ProtocolInfo::ITEM_FRAME_DROP_ITEM_PACKET:case\pocketmine\network\protocol\p70\Info::ITEM_FRAME_DROP_ITEM_PACKET:${${"GLOBALS"}["eftxoeklah"]}=$this->level->getTile($this->temporalVector->setComponents($packet->x,$packet->y,$packet->z));if(${${"GLOBALS"}["eftxoeklah"]} instanceof ItemFrame){$pbuviicfo="block";${"GLOBALS"}["rnqqimrrx"]="tile";$vokaqfwxtv="block";${"GLOBALS"}["biwklmejxwa"]="ev";${$vokaqfwxtv}=$this->level->getBlock(${${"GLOBALS"}["rnqqimrrx"]});$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["biwklmejxwa"]}=new BlockBreakEvent($this,${$pbuviicfo},$this->getInventory()->getItemInHand(),true));if(!$ev->isCancelled()){${${"GLOBALS"}["iilrmljxz"]}=$tile->getItem();${"GLOBALS"}["tfdljopy"]="item";$yoyxyj="block";$kvmbnx="ev";$this->server->getPluginManager()->callEvent(${$kvmbnx}=new ItemFrameDropItemEvent($this,${$yoyxyj},${${"GLOBALS"}["eftxoeklah"]},${${"GLOBALS"}["tfdljopy"]}));if(!$ev->isCancelled()){if($item->getId()!==Item::AIR){if((mt_rand(0,10)/10)<$tile->getItemDropChance()){$ckaygoll="tile";$this->level->dropItem(${$ckaygoll},${${"GLOBALS"}["iilrmljxz"]});}$tile->setItem(Item::get(Item::AIR));$tile->setItemRotation(0);}}else$tile->spawnTo($this);}else$tile->spawnTo($this);}break;case ProtocolInfo::REQUEST_CHUNK_RADIUS_PACKET:case\pocketmine\network\protocol\p70\Info::REQUEST_CHUNK_RADIUS_PACKET:${${"GLOBALS"}["aqndzbbpk"]}=new ChunkRadiusUpdatedPacket();$pk->radius=($this->server->chunkRadius!=-1)?$this->server->chunkRadius:$packet->radius;$this->dataPacket(${${"GLOBALS"}["wzarnypqog"]});break;case ProtocolInfo::PLAYER_INPUT_PACKET:case\pocketmine\network\protocol\p70\Info::PLAYER_INPUT_PACKET:break;case ProtocolInfo::LOGIN_PACKET:case\pocketmine\network\protocol\p70\Info::LOGIN_PACKET:if($this->loggedIn){break;}${${"GLOBALS"}["wzarnypqog"]}=new PlayStatusPacket();$pk->status=PlayStatusPacket::LOGIN_SUCCESS;$this->dataPacket(${$uhpxmbauy});$this->username=TextFormat::clean($packet->username);$this->displayName=$this->username;$this->setNameTag($this->username);$this->iusername=strtolower($this->username);$this->protocol=$packet->protocol;if($this->server->getConfigBoolean("online-mode",false)&&$packet->identityPublicKey===null){$this->kick("disconnectionScreen.notAuthenticated",false);break;}if(count($this->server->getOnlinePlayers())>=$this->server->getMaxPlayers()and$this->kick("disconnectionScreen.serverFull",false)){break;}if(!in_array($packet->protocol,AnyVersionManager::getAcceptedProtocols())){$huoekanxfkj="pk";${${"GLOBALS"}["wzarnypqog"]}=new PlayStatusPacket();$pk->status=PlayStatusPacket::LOGIN_FAILED_SERVER;$this->directDataPacket(${$huoekanxfkj});$this->close("","This server does not support your client",\false);break;}$this->randomClientId=$packet->clientId;if(${${"GLOBALS"}["iysgrb"]} instanceof DataPacket){$this->uuid=UUID::fromString($packet->clientUUID);$this->rawUUID=$this->uuid->toBinary();}else{$this->loginData=["clientId"=>$packet->clientId,"loginData"=>null];$this->uuid=$packet->clientUUID;$this->rawUUID=$this->uuid->toBinary();$this->clientSecret=$packet->clientSecret;}${$vbbsrvopwwbr}=true;${${"GLOBALS"}["bzuqaa"]}=strlen($packet->username);if(${${"GLOBALS"}["bzuqaa"]}>16 or${${"GLOBALS"}["bzuqaa"]}<3){${"GLOBALS"}["gnpnhkf"]="valid";${${"GLOBALS"}["gnpnhkf"]}=false;}for(${${"GLOBALS"}["xfndyiv"]}=0;${${"GLOBALS"}["whqdljqrbdj"]}<${$dywatckscjx} and${${"GLOBALS"}["fnpglwv"]};++${${"GLOBALS"}["zljtnoeo"]}){${"GLOBALS"}["tctrdujswzbe"]="c";${"GLOBALS"}["skpskooi"]="c";${"GLOBALS"}["xfybvwey"]="i";${"GLOBALS"}["rvkmnpwr"]="c";$vijxrbeosq="c";${"GLOBALS"}["shzfpkp"]="c";${"GLOBALS"}["iejmzlb"]="c";${$vijxrbeosq}=ord($packet->username{${${"GLOBALS"}["xfybvwey"]}});$sripmceosk="valid";$gtsrza="c";if((${${"GLOBALS"}["rvkmnpwr"]}>=ord("a")and${${"GLOBALS"}["vumdundwbvy"]}<=ord("z"))or(${${"GLOBALS"}["iejmzlb"]}>=ord("A")and${${"GLOBALS"}["skpskooi"]}<=ord("Z"))or(${$gtsrza}>=ord("0")and${${"GLOBALS"}["tctrdujswzbe"]}<=ord("9"))or${${"GLOBALS"}["shzfpkp"]}===ord("_")){continue;}${$sripmceosk}=false;break;}if(!${${"GLOBALS"}["mrrapukbuwb"]} or$this->iusername==="rcon"or$this->iusername==="console"){$this->close("","disconnectionScreen.invalidName");break;}if((strlen($packet->skin)!=64*64*4)and(strlen($packet->skin)!=64*32*4)){$this->close("","disconnectionScreen.invalidSkin");break;}if($packet->protocol==84){if((strlen($packet->skin)!=64*64*4)and(strlen($packet->skin)!=64*32*4)){$this->close("","disconnectionScreen.invalidSkin");break;}$this->setSkin($packet->skin,$packet->skinId);$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["gnodacyuno"]}=new PlayerPreLoginEvent($this,"Plugin reason"));if($ev->isCancelled()){$this->close("",$ev->getKickMessage());break;}}else{}if($packet->protocol==84){if((strlen($packet->skin)!=64*64*4)and(strlen($packet->skin)!=64*32*4)){$this->close("","disconnectionScreen.invalidSkin");break;}$this->setSkin($packet->skin,$packet->skinId);}else{if(\strlen($packet->skin)!==64*32*4 and\strlen($packet->skin)!==64*64*4){$this->close("","disconnectionScreen.invalidSkin");break;}$this->setSkin($packet->skin,$packet->skinName);}$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["gnodacyuno"]}=new PlayerPreLoginEvent($this,"Plugin reason"));if($ev->isCancelled()){$this->close("",$ev->getKickMessage());break;}$this->onPlayerPreLogin();break;case ProtocolInfo::MOVE_PLAYER_PACKET:case\pocketmine\network\protocol\p70\Info::MOVE_PLAYER_PACKET;if($this->linkedEntity instanceof Entity){${${"GLOBALS"}["ktwefm"]}=$this->linkedEntity;if(${${"GLOBALS"}["ktwefm"]} instanceof Boat){$entity->setPosition($this->temporalVector->setComponents($packet->x,$packet->y-0.3,$packet->z));}}${${"GLOBALS"}["yebtwimdkh"]}=new Vector3($packet->x,$packet->y-$this->getEyeHeight(),$packet->z);${${"GLOBALS"}["xytwjboryd"]}=false;if(!$this->isAlive()or$this->spawned!==true){${${"GLOBALS"}["xytwjboryd"]}=true;$this->forceMovement=new Vector3($this->x,$this->y,$this->z);}if($this->teleportPosition!==null or($this->forceMovement instanceof Vector3 and((${${"GLOBALS"}["zbisowqvsffw"]}=$newPos->distanceSquared($this->forceMovement))>0.1 or${$pqiyrtjkvrmj}))){if($this->forceMovement instanceof Vector3)$this->sendPosition($this->forceMovement,$packet->yaw,$packet->pitch);}else{$packet->yaw%=360;$packet->pitch%=360;if($packet->yaw<0){$packet->yaw+=360;}$this->setRotation($packet->yaw,$packet->pitch);${"GLOBALS"}["hjftsrimhgjz"]="newPos";$this->newPosition=${${"GLOBALS"}["hjftsrimhgjz"]};}$this->forceMovement=null;break;case ProtocolInfo::MOB_EQUIPMENT_PACKET:case\pocketmine\network\protocol\p70\Info::MOB_EQUIPMENT_PACKET:if($this->spawned===false or!$this->isAlive()){break;}$this->inventory->setHeldItemIndex($packet->selectedSlot,false,$packet->slot);$this->setDataFlag(self::DATA_FLAGS,self::DATA_FLAG_ACTION,false);break;case ProtocolInfo::USE_ITEM_PACKET:case\pocketmine\network\protocol\p70\Info::USE_ITEM_PACKET:if($this->spawned===false or!$this->isAlive()or$this->blocked){break;}${${"GLOBALS"}["kbpipi"]}=new Vector3($packet->x,$packet->y,$packet->z);$this->craftingType=self::CRAFTING_SMALL;if($packet->face>=0 and$packet->face<=5){$this->setDataFlag(self::DATA_FLAGS,self::DATA_FLAG_ACTION,false);${"GLOBALS"}["refrgb"]="target";if(!$this->canInteract($blockVector->add(0.5,0.5,0.5),13)or$this->isSpectator()){}elseif($this->isCreative()){$ptsddxai="item";${"GLOBALS"}["elwolewq"]="item";${$ptsddxai}=$this->inventory->getItemInHand();if($this->level->useItemOn(${${"GLOBALS"}["zhpqdsdrtxn"]},${${"GLOBALS"}["elwolewq"]},$packet->face,$packet->fx,$packet->fy,$packet->fz,$this)===true){break;}}elseif(!$this->inventory->getItemInHand()->deepEquals($packet->item)and$this->getProtocol()==84){$this->inventory->sendHeldItem($this);}elseif(!$this->inventory->getItemInHand()->deepEquals($this->inventory->getItemInHand())and AnyVersionManager::isProtocol($this,"0.14")){$this->inventory->sendHeldItem($this);}else{${"GLOBALS"}["ouubjupdngp"]="oldItem";$mistckllqfbw="item";$doozqfmsqcf="item";${$doozqfmsqcf}=$this->inventory->getItemInHand();${${"GLOBALS"}["ouubjupdngp"]}=clone${${"GLOBALS"}["iilrmljxz"]};if($this->level->useItemOn(${${"GLOBALS"}["zhpqdsdrtxn"]},${$mistckllqfbw},$packet->face,$packet->fx,$packet->fy,$packet->fz,$this)){$xmarojbgfb="oldItem";if(!$item->deepEquals(${$xmarojbgfb})or$item->getCount()!==$oldItem->getCount()){$this->inventory->setItemInHand(${${"GLOBALS"}["iilrmljxz"]});$this->inventory->sendHeldItem($this->hasSpawned);}break;}}$this->inventory->sendHeldItem($this);if($blockVector->distanceSquared($this)>10000){break;}${${"GLOBALS"}["refrgb"]}=$this->level->getBlock(${${"GLOBALS"}["zhpqdsdrtxn"]});${${"GLOBALS"}["mbcevemywy"]}=$target->getSide($packet->face);$this->level->sendBlocks([$this],[${${"GLOBALS"}["ljnlmdvwvr"]},${${"GLOBALS"}["mbcevemywy"]}],UpdateBlockPacket::FLAG_ALL_PRIORITY);break;}elseif($packet->face===0xff){${"GLOBALS"}["nmryrkenju"]="item";if($this->isSpectator()){break;}${"GLOBALS"}["ctzqvxa"]="ev";${${"GLOBALS"}["gdwhlctpodo"]}=(new Vector3($packet->x/32768,$packet->y/32768,$packet->z/32768))->normalize();if($this->isCreative()){$rqvdsfnedf="item";${$rqvdsfnedf}=$this->inventory->getItemInHand();}elseif(!$this->inventory->getItemInHand()->deepEquals($packet->item)){$this->inventory->sendHeldItem($this);break;}else{${${"GLOBALS"}["iilrmljxz"]}=$this->inventory->getItemInHand();}${${"GLOBALS"}["ctzqvxa"]}=new PlayerInteractEvent($this,${${"GLOBALS"}["nmryrkenju"]},${${"GLOBALS"}["gdwhlctpodo"]},$packet->face,PlayerInteractEvent::RIGHT_CLICK_AIR);${"GLOBALS"}["itnztdr"]="ev";$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["itnztdr"]});if($ev->isCancelled()){$this->inventory->sendHeldItem($this);break;}if($item->getId()===Item::FISHING_ROD){if($this->isFishing()){$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["gnodacyuno"]}=new PlayerUseFishingRodEvent($this,PlayerUseFishingRodEvent::ACTION_STOP_FISHING));}else{${"GLOBALS"}["qncythrfc"]="ev";$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["qncythrfc"]}=new PlayerUseFishingRodEvent($this,PlayerUseFishingRodEvent::ACTION_START_FISHING));}if(!$ev->isCancelled()){if($this->isFishing()){$this->setFishingHook();}else{$ebnvqfveed="nbt";$dxqlsvl="nbt";${$dxqlsvl}=new CompoundTag("",["Pos"=>new ListTag("Pos",[new DoubleTag("",$this->x),new DoubleTag("",$this->y+$this->getEyeHeight()),new DoubleTag("",$this->z)]),"Motion"=>new ListTag("Motion",[new DoubleTag("",-sin($this->yaw/180*M_PI)*cos($this->pitch/180*M_PI)),new DoubleTag("",-sin($this->pitch/180*M_PI)),new DoubleTag("",cos($this->yaw/180*M_PI)*cos($this->pitch/180*M_PI))]),"Rotation"=>new ListTag("Rotation",[new FloatTag("",$this->yaw),new FloatTag("",$this->pitch)])]);${${"GLOBALS"}["npvozhe"]}=0.5;$this->fishingHook=new FishingHook($this->chunk,${$ebnvqfveed},$this,$this->getId());$this->fishingHook->setMotion($this->fishingHook->getMotion()->multiply(${${"GLOBALS"}["npvozhe"]}));$this->fishingHook->spawnToAll();}}}elseif($item->getId()===Item::SNOWBALL){${"GLOBALS"}["gptgfuxorn"]="nbt";${"GLOBALS"}["dchdfzr"]="f";$oocjhw="f";${${"GLOBALS"}["efjvqop"]}=new CompoundTag("",["Pos"=>new ListTag("Pos",[new DoubleTag("",$this->x),new DoubleTag("",$this->y+$this->getEyeHeight()),new DoubleTag("",$this->z)]),"Motion"=>new ListTag("Motion",[new DoubleTag("",-sin($this->yaw/180*M_PI)*cos($this->pitch/180*M_PI)),new DoubleTag("",-sin($this->pitch/180*M_PI)),new DoubleTag("",cos($this->yaw/180*M_PI)*cos($this->pitch/180*M_PI))]),"Rotation"=>new ListTag("Rotation",[new FloatTag("",$this->yaw),new FloatTag("",$this->pitch)]),]);${${"GLOBALS"}["dchdfzr"]}=1.5;${${"GLOBALS"}["vpiizyx"]}=Entity::createEntity("Snowball",$this->chunk,${${"GLOBALS"}["gptgfuxorn"]},$this);$snowball->setMotion($snowball->getMotion()->multiply(${$oocjhw}));if($this->isSurvival()){$item->setCount($item->getCount()-1);$this->inventory->setItemInHand($item->getCount()>0?${${"GLOBALS"}["iilrmljxz"]}:Item::get(Item::AIR));}if(${${"GLOBALS"}["vpiizyx"]} instanceof Projectile){${"GLOBALS"}["aqykouphh"]="projectileEv";${"GLOBALS"}["lpmlxybo"]="snowball";$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["aqykouphh"]}=new ProjectileLaunchEvent(${${"GLOBALS"}["lpmlxybo"]}));if($projectileEv->isCancelled()){$snowball->kill();}else{$snowball->spawnToAll();$this->level->addSound(new LaunchSound($this),$this->getViewers());}}else{$snowball->spawnToAll();}}elseif($item->getId()===Item::EGG){$bdlapfc="nbt";${"GLOBALS"}["bcvcjghwsi"]="f";${$bdlapfc}=new CompoundTag("",["Pos"=>new ListTag("Pos",[new DoubleTag("",$this->x),new DoubleTag("",$this->y+$this->getEyeHeight()),new DoubleTag("",$this->z)]),"Motion"=>new ListTag("Motion",[new DoubleTag("",-sin($this->yaw/180*M_PI)*cos($this->pitch/180*M_PI)),new DoubleTag("",-sin($this->pitch/180*M_PI)),new DoubleTag("",cos($this->yaw/180*M_PI)*cos($this->pitch/180*M_PI))]),"Rotation"=>new ListTag("Rotation",[new FloatTag("",$this->yaw),new FloatTag("",$this->pitch)]),]);${${"GLOBALS"}["npvozhe"]}=1.5;${${"GLOBALS"}["pswppcq"]}=Entity::createEntity("Egg",$this->chunk,${${"GLOBALS"}["efjvqop"]},$this);$egg->setMotion($egg->getMotion()->multiply(${${"GLOBALS"}["bcvcjghwsi"]}));if($this->isSurvival()){$item->setCount($item->getCount()-1);$this->inventory->setItemInHand($item->getCount()>0?${${"GLOBALS"}["iilrmljxz"]}:Item::get(Item::AIR));}if(${${"GLOBALS"}["pswppcq"]} instanceof Projectile){$eeeflhcqssaj="egg";$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["decolrthvxs"]}=new ProjectileLaunchEvent(${$eeeflhcqssaj}));if($projectileEv->isCancelled()){$egg->kill();}else{$egg->spawnToAll();$this->level->addSound(new LaunchSound($this),$this->getViewers());}}else{$egg->spawnToAll();}}elseif($item->getId()==Item::ENCHANTING_BOTTLE){${"GLOBALS"}["qumnmbsd"]="f";${"GLOBALS"}["vmkogbjdhfa"]="f";${${"GLOBALS"}["efjvqop"]}=new CompoundTag("",["Pos"=>new ListTag("Pos",[new DoubleTag("",$this->x),new DoubleTag("",$this->y+$this->getEyeHeight()),new DoubleTag("",$this->z)]),"Motion"=>new ListTag("Motion",[new DoubleTag("",-sin($this->yaw/180*M_PI)*cos($this->pitch/180*M_PI)),new DoubleTag("",-sin($this->pitch/180*M_PI)),new DoubleTag("",cos($this->yaw/180*M_PI)*cos($this->pitch/180*M_PI))]),"Rotation"=>new ListTag("Rotation",[new FloatTag("",$this->yaw),new FloatTag("",$this->pitch)]),]);${${"GLOBALS"}["qumnmbsd"]}=1.1;${"GLOBALS"}["rfxshkkdd"]="thrownExpBottle";${${"GLOBALS"}["vfoysqgh"]}=new ThrownExpBottle($this->chunk,${${"GLOBALS"}["efjvqop"]},$this);$thrownExpBottle->setMotion($thrownExpBottle->getMotion()->multiply(${${"GLOBALS"}["vmkogbjdhfa"]}));if($this->isSurvival()){${"GLOBALS"}["nqxixgtgnb"]="item";$item->setCount($item->getCount()-1);$this->inventory->setItemInHand($item->getCount()>0?${${"GLOBALS"}["nqxixgtgnb"]}:Item::get(Item::AIR));}if(${${"GLOBALS"}["rfxshkkdd"]} instanceof Projectile){$fnchhdyyb="projectileEv";$bgvbahv="thrownExpBottle";$this->server->getPluginManager()->callEvent(${$fnchhdyyb}=new ProjectileLaunchEvent(${$bgvbahv}));if($projectileEv->isCancelled()){$thrownExpBottle->kill();}else{$thrownExpBottle->spawnToAll();$this->level->addSound(new LaunchSound($this),$this->getViewers());}}else{$thrownExpBottle->spawnToAll();}}elseif($item->getId()==Item::SPLASH_POTION and$this->server->allowSplashPotion){${"GLOBALS"}["ywllzmuytll"]="nbt";${"GLOBALS"}["numwuhvslmj"]="thrownPotion";$xoeyauudmxti="f";${"GLOBALS"}["nxergjmona"]="nbt";${"GLOBALS"}["vaboptlkn"]="thrownPotion";${${"GLOBALS"}["ywllzmuytll"]}=new CompoundTag("",["Pos"=>new ListTag("Pos",[new DoubleTag("",$this->x),new DoubleTag("",$this->y+$this->getEyeHeight()),new DoubleTag("",$this->z)]),"Motion"=>new ListTag("Motion",[new DoubleTag("",-sin($this->yaw/180*M_PI)*cos($this->pitch/180*M_PI)),new DoubleTag("",-sin($this->pitch/180*M_PI)),new DoubleTag("",cos($this->yaw/180*M_PI)*cos($this->pitch/180*M_PI))]),"Rotation"=>new ListTag("Rotation",[new FloatTag("",$this->yaw),new FloatTag("",$this->pitch)]),"PotionId"=>new ShortTag("PotionId",$item->getDamage()),]);${$xoeyauudmxti}=1.1;${${"GLOBALS"}["numwuhvslmj"]}=new ThrownPotion($this->chunk,${${"GLOBALS"}["nxergjmona"]},$this);$thrownPotion->setMotion($thrownPotion->getMotion()->multiply(${${"GLOBALS"}["npvozhe"]}));if($this->isSurvival()){${"GLOBALS"}["juxeaptjyoa"]="item";$item->setCount($item->getCount()-1);$this->inventory->setItemInHand($item->getCount()>0?${${"GLOBALS"}["juxeaptjyoa"]}:Item::get(Item::AIR));}if(${${"GLOBALS"}["vaboptlkn"]} instanceof Projectile){${"GLOBALS"}["woamcosve"]="projectileEv";$idonqvsk="thrownPotion";$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["woamcosve"]}=new ProjectileLaunchEvent(${$idonqvsk}));if($projectileEv->isCancelled()){$thrownPotion->kill();}else{$thrownPotion->spawnToAll();$this->level->addSound(new LaunchSound($this),$this->getViewers());}}else{$thrownPotion->spawnToAll();}}$this->setDataFlag(self::DATA_FLAGS,self::DATA_FLAG_ACTION,true);$this->startAction=$this->server->getTick();}break;case ProtocolInfo::PLAYER_ACTION_PACKET:case\pocketmine\network\protocol\p70\Info::PLAYER_ACTION_PACKET:if($this->spawned===false or$this->blocked===true or(!$this->isAlive()and$packet->action!==PlayerActionPacket::ACTION_SPAWN_SAME_DIMENSION and$packet->action!==PlayerActionPacket::ACTION_SPAWN_OVERWORLD)){break;}$packet->eid=$this->id;${${"GLOBALS"}["fptryekpvb"]}=new Vector3($packet->x,$packet->y,$packet->z);switch($packet->action){case PlayerActionPacket::ACTION_START_BREAK:if($pos->distanceSquared($this)>10000){break;}${$wriiralyooi}=$this->level->getBlock(${${"GLOBALS"}["cyetjetd"]});${${"GLOBALS"}["gnodacyuno"]}=new PlayerInteractEvent($this,$this->inventory->getItemInHand(),${${"GLOBALS"}["wfxmjux"]},$packet->face,$target->getId()===0?PlayerInteractEvent::LEFT_CLICK_AIR:PlayerInteractEvent::LEFT_CLICK_BLOCK);$this->getServer()->getPluginManager()->callEvent(${${"GLOBALS"}["gnodacyuno"]});if(!$ev->isCancelled()){${${"GLOBALS"}["nunlybjei"]}=$target->getSide($packet->face);if(${${"GLOBALS"}["nunlybjei"]} instanceof Fire){$side->getLevel()->setBlock(${${"GLOBALS"}["nunlybjei"]},new Air());}$this->lastBreak=microtime(true);}else{$this->inventory->sendHeldItem($this);}break;case PlayerActionPacket::ACTION_ABORT_BREAK:$this->lastBreak=PHP_INT_MAX;break;case PlayerActionPacket::ACTION_RELEASE_ITEM:if($this->startAction>-1 and$this->getDataFlag(self::DATA_FLAGS,self::DATA_FLAG_ACTION)){if($this->inventory->getItemInHand()->getId()===Item::BOW){${"GLOBALS"}["btmbrsxmz"]="bow";${"GLOBALS"}["fylpsi"]="diff";${${"GLOBALS"}["btmbrsxmz"]}=$this->inventory->getItemInHand();${"GLOBALS"}["eytuuxdt"]="item";${"GLOBALS"}["ozeuvbeq"]="arrow";if($this->isSurvival()and!$this->inventory->contains(Item::get(Item::ARROW,null))){$this->inventory->sendContents($this);break;}${${"GLOBALS"}["lfomvczyw"]}=false;foreach($this->inventory->getContents()as${${"GLOBALS"}["eytuuxdt"]}){if($item->getId()==Item::ARROW){${${"GLOBALS"}["lfomvczyw"]}=${${"GLOBALS"}["iilrmljxz"]};}}${"GLOBALS"}["vvquhxnzv"]="f";${"GLOBALS"}["lmqwtlvxxdg"]="nbt";if(${${"GLOBALS"}["lfomvczyw"]}===false and$this->isCreative()){${${"GLOBALS"}["lfomvczyw"]}=Item::get(Item::ARROW,0,1);}elseif(${${"GLOBALS"}["ozeuvbeq"]}===false){break;}${${"GLOBALS"}["lmqwtlvxxdg"]}=new CompoundTag("",["Pos"=>new ListTag("Pos",[new DoubleTag("",$this->x),new DoubleTag("",$this->y+$this->getEyeHeight()),new DoubleTag("",$this->z)]),"Motion"=>new ListTag("Motion",[new DoubleTag("",-sin($this->yaw/180*M_PI)*cos($this->pitch/180*M_PI)),new DoubleTag("",-sin($this->pitch/180*M_PI)),new DoubleTag("",cos($this->yaw/180*M_PI)*cos($this->pitch/180*M_PI))]),"Rotation"=>new ListTag("Rotation",[new FloatTag("",$this->yaw),new FloatTag("",$this->pitch)]),"Fire"=>new ShortTag("Fire",$this->isOnFire()?45*60:0),"Potion"=>new ShortTag("Potion",$arrow->getDamage())]);${"GLOBALS"}["hkbhmipx"]="f";${${"GLOBALS"}["fylpsi"]}=($this->server->getTick()-$this->startAction);${"GLOBALS"}["popjrksiey"]="diff";${${"GLOBALS"}["yutppkq"]}=${${"GLOBALS"}["popjrksiey"]}/20;${"GLOBALS"}["lxpgjjxo"]="ev";${${"GLOBALS"}["npvozhe"]}=min(((${${"GLOBALS"}["yutppkq"]}**2)+${${"GLOBALS"}["yutppkq"]}*2)/3,1)*2;${${"GLOBALS"}["lxpgjjxo"]}=new EntityShootBowEvent($this,${${"GLOBALS"}["mqtriatucqk"]},Entity::createEntity("Arrow",$this->chunk,${${"GLOBALS"}["efjvqop"]},$this,${${"GLOBALS"}["npvozhe"]}==2?true:false),${${"GLOBALS"}["hkbhmipx"]});if(${${"GLOBALS"}["vvquhxnzv"]}<0.1 or${${"GLOBALS"}["qcvvxkyceyrn"]}<5){$ev->setCancelled();}$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["gnodacyuno"]});if($ev->isCancelled()){$ev->getProjectile()->kill();$this->inventory->sendContents($this);}else{$ev->getProjectile()->setMotion($ev->getProjectile()->getMotion()->multiply($ev->getForce()));if($this->isSurvival()){$this->inventory->removeItem(Item::get(Item::ARROW,$arrow->getDamage(),1));$bow->setDamage($bow->getDamage()+1);if($bow->getDamage()>=385){$this->inventory->setItemInHand(Item::get(Item::AIR,0,0));}else{$this->inventory->setItemInHand(${${"GLOBALS"}["mqtriatucqk"]});}}if($ev->getProjectile()instanceof Projectile){$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["decolrthvxs"]}=new ProjectileLaunchEvent($ev->getProjectile()));if($projectileEv->isCancelled()){$ev->getProjectile()->kill();}else{$ev->getProjectile()->spawnToAll();$this->level->addSound(new LaunchSound($this),$this->getViewers());}}else{$ev->getProjectile()->spawnToAll();}}}}elseif($this->inventory->getItemInHand()->getId()===Item::BUCKET and$this->inventory->getItemInHand()->getDamage()===1){${"GLOBALS"}["xtlamtu"]="pk";${"GLOBALS"}["vemdzqk"]="ev";$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["vemdzqk"]}=new PlayerItemConsumeEvent($this,$this->inventory->getItemInHand()));if($ev->isCancelled()){$this->inventory->sendContents($this);break;}${"GLOBALS"}["wyuwkkn"]="pk";${${"GLOBALS"}["wyuwkkn"]}=new EntityEventPacket();$pk->eid=$this->getId();$pk->event=EntityEventPacket::USE_ITEM;$this->dataPacket(${${"GLOBALS"}["xtlamtu"]});Server::broadcastPacket($this->getViewers(),${${"GLOBALS"}["wzarnypqog"]});if($this->isSurvival()){${${"GLOBALS"}["vgatxryzd"]}=$this->inventory->getItemInHand();--$slot->count;$this->inventory->setItemInHand(${${"GLOBALS"}["vgatxryzd"]});$this->inventory->addItem(Item::get(Item::BUCKET,0,1));}$this->removeAllEffects();}else{$this->inventory->sendContents($this);}break;case PlayerActionPacket::ACTION_STOP_SLEEPING:$this->stopSleep();break;case PlayerActionPacket::ACTION_SPAWN_SAME_DIMENSION:case PlayerActionPacket::ACTION_SPAWN_OVERWORLD:if($this->isAlive()or!$this->isOnline()){break;}if($this->server->isHardcore()){$this->setBanned(true);break;}$this->craftingType=self::CRAFTING_SMALL;if($this->server->netherEnabled){if($this->level==$this->server->netherLevel){${"GLOBALS"}["blhttvo"]="pos";$this->teleport(${${"GLOBALS"}["blhttvo"]}=$this->server->getDefaultLevel()->getSafeSpawn());}}$this->server->getPluginManager()->callEvent(${$zujlqycwtwa}=new PlayerRespawnEvent($this,$this->getSpawn()));$this->teleport($ev->getRespawnPosition());$this->setSprinting(false);$this->setSneaking(false);$this->extinguish();$this->setDataProperty(self::DATA_AIR,self::DATA_TYPE_SHORT,300);$this->deadTicks=0;$this->noDamageTicks=60;$this->removeAllEffects();$this->setHealth($this->getMaxHealth());$this->setFood(20);$this->starvationTick=0;$this->foodTick=0;$this->foodUsageTime=0;$this->sendData($this);$this->sendSettings();$this->inventory->sendContents($this);$this->inventory->sendArmorContents($this);$this->blocked=false;$this->spawnToAll();$this->scheduleUpdate();break;case PlayerActionPacket::ACTION_START_SPRINT:${${"GLOBALS"}["osaeqdcdfeoh"]}=new PlayerToggleSprintEvent($this,true);$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["gnodacyuno"]});if($ev->isCancelled()){$this->sendData($this);}else{$this->setSprinting(true);}break 2;case PlayerActionPacket::ACTION_STOP_SPRINT:${${"GLOBALS"}["gnodacyuno"]}=new PlayerToggleSprintEvent($this,false);$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["gnodacyuno"]});if($ev->isCancelled()){$this->sendData($this);}else{$this->setSprinting(false);}break 2;case PlayerActionPacket::ACTION_START_SNEAK:${${"GLOBALS"}["olbqdh"]}=new PlayerToggleSneakEvent($this,true);$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["xyeblvs"]});if($ev->isCancelled()){$this->sendData($this);}else{$this->setSneaking(true);}break 2;case PlayerActionPacket::ACTION_STOP_SNEAK:${${"GLOBALS"}["gnodacyuno"]}=new PlayerToggleSneakEvent($this,false);$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["kivknjnbdodf"]});if($ev->isCancelled()){$this->sendData($this);}else{$this->setSneaking(false);}break 2;case PlayerActionPacket::ACTION_JUMP:break 2;}$this->startAction=-1;$this->setDataFlag(self::DATA_FLAGS,self::DATA_FLAG_ACTION,false);break;case ProtocolInfo::REMOVE_BLOCK_PACKET:case\pocketmine\network\protocol\p70\Info::REMOVE_BLOCK_PACKET:if($this->spawned===false or$this->blocked===true or!$this->isAlive()){break;}$this->craftingType=self::CRAFTING_SMALL;${${"GLOBALS"}["dnfqdtv"]}=new Vector3($packet->x,$packet->y,$packet->z);${$divljmcxvysr}=$this->inventory->getItemInHand();${$injbhxv}=clone${${"GLOBALS"}["iilrmljxz"]};if($this->canInteract($vector->add(0.5,0.5,0.5),$this->isCreative()?13:6)and$this->level->useBreakOn(${${"GLOBALS"}["ingfonkjrqqo"]},${${"GLOBALS"}["iilrmljxz"]},$this,$this->server->destroyBlockParticle)){if($this->isSurvival()){if(!$item->equals(${${"GLOBALS"}["rbnnoik"]})or$item->getCount()!==$oldItem->getCount()){$stwzlj="item";$this->inventory->setItemInHand(${$stwzlj});$this->inventory->sendHeldItem($this);}$this->exhaust(0.025,PlayerExhaustEvent::CAUSE_MINING);}break;}$this->inventory->sendContents($this);${$mmknnvlj}=$this->level->getBlock(${${"GLOBALS"}["utxbsmlripb"]});${${"GLOBALS"}["ijkmfoc"]}=$this->level->getTile(${${"GLOBALS"}["dnfqdtv"]});$this->level->sendBlocks([$this],[${${"GLOBALS"}["ljnlmdvwvr"]}],UpdateBlockPacket::FLAG_ALL_PRIORITY);$this->inventory->sendHeldItem($this);if(${$llujkwq} instanceof Spawnable){$tile->spawnTo($this);}break;case ProtocolInfo::MOB_ARMOR_EQUIPMENT_PACKET:case\pocketmine\network\protocol\p70\Info::MOB_ARMOR_EQUIPMENT_PACKET:break;case ProtocolInfo::INTERACT_PACKET:case\pocketmine\network\protocol\p70\Info::INTERACT_PACKET:if($this->spawned===false or!$this->isAlive()or$this->blocked){break;}$this->craftingType=self::CRAFTING_SMALL;${${"GLOBALS"}["ljnlmdvwvr"]}=$this->level->getEntity($packet->target);${${"GLOBALS"}["ssbmmrondv"]}=false;if(${${"GLOBALS"}["tcrjxbkprpge"]} instanceof Player and$this->server->getConfigBoolean("pvp",true)===false){$ndyfgnmimy="cancelled";${$ndyfgnmimy}=true;}if(${${"GLOBALS"}["hlrdnngmxvgc"]} instanceof Boat or(${${"GLOBALS"}["ljnlmdvwvr"]} instanceof Minecart and$target->getType()==Minecart::TYPE_NORMAL)){if($packet->action===InteractPacket::ACTION_RIGHT_CLICK){$this->linkEntity(${${"GLOBALS"}["ljnlmdvwvr"]});}elseif($packet->action===InteractPacket::ACTION_LEFT_CLICK){$fuollkt="target";if($this->linkedEntity==${$fuollkt}){$target->setLinked(0,$this);}$target->close();}elseif($packet->action===InteractPacket::ACTION_LEAVE_VEHICLE){$this->setLinked(0,${${"GLOBALS"}["ljnlmdvwvr"]});}return;}if($packet->action===InteractPacket::ACTION_RIGHT_CLICK){${"GLOBALS"}["vrewauzv"]="target";if(${${"GLOBALS"}["vrewauzv"]} instanceof Animal and$this->getInventory()->getItemInHand()){}break;}if(${$vgybaoxd} instanceof Entity and$this->getGamemode()!==Player::VIEW and$this->isAlive()and$target->isAlive()){${"GLOBALS"}["sdcttoif"]="item";if(${${"GLOBALS"}["ljnlmdvwvr"]} instanceof DroppedItem or${${"GLOBALS"}["ljnlmdvwvr"]} instanceof Arrow){$this->kick("Attempting to attack an invalid entity");$this->server->getLogger()->warning($this->getServer()->getLanguage()->translateString("pocketmine.player.invalidEntity",[$this->getName()]));break;}${"GLOBALS"}["ynmiggc"]="damage";$dtrcxwllyevd="target";$tjvynfcqr="target";${"GLOBALS"}["orlvagn"]="ev";$dzluvggzuma="target";${${"GLOBALS"}["sdcttoif"]}=$this->inventory->getItemInHand();${${"GLOBALS"}["ynmiggc"]}=[EntityDamageEvent::MODIFIER_BASE=>$item->getModifyAttackDamage(${$dzluvggzuma}),];$nrcewgtq="damage";$wlfmnw="cancelled";if(!$this->canInteract(${${"GLOBALS"}["ljnlmdvwvr"]},8)){${"GLOBALS"}["olitiqmycjyu"]="cancelled";${${"GLOBALS"}["olitiqmycjyu"]}=true;}elseif(${$dtrcxwllyevd} instanceof Player){if(($target->getGamemode()&0x01)>0){break;}elseif($this->server->getConfigBoolean("pvp")!==true or$this->server->getDifficulty()===0){${${"GLOBALS"}["ssbmmrondv"]}=true;}}${${"GLOBALS"}["orlvagn"]}=new EntityDamageByEntityEvent($this,${$tjvynfcqr},EntityDamageEvent::CAUSE_ENTITY_ATTACK,${$nrcewgtq},0.4+$item->getEnchantmentLevel(Enchantment::TYPE_WEAPON_KNOCKBACK)*0.15);${"GLOBALS"}["rjdhjluv"]="ev";if(${$wlfmnw}){$ev->setCancelled();}if($target->attack($ev->getFinalDamage(),${${"GLOBALS"}["rjdhjluv"]})===true){${${"GLOBALS"}["orbkwmwke"]}=$item->getEnchantmentLevel(Enchantment::TYPE_WEAPON_FIRE_ASPECT);if(${${"GLOBALS"}["orbkwmwke"]}>0){${"GLOBALS"}["zlmcxqpulc"]="target";${${"GLOBALS"}["xugvpoy"]}=new EntityCombustByEntityEvent($this,${${"GLOBALS"}["zlmcxqpulc"]},${${"GLOBALS"}["orbkwmwke"]}*4,$ev->getFireProtectL());Server::getInstance()->getPluginManager()->callEvent(${${"GLOBALS"}["xugvpoy"]});if(!$fireEv->isCancelled()){$target->setOnFire($fireEv->getDuration());}}if($this->isSurvival()){$ev->createThornsDamage();if($ev->getThornsDamage()>0){$igmlltvne="target";$tqkbvqos="thornsEvent";${$tqkbvqos}=new EntityDamageByEntityEvent(${$igmlltvne},$this,EntityDamageEvent::CAUSE_ENTITY_ATTACK,$ev->getThornsDamage(),0);if(!$thornsEvent->isCancelled()){if($this->attack($thornsEvent->getFinalDamage(),${${"GLOBALS"}["rdwyqprhnd"]})===true){}};}}}if($ev->isCancelled()){if($item->isTool()and$this->isSurvival()){$this->inventory->sendContents($this);}break;}if($this->isSurvival()){if($item->isTool()){$fcbjtqcqlqrx="target";if($item->useOn(${$fcbjtqcqlqrx})and$item->getDamage()>=$item->getMaxDurability()){$this->inventory->setItemInHand(Item::get(Item::AIR,0,1));}else{$this->inventory->setItemInHand(${${"GLOBALS"}["iilrmljxz"]});}}$this->exhaust(0.3,PlayerExhaustEvent::CAUSE_ATTACK);}}break;case ProtocolInfo::ANIMATE_PACKET:case\pocketmine\network\protocol\p70\Info::ANIMATE_PACKET:if($this->spawned===false or!$this->isAlive()){break;}$this->server->getPluginManager()->callEvent(${$bkijhpyis}=new PlayerAnimationEvent($this,$packet->action));if($ev->isCancelled()){break;}${$iwhonkg}=new AnimatePacket();$pk->eid=$this->getId();$pk->action=$ev->getAnimationType();Server::broadcastPacket($this->getViewers(),${$drffdpgi});break;case ProtocolInfo::SET_HEALTH_PACKET:case\pocketmine\network\protocol\p70\Info::SET_HEALTH_PACKET:break;case ProtocolInfo::ENTITY_EVENT_PACKET:case\pocketmine\network\protocol\p70\Info::ENTITY_EVENT_PACKET:if($this->spawned===false or$this->blocked===true or!$this->isAlive()){break;}$this->craftingType=self::CRAFTING_SMALL;$this->setDataFlag(self::DATA_FLAGS,self::DATA_FLAG_ACTION,false);switch($packet->event){case EntityEventPacket::USE_ITEM:${${"GLOBALS"}["vgatxryzd"]}=$this->inventory->getItemInHand();if($slot->canBeConsumed()){$cdpejh="slot";${${"GLOBALS"}["gnodacyuno"]}=new PlayerItemConsumeEvent($this,${$cdpejh});if(!$slot->canBeConsumedBy($this)){$ev->setCancelled();}$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["gnodacyuno"]});if(!$ev->isCancelled()){$slot->onConsume($this);}else{$this->inventory->sendContents($this);}}break;}break;case ProtocolInfo::DROP_ITEM_PACKET:case\pocketmine\network\protocol\p70\Info::DROP_ITEM_PACKET:if($this->spawned===false or$this->blocked===true or!$this->isAlive()){break;}if($packet->item->getId()===Item::AIR){break;}if(($this->isCreative()and$this->server->limitedCreative)){break;}$this->getTransactionQueue()->addTransaction(new DropItemTransaction($packet->item));break;case ProtocolInfo::TEXT_PACKET:case\pocketmine\network\protocol\p70\Info::TEXT_PACKET:if($this->spawned===false or!$this->isAlive()){break;}$this->craftingType=self::CRAFTING_SMALL;if($packet->type===TextPacket::TYPE_CHAT){$packet->message=TextFormat::clean($packet->message,$this->removeFormat);foreach(explode("\n",$packet->message)as${${"GLOBALS"}["vejqusgvsjmr"]}){$elqfqu="message";if(trim(${$elqfqu})!=""and strlen(${${"GLOBALS"}["vejqusgvsjmr"]})<=255 and$this->messageCounter-->0){${"GLOBALS"}["tualkrsmzg"]="ev";${${"GLOBALS"}["tualkrsmzg"]}=new PlayerCommandPreprocessEvent($this,${${"GLOBALS"}["vejqusgvsjmr"]});${"GLOBALS"}["wbflbrvhk"]="ev";if(mb_strlen($ev->getMessage(),"UTF-8")>320){$ev->setCancelled();}$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["wbflbrvhk"]});if($ev->isCancelled()){break;}if(substr($ev->getMessage(),0,1)==="/"){Timings::$playerCommandTimer->startTiming();$this->server->dispatchCommand($ev->getPlayer(),substr($ev->getMessage(),1));Timings::$playerCommandTimer->stopTiming();}else{$whefimhi="ev";$this->server->getPluginManager()->callEvent(${$whefimhi}=new PlayerChatEvent($this,$ev->getMessage()));if(!$ev->isCancelled()){$this->server->broadcastMessage($this->getServer()->getLanguage()->translateString($ev->getFormat(),[$ev->getPlayer()->getDisplayName(),$ev->getMessage()]),$ev->getRecipients());}}}}}break;case ProtocolInfo::CONTAINER_CLOSE_PACKET:case\pocketmine\network\protocol\p70\Info::CONTAINER_CLOSE_PACKET:if($this->spawned===false or$packet->windowid===0){break;}$this->craftingType=self::CRAFTING_SMALL;if(isset($this->windowIndex[$packet->windowid])){$this->server->getPluginManager()->callEvent(new InventoryCloseEvent($this->windowIndex[$packet->windowid],$this));$this->removeWindow($this->windowIndex[$packet->windowid]);}foreach($this->getFloatingInventory()->getContents()as${${"GLOBALS"}["jecskzubn"]}){$this->getTransactionQueue()->addTransaction(new DropItemTransaction(${${"GLOBALS"}["iilrmljxz"]}));}break;case ProtocolInfo::CRAFTING_EVENT_PACKET:case\pocketmine\network\protocol\p70\Info::CRAFTING_EVENT_PACKET:if($this->spawned===false or!$this->isAlive()){break;}${${"GLOBALS"}["nvkxnwvhd"]}=$this->server->getCraftingManager()->getRecipe($packet->id);if($this->craftingType===self::CRAFTING_ANVIL){$rjbhfemcu="recipe";${${"GLOBALS"}["hgmhrnrjon"]}=$this->windowIndex[$packet->windowId]??null;if(${${"GLOBALS"}["hgmhrnrjon"]}===null){foreach($this->windowIndex as${${"GLOBALS"}["axzwln"]}){if(${${"GLOBALS"}["axzwln"]} instanceof AnvilInventory){${"GLOBALS"}["ltpnpwrzb"]="anvilInventory";$hedjggykix="window";${${"GLOBALS"}["ltpnpwrzb"]}=${$hedjggykix};break;}}if(${${"GLOBALS"}["hgmhrnrjon"]}===null){$this->getServer()->getLogger()->debug("Couldn't find an anvil window for ".$this->getName().", exiting");$this->inventory->sendContents($this);break;}}if(${$rjbhfemcu}===null){if(!$anvilInventory->onRename($this,$packet->output[0])){$this->getServer()->getLogger()->debug($this->getName()." failed to rename an item in an anvil");$this->inventory->sendContents($this);}}else{}break;}elseif((${$ijrepr} instanceof BigShapelessRecipe or${${"GLOBALS"}["gyqpqnr"]} instanceof BigShapedRecipe)and$this->craftingType===0){$this->server->getLogger()->debug("Received big crafting recipe from ".$this->getName()." with no crafting table open");$this->inventory->sendContents($this);break;}elseif(${${"GLOBALS"}["dfrvwpi"]}===null){$this->server->getLogger()->debug("Null (unknown) crafting recipe received from ".$this->getName()." for ".$packet->output[0]);$this->inventory->sendContents($this);break;}foreach($packet->input as${${"GLOBALS"}["nncbdmdp"]}=>${${"GLOBALS"}["xinyqdi"]}){if($item->getDamage()===-1 or$item->getDamage()===0xffff){$item->setDamage(null);}if(${${"GLOBALS"}["yicyexuhqi"]}<9 and$item->getId()>0){$item->setCount(1);}}${${"GLOBALS"}["qbhrokkecsmn"]}=true;if(count($packet->input)===0){${"GLOBALS"}["gscnndyqrp"]="possibleRecipes";$bwomqfwi="recipe";${${"GLOBALS"}["gscnndyqrp"]}=$this->server->getCraftingManager()->getRecipesByResult($packet->output[0]);if(!$packet->output[0]->deepEquals($recipe->getResult())){$this->server->getLogger()->debug("Mismatched desktop recipe received from player ".$this->getName().", expected ".$recipe->getResult().", got ".$packet->output[0]);}${$bwomqfwi}=null;foreach(${${"GLOBALS"}["adicrnq"]} as${${"GLOBALS"}["odnecvfhuz"]}){${"GLOBALS"}["noszoiudfr"]="floatingInventory";${${"GLOBALS"}["noszoiudfr"]}=clone$this->floatingInventory;${${"GLOBALS"}["icvtatikpgn"]}=$r->getIngredientList();foreach(${${"GLOBALS"}["icvtatikpgn"]} as${${"GLOBALS"}["tppwguly"]}){${"GLOBALS"}["bjdwjax"]="ingredient";if(!$floatingInventory->contains(${${"GLOBALS"}["bjdwjax"]})){${${"GLOBALS"}["qbhrokkecsmn"]}=false;break;}$wvquuzeix="ingredient";$floatingInventory->removeItem(${$wvquuzeix});}if(${${"GLOBALS"}["qbhrokkecsmn"]}){${"GLOBALS"}["usfynppqljk"]="r";$gtxopapt="recipe";${$gtxopapt}=${${"GLOBALS"}["usfynppqljk"]};break;}}if(${${"GLOBALS"}["nvkxnwvhd"]}!==null){$jjxcertfksn="ingredients";$jjdrjyhsgj="recipe";$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["gnodacyuno"]}=new CraftItemEvent($this,${$jjxcertfksn},${$jjdrjyhsgj}));if($ev->isCancelled()){$this->inventory->sendContents($this);break;}$this->floatingInventory=${${"GLOBALS"}["qkfywpzvbxtk"]};$this->floatingInventory->addItem(clone$recipe->getResult());}else{$this->server->getLogger()->debug("Unmatched desktop crafting recipe ".$packet->id." from player ".$this->getName());$this->inventory->sendContents($this);break;}}else{${"GLOBALS"}["qamiqylfkaif"]="result";${"GLOBALS"}["kongyktd"]="recipe";$qeennkqjnh="ingredients";${"GLOBALS"}["suhivdsp"]="used";$jpuynbuw="count";${"GLOBALS"}["ajkugv"]="canCraft";if(${${"GLOBALS"}["nvkxnwvhd"]} instanceof ShapedRecipe){${"GLOBALS"}["mpylgxxlzaj"]="x";${"GLOBALS"}["itdoxorkp"]="canCraft";for(${${"GLOBALS"}["emtgqqv"]}=0;${${"GLOBALS"}["emtgqqv"]}<3 and${${"GLOBALS"}["itdoxorkp"]};++${${"GLOBALS"}["mpylgxxlzaj"]}){$xtyruukwf="y";${"GLOBALS"}["surodpfirpg"]="y";for(${${"GLOBALS"}["mhoejwx"]}=0;${${"GLOBALS"}["surodpfirpg"]}<3;++${$xtyruukwf}){${"GLOBALS"}["ehtiolp"]="x";${${"GLOBALS"}["iilrmljxz"]}=$packet->input[${${"GLOBALS"}["mhoejwx"]}*3+${${"GLOBALS"}["emtgqqv"]}];${"GLOBALS"}["wtdelby"]="ingredient";${${"GLOBALS"}["tppwguly"]}=$recipe->getIngredient(${${"GLOBALS"}["ehtiolp"]},${${"GLOBALS"}["mhoejwx"]});if($item->getCount()>0 and$item->getId()>0){if(${${"GLOBALS"}["tppwguly"]}==null){${"GLOBALS"}["bnwskv"]="canCraft";${${"GLOBALS"}["bnwskv"]}=false;break;}if($ingredient->getId()!=0 and!$ingredient->deepEquals(${${"GLOBALS"}["iilrmljxz"]},$ingredient->getDamage()!==null,$ingredient->getCompoundTag()!==null)){${"GLOBALS"}["gkecdwtk"]="canCraft";${${"GLOBALS"}["gkecdwtk"]}=false;break;}}elseif(${${"GLOBALS"}["wtdelby"]}!==null and$item->getId()!==0){${"GLOBALS"}["csomupsgr"]="canCraft";${${"GLOBALS"}["csomupsgr"]}=false;break;}}}}elseif(${${"GLOBALS"}["kongyktd"]} instanceof ShapelessRecipe){$vlwdjtc="x";$yftzxefylp="needed";${$yftzxefylp}=$recipe->getIngredientList();${"GLOBALS"}["glxnctky"]="x";${"GLOBALS"}["ipleoliiqbc"]="canCraft";for(${${"GLOBALS"}["emtgqqv"]}=0;${$vlwdjtc}<3 and${${"GLOBALS"}["ipleoliiqbc"]};++${${"GLOBALS"}["glxnctky"]}){$rutdljfrpfwc="y";for(${${"GLOBALS"}["mhoejwx"]}=0;${$rutdljfrpfwc}<3;++${${"GLOBALS"}["mhoejwx"]}){${${"GLOBALS"}["iilrmljxz"]}=clone$packet->input[${${"GLOBALS"}["mhoejwx"]}*3+${${"GLOBALS"}["emtgqqv"]}];$ahbvglgbqw="needed";foreach(${$ahbvglgbqw} as${${"GLOBALS"}["ynhgqkpwt"]}=>${${"GLOBALS"}["eenngyqlwftm"]}){$ipjnerndbf="item";if($n->deepEquals(${$ipjnerndbf},$n->getDamage()!==null,$n->getCompoundTag()!==null)){${"GLOBALS"}["cimtmpf"]="remove";${${"GLOBALS"}["cimtmpf"]}=min($n->getCount(),$item->getCount());$n->setCount($n->getCount()-${${"GLOBALS"}["dfhgismzjwfr"]});$item->setCount($item->getCount()-${${"GLOBALS"}["dfhgismzjwfr"]});if($n->getCount()===0){unset(${${"GLOBALS"}["jtntyapuvy"]}[${${"GLOBALS"}["ynhgqkpwt"]}]);}}}if($item->getCount()>0){$bfhezttakj="canCraft";${$bfhezttakj}=false;break;}}}if(count(${${"GLOBALS"}["jtntyapuvy"]})>0){${${"GLOBALS"}["qbhrokkecsmn"]}=false;}}else{${"GLOBALS"}["jowyojsaqjq"]="canCraft";${${"GLOBALS"}["jowyojsaqjq"]}=false;}${${"GLOBALS"}["qbhrokkecsmn"]}=true;${"GLOBALS"}["ehjxcurf"]="extraItem";${$qeennkqjnh}=$packet->input;${${"GLOBALS"}["uzquuflimrlo"]}=$packet->output[0];${"GLOBALS"}["vnkjwaewujgx"]="used";if(!${${"GLOBALS"}["qbhrokkecsmn"]} or!$recipe->getResult()->deepEquals(${${"GLOBALS"}["qamiqylfkaif"]})){$qoburfrsfmn="result";$this->server->getLogger()->debug("Unmatched recipe ".$recipe->getId()." from player ".$this->getName().": expected ".$recipe->getResult().", got ".${$qoburfrsfmn}.", using: ".implode(", ",${${"GLOBALS"}["icvtatikpgn"]}));$this->inventory->sendContents($this);break;}${${"GLOBALS"}["vnkjwaewujgx"]}=array_fill(0,$this->inventory->getSize(),0);$apkjyu="ingredients";foreach(${${"GLOBALS"}["icvtatikpgn"]} as${${"GLOBALS"}["tppwguly"]}){$gkfwcbb="slot";$nkjtnuthr="slot";${"GLOBALS"}["nknoyo"]="index";${$nkjtnuthr}=-1;foreach($this->inventory->getContents()as${${"GLOBALS"}["nknoyo"]}=>${${"GLOBALS"}["yicyexuhqi"]}){${"GLOBALS"}["ffzhbui"]="used";if($ingredient->getId()!==0 and$ingredient->deepEquals(${${"GLOBALS"}["yicyexuhqi"]},$ingredient->getDamage()!==null)and($i->getCount()-${${"GLOBALS"}["ffzhbui"]}[${${"GLOBALS"}["vtsgjeil"]}])>=1){${${"GLOBALS"}["vgatxryzd"]}=${${"GLOBALS"}["vtsgjeil"]};${${"GLOBALS"}["oghxtukweu"]}[${${"GLOBALS"}["vtsgjeil"]}]++;break;}}if($ingredient->getId()!==0 and${$gkfwcbb}===-1){${${"GLOBALS"}["qbhrokkecsmn"]}=false;break;}}if(!${${"GLOBALS"}["ajkugv"]}){$this->server->getLogger()->debug("Unmatched recipe ".$recipe->getId()." from player ".$this->getName().": client does not have enough items, using: ".implode(", ",${${"GLOBALS"}["icvtatikpgn"]}));$this->inventory->sendContents($this);break;}$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["gnodacyuno"]}=new CraftItemEvent($this,${$apkjyu},${${"GLOBALS"}["nvkxnwvhd"]}));if($ev->isCancelled()){$this->inventory->sendContents($this);break;}foreach(${${"GLOBALS"}["suhivdsp"]} as${${"GLOBALS"}["vgatxryzd"]}=>${$jpuynbuw}){if(${${"GLOBALS"}["lgbcrlhcta"]}===0){continue;}${${"GLOBALS"}["iilrmljxz"]}=$this->inventory->getItem(${${"GLOBALS"}["vgatxryzd"]});if($item->getCount()>${${"GLOBALS"}["lgbcrlhcta"]}){${"GLOBALS"}["etnnpowpzdk"]="item";${"GLOBALS"}["xlslgrje"]="newItem";$ledwrbiupo="count";${${"GLOBALS"}["xlslgrje"]}=clone${${"GLOBALS"}["etnnpowpzdk"]};$newItem->setCount($item->getCount()-${$ledwrbiupo});}else{$xqggqtbon="newItem";${$xqggqtbon}=Item::get(Item::AIR,0,0);}$this->inventory->setItem(${${"GLOBALS"}["vgatxryzd"]},${${"GLOBALS"}["pdupogu"]});}${${"GLOBALS"}["rphvvygwidfx"]}=$this->inventory->addItem($recipe->getResult());if(count(${${"GLOBALS"}["ehjxcurf"]})>0 and!$this->isCreative()){${"GLOBALS"}["gytnftkueniz"]="extraItem";$qngyilrzfxd="item";foreach(${${"GLOBALS"}["gytnftkueniz"]} as${$qngyilrzfxd}){${"GLOBALS"}["ertzonyjsej"]="item";$this->level->dropItem($this,${${"GLOBALS"}["ertzonyjsej"]});}}}switch($recipe->getResult()->getId()){case Item::WORKBENCH:$this->awardAchievement("buildWorkBench");break;case Item::WOODEN_PICKAXE:$this->awardAchievement("buildPickaxe");break;case Item::FURNACE:$this->awardAchievement("buildFurnace");break;case Item::WOODEN_HOE:$this->awardAchievement("buildHoe");break;case Item::BREAD:$this->awardAchievement("makeBread");break;case Item::CAKE:$this->awardAchievement("bakeCake");$this->inventory->addItem(Item::get(Item::BUCKET,0,3));break;case Item::STONE_PICKAXE:case Item::GOLD_PICKAXE:case Item::IRON_PICKAXE:case Item::DIAMOND_PICKAXE:$this->awardAchievement("buildBetterPickaxe");break;case Item::WOODEN_SWORD:$this->awardAchievement("buildSword");break;case Item::DIAMOND:$this->awardAchievement("diamond");break;}break;case ProtocolInfo::CONTAINER_SET_SLOT_PACKET:case\pocketmine\network\protocol\p70\Info::CONTAINER_SET_SLOT_PACKET:if($this->spawned===false or$this->blocked===true or!$this->isAlive()){break;}if($packet->slot<0){break;}if($packet->windowid===0){if($packet->slot>=$this->inventory->getSize()){break;}${${"GLOBALS"}["wwyxljkd"]}=new BaseTransaction($this->inventory,$packet->slot,$packet->item);}elseif($packet->windowid===ContainerSetContentPacket::SPECIAL_ARMOR){if($packet->slot>=4){break;}${${"GLOBALS"}["wwyxljkd"]}=new BaseTransaction($this->inventory,$packet->slot+$this->inventory->getSize(),$packet->item);}elseif(isset($this->windowIndex[$packet->windowid])){$sbpjywy="inv";${"GLOBALS"}["mcnrkbtyam"]="inv";$bjfgfpkij="achievements";${"GLOBALS"}["ysvhwcvw"]="transaction";${${"GLOBALS"}["tgmviw"]}=$this->windowIndex[$packet->windowid];${$bjfgfpkij}=[];if(${$sbpjywy} instanceof FurnaceInventory and$inv->getItem($packet->slot)->getId()===Item::IRON_INGOT and$packet->slot===FurnaceInventory::RESULT){$agjkrqxi="achievements";${$agjkrqxi}[]="acquireIron";}elseif(${${"GLOBALS"}["tgmviw"]} instanceof EnchantInventory and$packet->item->hasEnchantments()){$inv->onEnchant($this,$inv->getItem($packet->slot),$packet->item);}${${"GLOBALS"}["ysvhwcvw"]}=new BaseTransaction(${${"GLOBALS"}["mcnrkbtyam"]},$packet->slot,$packet->item,${${"GLOBALS"}["ptsbchlgjw"]});}else{break;}$this->getTransactionQueue()->addTransaction(${${"GLOBALS"}["mfyfowbxfb"]});break;case ProtocolInfo::BLOCK_ENTITY_DATA_PACKET:case\pocketmine\network\protocol\p70\Info::BLOCK_ENTITY_DATA_PACKET:if($this->spawned===false or$this->blocked===true or!$this->isAlive()){break;}$this->craftingType=self::CRAFTING_SMALL;${$tpfbnoelo}=new Vector3($packet->x,$packet->y,$packet->z);if($pos->distanceSquared($this)>10000){break;}${$cnxkewkxm}=$this->level->getTile(${$nifther});if(${$dywxge} instanceof Sign){$jwfxstovarc="nbt";${$jwfxstovarc}=new NBT(NBT::LITTLE_ENDIAN);${"GLOBALS"}["eojnrdoh"]="nbt";$nbt->read($packet->namedtag);${${"GLOBALS"}["efjvqop"]}=$nbt->getData();if(${${"GLOBALS"}["eojnrdoh"]}["id"]!==Tile::SIGN){$t->spawnTo($this);}else{$bbqjjhi="nbt";${"GLOBALS"}["qkgphhnackkq"]="nbt";${"GLOBALS"}["osvgirjykr"]="ev";${${"GLOBALS"}["osvgirjykr"]}=new SignChangeEvent($t->getBlock(),$this,[TextFormat::clean(${${"GLOBALS"}["qkgphhnackkq"]}["Text1"],$this->removeFormat),TextFormat::clean(${${"GLOBALS"}["efjvqop"]}["Text2"],$this->removeFormat),TextFormat::clean(${$bbqjjhi}["Text3"],$this->removeFormat),TextFormat::clean(${${"GLOBALS"}["efjvqop"]}["Text4"],$this->removeFormat)]);if(!isset($t->namedtag->Creator)or$t->namedtag["Creator"]!==$this->getRawUniqueId()){$ev->setCancelled();}$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["gnodacyuno"]});if(!$ev->isCancelled()){$t->setText($ev->getLine(0),$ev->getLine(1),$ev->getLine(2),$ev->getLine(3));}else{$t->spawnTo($this);}}}break;default:break;}}public function kick($reason="",$isAdmin=true){${"GLOBALS"}["pxzfitrp"]="ev";$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["pxzfitrp"]}=new PlayerKickEvent($this,${${"GLOBALS"}["tljithwdtrob"]},$this->getLeaveMessage()));if(!$ev->isCancelled()){if(${${"GLOBALS"}["dwlsxgeijy"]}){$fcfqpfdvkf="message";${"GLOBALS"}["mjvexa"]="reason";$ewftqupbxhe="reason";${$fcfqpfdvkf}="Kicked by admin.".(${$ewftqupbxhe}!==""?" Reason: ".${${"GLOBALS"}["mjvexa"]}:"");}else{${"GLOBALS"}["vnuqkdihx"]="reason";if(${${"GLOBALS"}["vnuqkdihx"]}===""){${${"GLOBALS"}["vejqusgvsjmr"]}="disconnectionScreen.noReason";}else{${"GLOBALS"}["eetmugji"]="reason";$xdstszoteu="message";${$xdstszoteu}=${${"GLOBALS"}["eetmugji"]};}}$this->close($ev->getQuitMessage(),${${"GLOBALS"}["vejqusgvsjmr"]});return true;}return false;}public function dropItem(Item$item){$yphwkvxpybd="ev";$hymlievlh="item";$aokrbmvyk="motion";${"GLOBALS"}["ekqidlr"]="item";if($this->spawned===false or$this->blocked===true or!$this->isAlive()){return;}if(($this->isCreative()and$this->server->limitedCreative)or$this->isSpectator()){return;}if($item->getId()===Item::AIR or$item->getCount()<1){return;}${$yphwkvxpybd}=new PlayerDropItemEvent($this,${$hymlievlh});${"GLOBALS"}["lxigitso"]="ev";$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["lxigitso"]});if($ev->isCancelled()){return;}${$aokrbmvyk}=$this->getDirectionVector()->multiply(0.4);$this->level->dropItem($this->add(0,1.3,0),${${"GLOBALS"}["ekqidlr"]},${${"GLOBALS"}["lwevctbnvi"]},40);$this->setDataFlag(self::DATA_FLAGS,self::DATA_FLAG_ACTION,false);}public function sendMessage($message){$bkqyeto="mes";$salxrvrtytej="message";$pnveiowfvuqw="message";if(${$pnveiowfvuqw} instanceof TextContainer){${"GLOBALS"}["uxcwuv"]="message";${"GLOBALS"}["xhbgfwkf"]="message";if(${${"GLOBALS"}["xhbgfwkf"]} instanceof TranslationContainer){$this->sendTranslation($message->getText(),$message->getParameters());return false;}${${"GLOBALS"}["uxcwuv"]}=$message->getText();}$bnknrmux="mes";${$bkqyeto}=explode("\n",$this->server->getLanguage()->translateString(${$salxrvrtytej}));foreach(${$bnknrmux} as${${"GLOBALS"}["xglddxru"]}){if(${${"GLOBALS"}["xglddxru"]}!==""){${"GLOBALS"}["hpcioelcb"]="m";$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["gnodacyuno"]}=new PlayerTextPreSendEvent($this,${${"GLOBALS"}["hpcioelcb"]},PlayerTextPreSendEvent::MESSAGE));if(!$ev->isCancelled()){$dmdzqfet="pk";${${"GLOBALS"}["wzarnypqog"]}=new TextPacket();$pk->type=TextPacket::TYPE_RAW;$pk->message=$ev->getMessage();$this->dataPacket(${$dmdzqfet});}}}return true;}public function sendTranslation($message,array$parameters=[]){${"GLOBALS"}["xirouel"]="pk";${${"GLOBALS"}["xirouel"]}=new TextPacket();${"GLOBALS"}["bhqwwag"]="ev";if(!$this->server->isLanguageForced()){${"GLOBALS"}["zodgckzes"]="message";$ohbowsl="parameters";$pk->type=TextPacket::TYPE_TRANSLATION;${"GLOBALS"}["dyhylavv"]="parameters";$pk->message=$this->server->getLanguage()->translateString(${${"GLOBALS"}["zodgckzes"]},${$ohbowsl},"pocketmine.");foreach(${${"GLOBALS"}["qigdwzbmxfh"]} as${${"GLOBALS"}["yicyexuhqi"]}=>${${"GLOBALS"}["yutppkq"]}){${"GLOBALS"}["fbclvf"]="i";${"GLOBALS"}["iyymxkuqg"]="parameters";$jvribaiuyfu="parameters";${${"GLOBALS"}["iyymxkuqg"]}[${${"GLOBALS"}["fbclvf"]}]=$this->server->getLanguage()->translateString(${${"GLOBALS"}["yutppkq"]},${$jvribaiuyfu},"pocketmine.");}$pk->parameters=${${"GLOBALS"}["dyhylavv"]};}else{${"GLOBALS"}["sjgbluqaowl"]="message";$pk->type=TextPacket::TYPE_RAW;$pk->message=$this->server->getLanguage()->translateString(${${"GLOBALS"}["sjgbluqaowl"]},${${"GLOBALS"}["qigdwzbmxfh"]});}${${"GLOBALS"}["gnodacyuno"]}=new PlayerTextPreSendEvent($this,$pk->message,PlayerTextPreSendEvent::TRANSLATED_MESSAGE);$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["bhqwwag"]});if(!$ev->isCancelled()){$this->dataPacket(${${"GLOBALS"}["wzarnypqog"]});return true;}return false;}public function sendPopup($message,$subtitle=""){${"GLOBALS"}["vwgpsj"]="ev";$rcbkykob="ev";${${"GLOBALS"}["vwgpsj"]}=new PlayerTextPreSendEvent($this,${${"GLOBALS"}["vejqusgvsjmr"]},PlayerTextPreSendEvent::POPUP);$this->server->getPluginManager()->callEvent(${$rcbkykob});if(!$ev->isCancelled()){${${"GLOBALS"}["wzarnypqog"]}=new TextPacket();$pk->type=TextPacket::TYPE_POPUP;$pk->source=$ev->getMessage();$pk->message=${${"GLOBALS"}["tdblsvbfozv"]};$this->dataPacket(${${"GLOBALS"}["wzarnypqog"]});return true;}return false;}public function sendTip($message){${"GLOBALS"}["xhntcrl"]="message";${${"GLOBALS"}["gnodacyuno"]}=new PlayerTextPreSendEvent($this,${${"GLOBALS"}["xhntcrl"]},PlayerTextPreSendEvent::TIP);$rybyyoeuo="ev";$this->server->getPluginManager()->callEvent(${$rybyyoeuo});if(!$ev->isCancelled()){${${"GLOBALS"}["wzarnypqog"]}=new TextPacket();$pk->type=TextPacket::TYPE_TIP;$pk->message=$ev->getMessage();$this->dataPacket(${${"GLOBALS"}["wzarnypqog"]});return true;}return false;}public final function close($message="",$reason="generic reason",$notify=true){if($this->connected and!$this->closed){$lhhccerlo="player";$zbcgunnqfx="reason";if(${${"GLOBALS"}["hkbnuik"]} and strlen((string)${$zbcgunnqfx})>0){${"GLOBALS"}["vnuslv"]="reason";if($this->getProtocol()==84){$byruon="pk";${$byruon}=new DisconnectPacket();}elseif(AnyVersionManager::isProtocol($this,"0.14")){${"GLOBALS"}["incijlxqhkx"]="pk";${${"GLOBALS"}["incijlxqhkx"]}=new\pocketmine\network\protocol\p70\DisconnectPacket();}$pk->message=${${"GLOBALS"}["vnuslv"]};$this->directDataPacket(${${"GLOBALS"}["wzarnypqog"]});}$gnvmtudifw="ev";$hkvrqghrnxs="d";if($this->fishingHook instanceof FishingHook){$this->fishingHook->close();$this->fishingHook=null;}$this->removeEffect(Effect::HEALTH_BOOST);${"GLOBALS"}["bxtxfxhubnx"]="index";$this->connected=false;if(strlen($this->getName())>0){$ebxeykionjt="message";$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["gnodacyuno"]}=new PlayerQuitEvent($this,${$ebxeykionjt},true));if($this->loggedIn===true and$ev->getAutoSave()){$this->save();}}foreach($this->server->getOnlinePlayers()as${$lhhccerlo}){if(!$player->canSee($this)){$player->showPlayer($this);}}$this->hiddenPlayers=[];foreach($this->windowIndex as${${"GLOBALS"}["axzwln"]}){${"GLOBALS"}["dtmcvpm"]="window";$this->removeWindow(${${"GLOBALS"}["dtmcvpm"]});}foreach($this->usedChunks as${${"GLOBALS"}["bxtxfxhubnx"]}=>${$hkvrqghrnxs}){$dpsvxoj="chunkX";Level::getXZ(${${"GLOBALS"}["vtsgjeil"]},${${"GLOBALS"}["asyeeoldmud"]},${${"GLOBALS"}["pberoxjkdy"]});$kutmqibkfese="chunkZ";$this->level->unregisterChunkLoader($this,${$dpsvxoj},${$kutmqibkfese});unset($this->usedChunks[${${"GLOBALS"}["vtsgjeil"]}]);}parent::close();$this->interface->close($this,${${"GLOBALS"}["hkbnuik"]}?${${"GLOBALS"}["tljithwdtrob"]}:"");if($this->loggedIn){$this->server->removeOnlinePlayer($this);}$this->loggedIn=false;if(isset(${$gnvmtudifw})and$this->username!=""and$this->spawned!==false and$ev->getQuitMessage()!=""){if($this->server->playerMsgType===Server::PLAYER_MSG_TYPE_MESSAGE)$this->server->broadcastMessage($ev->getQuitMessage());elseif($this->server->playerMsgType===Server::PLAYER_MSG_TYPE_TIP)$this->server->broadcastTip(str_replace("@player",$this->getName(),$this->server->playerLogoutMsg));elseif($this->server->playerMsgType===Server::PLAYER_MSG_TYPE_POPUP)$this->server->broadcastPopup(str_replace("@player",$this->getName(),$this->server->playerLogoutMsg));}$this->server->getPluginManager()->unsubscribeFromPermission(Server::BROADCAST_CHANNEL_USERS,$this);$this->spawned=false;$this->server->getLogger()->info($this->getServer()->getLanguage()->translateString("pocketmine.player.logOut",[TextFormat::AQUA.$this->getName().TextFormat::WHITE,$this->ip,$this->port,$this->getServer()->getLanguage()->translateString(${${"GLOBALS"}["tljithwdtrob"]})]));$this->windows=new\SplObjectStorage();$this->windowIndex=[];$this->usedChunks=[];$this->loadQueue=[];$this->hasSpawned=[];$this->spawnPosition=null;unset($this->buffer);if($this->server->dserverConfig["enable"]and$this->server->dserverConfig["queryAutoUpdate"])$this->server->updateQuery();}if($this->perm!==null){$this->perm->clearPermissions();$this->perm=null;}$this->inventory=null;$this->transactionQueue=null;$this->chunk=null;$this->server->removePlayer($this);}public function __debugInfo(){return[];}public function save($async=false){if($this->closed){throw new\InvalidStateException("Tried to save closed player");}parent::saveNBT();if($this->level instanceof Level){$this->namedtag->Level=new StringTag("Level",$this->level->getName());if($this->spawnPosition instanceof Position and$this->spawnPosition->getLevel()instanceof Level and$this->spawnPosition->getLevel()->getProvider()!==NULL){$this->namedtag["SpawnLevel"]=$this->spawnPosition->getLevel()->getName();$this->namedtag["SpawnX"]=(int)$this->spawnPosition->x;$this->namedtag["SpawnY"]=(int)$this->spawnPosition->y;$this->namedtag["SpawnZ"]=(int)$this->spawnPosition->z;}foreach($this->achievements as${${"GLOBALS"}["sngxvfhv"]}=>${${"GLOBALS"}["nwrweusm"]}){${"GLOBALS"}["lglfqrlmitvb"]="status";$this->namedtag->Achievements[${${"GLOBALS"}["sngxvfhv"]}]=new ByteTag(${${"GLOBALS"}["sngxvfhv"]},${${"GLOBALS"}["lglfqrlmitvb"]}===true?1:0);}$this->namedtag["playerGameType"]=$this->gamemode;$this->namedtag["lastPlayed"]=new LongTag("lastPlayed",floor(microtime(true)*1000));$this->namedtag["Hunger"]=new ShortTag("Hunger",$this->food);$this->namedtag["Health"]=new ShortTag("Health",$this->getHealth());$this->namedtag["MaxHealth"]=new ShortTag("MaxHealth",$this->getMaxHealth());$this->namedtag["Experience"]=new LongTag("Experience",$this->exp);$this->namedtag["ExpLevel"]=new LongTag("ExpLevel",$this->expLevel);if($this->username!=""and$this->namedtag instanceof CompoundTag){$dcfktmzgqwwj="async";$this->server->saveOfflinePlayerData($this->username,$this->namedtag,${$dcfktmzgqwwj});}}}public function getName(){return$this->username;}public function kill(){${"GLOBALS"}["iixjsewlksc"]="message";$gryqfcv="message";${"GLOBALS"}["vycfha"]="message";${"GLOBALS"}["bsltvgf"]="message";$honcekkn="message";$drabqxfem="cause";if(!$this->spawned){return;}$sfdvwpu="params";${${"GLOBALS"}["vycfha"]}="death.attack.generic";$sttbbks="message";${"GLOBALS"}["syglmnzy"]="message";${"GLOBALS"}["ctkgwnfl"]="ev";$ecqbkcd="params";${"GLOBALS"}["eynqubsxfnv"]="cause";$vhcntytszidh="message";${$ecqbkcd}=[$this->getDisplayName()];${"GLOBALS"}["pblewqrmrsiy"]="message";${$drabqxfem}=$this->getLastDamageCause();switch(${${"GLOBALS"}["eynqubsxfnv"]}===null?EntityDamageEvent::CAUSE_CUSTOM:$cause->getCause()){case EntityDamageEvent::CAUSE_ENTITY_ATTACK:if(${${"GLOBALS"}["xqxhrfllzfq"]} instanceof EntityDamageByEntityEvent){$fjzibgp="e";${"GLOBALS"}["hhqsqbqct"]="e";${${"GLOBALS"}["sdwjxruutsw"]}=$cause->getDamager();if(${$fjzibgp} instanceof Player){$kucpfcnkjjj="message";${$kucpfcnkjjj}="death.attack.player";${${"GLOBALS"}["ymwdgvfhes"]}[]=$e->getDisplayName();break;}elseif(${${"GLOBALS"}["hhqsqbqct"]} instanceof Living){${"GLOBALS"}["jqqujhd"]="message";${${"GLOBALS"}["jqqujhd"]}="death.attack.mob";${${"GLOBALS"}["ymwdgvfhes"]}[]=$e->getNameTag()!==""?$e->getNameTag():$e->getName();break;}else{${${"GLOBALS"}["ymwdgvfhes"]}[]="Unknown";}}break;case EntityDamageEvent::CAUSE_PROJECTILE:if(${${"GLOBALS"}["xqxhrfllzfq"]} instanceof EntityDamageByEntityEvent){${"GLOBALS"}["lqyqsene"]="e";${"GLOBALS"}["bdvdaenmq"]="e";${${"GLOBALS"}["lqyqsene"]}=$cause->getDamager();if(${${"GLOBALS"}["sdwjxruutsw"]} instanceof Player){${${"GLOBALS"}["vejqusgvsjmr"]}="death.attack.arrow";${${"GLOBALS"}["ymwdgvfhes"]}[]=$e->getDisplayName();}elseif(${${"GLOBALS"}["bdvdaenmq"]} instanceof Living){${"GLOBALS"}["jlnpvzenah"]="params";${${"GLOBALS"}["vejqusgvsjmr"]}="death.attack.arrow";${${"GLOBALS"}["jlnpvzenah"]}[]=$e->getNameTag()!==""?$e->getNameTag():$e->getName();break;}else{${${"GLOBALS"}["ymwdgvfhes"]}[]="Unknown";}}break;case EntityDamageEvent::CAUSE_SUICIDE:${${"GLOBALS"}["vejqusgvsjmr"]}="death.attack.generic";break;case EntityDamageEvent::CAUSE_VOID:${${"GLOBALS"}["vejqusgvsjmr"]}="death.attack.outOfWorld";break;case EntityDamageEvent::CAUSE_FALL:if(${${"GLOBALS"}["xqxhrfllzfq"]} instanceof EntityDamageEvent){if($cause->getFinalDamage()>2){${"GLOBALS"}["jdwwccdxykrh"]="message";${${"GLOBALS"}["jdwwccdxykrh"]}="death.fell.accident.generic";break;}}${${"GLOBALS"}["pblewqrmrsiy"]}="death.attack.fall";break;case EntityDamageEvent::CAUSE_SUFFOCATION:${${"GLOBALS"}["syglmnzy"]}="death.attack.inWall";break;case EntityDamageEvent::CAUSE_LAVA:${$vhcntytszidh}="death.attack.lava";break;case EntityDamageEvent::CAUSE_FIRE:${${"GLOBALS"}["bsltvgf"]}="death.attack.onFire";break;case EntityDamageEvent::CAUSE_FIRE_TICK:${${"GLOBALS"}["iixjsewlksc"]}="death.attack.inFire";break;case EntityDamageEvent::CAUSE_DROWNING:${$gryqfcv}="death.attack.drown";break;case EntityDamageEvent::CAUSE_CONTACT:if(${${"GLOBALS"}["xqxhrfllzfq"]} instanceof EntityDamageByBlockEvent){if($cause->getDamager()->getId()===Block::CACTUS){${"GLOBALS"}["xqsptnumvmfu"]="message";${${"GLOBALS"}["xqsptnumvmfu"]}="death.attack.cactus";}}break;case EntityDamageEvent::CAUSE_BLOCK_EXPLOSION:case EntityDamageEvent::CAUSE_ENTITY_EXPLOSION:if(${${"GLOBALS"}["xqxhrfllzfq"]} instanceof EntityDamageByEntityEvent){${"GLOBALS"}["uqrftmo"]="e";${${"GLOBALS"}["sdwjxruutsw"]}=$cause->getDamager();if(${${"GLOBALS"}["sdwjxruutsw"]} instanceof Player){${${"GLOBALS"}["vejqusgvsjmr"]}="death.attack.explosion.player";${${"GLOBALS"}["ymwdgvfhes"]}[]=$e->getDisplayName();}elseif(${${"GLOBALS"}["uqrftmo"]} instanceof Living){${${"GLOBALS"}["vejqusgvsjmr"]}="death.attack.explosion.player";${${"GLOBALS"}["ymwdgvfhes"]}[]=$e->getNameTag()!==""?$e->getNameTag():$e->getName();break;}}else{${"GLOBALS"}["uywgcqzag"]="message";${${"GLOBALS"}["uywgcqzag"]}="death.attack.explosion";}break;case EntityDamageEvent::CAUSE_MAGIC:${$sttbbks}="death.attack.magic";break;case EntityDamageEvent::CAUSE_CUSTOM:break;default:}Entity::kill();${${"GLOBALS"}["ctkgwnfl"]}=new PlayerDeathEvent($this,$this->getDrops(),new TranslationContainer(${$honcekkn},${$sfdvwpu}));$ev->setKeepInventory($this->server->keepInventory);$ev->setKeepExperience($this->server->keepExperience);$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["gnodacyuno"]});if(!$ev->getKeepInventory()){foreach($ev->getDrops()as${${"GLOBALS"}["iilrmljxz"]}){${"GLOBALS"}["fhhhpfnkl"]="item";$this->level->dropItem($this,${${"GLOBALS"}["fhhhpfnkl"]});}if($this->inventory!==null){$this->inventory->clearAll();}}if($this->server->expEnabled and!$ev->getKeepExperience()){$cetbekds="exp";${$cetbekds}=min(91,$this->getTotalXp());$this->getLevel()->spawnXPOrb($this->add(0,0.2,0),${${"GLOBALS"}["jdqqbsfkmbh"]});$this->setTotalXp(0,true);}if($ev->getDeathMessage()!=""){$this->server->broadcast($ev->getDeathMessage(),Server::BROADCAST_CHANNEL_USERS);}${${"GLOBALS"}["kozwdu"]}=$this->getSpawn();$this->setHealth(0);$ypchomkhzop="pk";${${"GLOBALS"}["wzarnypqog"]}=new RespawnPacket();$pk->x=$pos->x;$pk->y=$pos->y;$pk->z=$pos->z;$this->dataPacket(${$ypchomkhzop});}public function setHealth($amount){parent::setHealth(${${"GLOBALS"}["bsmoqyvevs"]});if($this->spawned===true){$this->foodTick=0;$this->getAttributeMap()->getAttribute(Attribute::HEALTH)->setMaxValue($this->getMaxHealth())->setValue(${${"GLOBALS"}["bsmoqyvevs"]},true);}}public function attack($damage,EntityDamageEvent$source){if(!$this->isAlive()){return;}$vneunrrhct="source";if($this->isCreative()and$source->getCause()!==EntityDamageEvent::CAUSE_MAGIC and$source->getCause()!==EntityDamageEvent::CAUSE_SUICIDE and$source->getCause()!==EntityDamageEvent::CAUSE_VOID){$source->setCancelled();}elseif($this->allowFlight and$source->getCause()===EntityDamageEvent::CAUSE_FALL){$source->setCancelled();}parent::attack(${${"GLOBALS"}["tmwhfwizvc"]},${${"GLOBALS"}["qimkoyy"]});if($source->isCancelled()){return;}elseif($this->getLastDamageCause()===${$vneunrrhct} and$this->spawned){${"GLOBALS"}["bnesqfb"]="pk";$elhxegej="pk";${$elhxegej}=new EntityEventPacket();$pk->eid=0;$pk->event=EntityEventPacket::HURT_ANIMATION;$this->dataPacket(${${"GLOBALS"}["bnesqfb"]});if($this->isSurvival()){$this->exhaust(0.3,PlayerExhaustEvent::CAUSE_DAMAGE);}}}public function sendPosition(Vector3$pos,$yaw=null,$pitch=null,$mode=0,array$targets=null){$ylollkflhle="pitch";$njoypmgg="pk";${"GLOBALS"}["vgzqgcmm"]="pitch";${"GLOBALS"}["ctopxcghh"]="yaw";${"GLOBALS"}["fjyimoropvh"]="pitch";$mtmnwcfjojy="yaw";${${"GLOBALS"}["bcolpuljld"]}=${${"GLOBALS"}["ctopxcghh"]}===null?$this->yaw:${$mtmnwcfjojy};${${"GLOBALS"}["vgzqgcmm"]}=${${"GLOBALS"}["fjyimoropvh"]}===null?$this->pitch:${$ylollkflhle};${$njoypmgg}=new MovePlayerPacket();${"GLOBALS"}["tgcrmizohf"]="pitch";$pk->eid=$this->getId();$pk->x=$pos->x;${"GLOBALS"}["dguatuv"]="targets";${"GLOBALS"}["ujwcjlhf"]="mode";$pk->y=$pos->y+$this->getEyeHeight();$pk->z=$pos->z;$pk->bodyYaw=${${"GLOBALS"}["bcolpuljld"]};$pk->pitch=${${"GLOBALS"}["tgcrmizohf"]};$pk->yaw=${${"GLOBALS"}["bcolpuljld"]};$pk->mode=${${"GLOBALS"}["ujwcjlhf"]};if(${${"GLOBALS"}["dguatuv"]}!==null){$obdhdqlyfof="pk";Server::broadcastPacket(${${"GLOBALS"}["upxiybwcgt"]},${$obdhdqlyfof});}else{${"GLOBALS"}["bwzuvnpt"]="pk";$pk->eid=0;$this->dataPacket(${${"GLOBALS"}["bwzuvnpt"]});}}protected function checkChunks(){if($this->chunk===null or($this->chunk->getX()!==($this->x>>4)or$this->chunk->getZ()!==($this->z>>4))){if($this->chunk!==null){$this->chunk->removeEntity($this);}$this->chunk=$this->level->getChunk($this->x>>4,$this->z>>4,true);if(!$this->justCreated){${"GLOBALS"}["ykkyubpdeb"]="newChunk";$tmqulxt="player";${"GLOBALS"}["nkrlbyyx"]="reload";${${"GLOBALS"}["ykkyubpdeb"]}=$this->level->getChunkPlayers($this->x>>4,$this->z>>4);unset(${${"GLOBALS"}["kdivbhwpq"]}[$this->getLoaderId()]);${${"GLOBALS"}["nkrlbyyx"]}=[];foreach($this->hasSpawned as${${"GLOBALS"}["yupjezso"]}){if(!isset(${${"GLOBALS"}["kdivbhwpq"]}[$player->getLoaderId()])){$this->despawnFrom(${${"GLOBALS"}["yupjezso"]});}else{$mvplukaiief="newChunk";$gqqimqd="player";${"GLOBALS"}["xrcgkvxpbnhv"]="reload";unset(${$mvplukaiief}[$player->getLoaderId()]);${${"GLOBALS"}["xrcgkvxpbnhv"]}[]=${$gqqimqd};}}foreach(${${"GLOBALS"}["kdivbhwpq"]} as${$tmqulxt}){$this->spawnTo(${${"GLOBALS"}["yupjezso"]});}}if($this->chunk===null){return;}$this->chunk->addEntity($this);}}protected function checkTeleportPosition(){if($this->teleportPosition!==null){${"GLOBALS"}["ounjoc"]="X";${${"GLOBALS"}["asyeeoldmud"]}=$this->teleportPosition->x>>4;$wqoqrjmo="chunkZ";${"GLOBALS"}["xcvolfhr"]="X";${$wqoqrjmo}=$this->teleportPosition->z>>4;for(${${"GLOBALS"}["oxuultwnlm"]}=-1;${${"GLOBALS"}["xcvolfhr"]}<=1;++${${"GLOBALS"}["ounjoc"]}){${"GLOBALS"}["omtlbjwvdlm"]="Z";${"GLOBALS"}["igpnowrt"]="Z";for(${${"GLOBALS"}["dcmhcbyblq"]}=-1;${${"GLOBALS"}["igpnowrt"]}<=1;++${${"GLOBALS"}["omtlbjwvdlm"]}){${"GLOBALS"}["bohnduagvqv"]="index";$thmbvwnbf="X";$tkdyxfzfehu="chunkZ";$xqtxkiw="Z";${"GLOBALS"}["juhkagg"]="chunkX";$bvxfuuyhwdp="index";if(!isset($this->usedChunks[${$bvxfuuyhwdp}=Level::chunkHash(${${"GLOBALS"}["juhkagg"]}+${$thmbvwnbf},${$tkdyxfzfehu}+${$xqtxkiw})])or$this->usedChunks[${${"GLOBALS"}["bohnduagvqv"]}]===false){return false;}}}$this->sendPosition($this,null,null,1);$this->spawnToAll();$this->forceMovement=$this->teleportPosition;$this->teleportPosition=null;return true;}return true;}public function teleport(Vector3$pos,$yaw=null,$pitch=null){${"GLOBALS"}["bnpynut"]="oldPos";$rjbptfafue="pos";if(!$this->isOnline()){return false;}${${"GLOBALS"}["bnpynut"]}=$this->getPosition();if(parent::teleport(${$rjbptfafue},${${"GLOBALS"}["bcolpuljld"]},${${"GLOBALS"}["gcbahsjfclt"]})){$gjbpdyqpd="window";foreach($this->windowIndex as${$gjbpdyqpd}){$acanwpnjnkou="window";if(${${"GLOBALS"}["axzwln"]}===$this->inventory){continue;}$this->removeWindow(${$acanwpnjnkou});}$this->teleportPosition=new Vector3($this->x,$this->y,$this->z);if(!$this->checkTeleportPosition()){${"GLOBALS"}["lgkhjyzgt"]="oldPos";$this->forceMovement=${${"GLOBALS"}["lgkhjyzgt"]};}else{$this->spawnToAll();}$this->resetFallDistance();$this->nextChunkOrderRun=0;$this->newPosition=null;$this->stopSleep();return true;}return false;}public function teleportImmediate(Vector3$pos,$yaw=null,$pitch=null){${"GLOBALS"}["gvkwochb"]="pitch";if(parent::teleport(${${"GLOBALS"}["kozwdu"]},${${"GLOBALS"}["bcolpuljld"]},${${"GLOBALS"}["gvkwochb"]})){${"GLOBALS"}["omdnxye"]="window";foreach($this->windowIndex as${${"GLOBALS"}["omdnxye"]}){$etzminlvbg="window";if(${$etzminlvbg}===$this->inventory){continue;}$this->removeWindow(${${"GLOBALS"}["axzwln"]});}$this->forceMovement=new Vector3($this->x,$this->y,$this->z);$this->sendPosition($this,$this->yaw,$this->pitch,1);$this->resetFallDistance();$this->orderChunks();$this->nextChunkOrderRun=0;$this->newPosition=null;}}public function getWindowId(Inventory$inventory):int{$rpspchxtyq="inventory";if($this->windows->contains(${$rpspchxtyq})){$htfalgujysb="inventory";return$this->windows[${$htfalgujysb}];}return-1;}public function addWindow(Inventory$inventory,$forceId=null):int{$rhgmcj="inventory";${"GLOBALS"}["ktklpwnyvo"]="inventory";$mtnhtjhyk="cnt";if($this->windows->contains(${$rhgmcj})){return$this->windows[${${"GLOBALS"}["gkfbokdkay"]}];}${"GLOBALS"}["ppebtifhsg"]="forceId";if(${${"GLOBALS"}["ppebtifhsg"]}===null){$this->windowCnt=${${"GLOBALS"}["awpifowewpqj"]}=max(2,++$this->windowCnt%99);}else{$yrotbokpw="cnt";${"GLOBALS"}["pjnnekr"]="forceId";${$yrotbokpw}=(int)${${"GLOBALS"}["pjnnekr"]};}$this->windowIndex[${${"GLOBALS"}["awpifowewpqj"]}]=${${"GLOBALS"}["ktklpwnyvo"]};$this->windows->attach(${${"GLOBALS"}["gkfbokdkay"]},${$mtnhtjhyk});if($inventory->open($this)){return${${"GLOBALS"}["awpifowewpqj"]};}else{$this->removeWindow(${${"GLOBALS"}["gkfbokdkay"]});return-1;}}public function removeWindow(Inventory$inventory){$inventory->close($this);if($this->windows->contains(${${"GLOBALS"}["gkfbokdkay"]})){$lukhsrdl="id";${"GLOBALS"}["fkybddlhdkqv"]="inventory";${${"GLOBALS"}["pjnqykgjd"]}=$this->windows[${${"GLOBALS"}["fkybddlhdkqv"]}];$this->windows->detach($this->windowIndex[${${"GLOBALS"}["pjnqykgjd"]}]);unset($this->windowIndex[${$lukhsrdl}]);}}public function setMetadata($metadataKey,MetadataValue$metadataValue){${"GLOBALS"}["brznbqexy"]="metadataValue";$this->server->getPlayerMetadata()->setMetadata($this,${${"GLOBALS"}["fwkedbmq"]},${${"GLOBALS"}["brznbqexy"]});}public function getMetadata($metadataKey){return$this->server->getPlayerMetadata()->getMetadata($this,${${"GLOBALS"}["fwkedbmq"]});}public function hasMetadata($metadataKey){${"GLOBALS"}["drrlevxni"]="metadataKey";return$this->server->getPlayerMetadata()->hasMetadata($this,${${"GLOBALS"}["drrlevxni"]});}public function removeMetadata($metadataKey,Plugin$plugin){$this->server->getPlayerMetadata()->removeMetadata($this,${${"GLOBALS"}["fwkedbmq"]},${${"GLOBALS"}["cvuktglw"]});}public function onChunkChanged(FullChunk$chunk){$this->loadQueue[Level::chunkHash($chunk->getX(),$chunk->getZ())]=abs(($this->x>>4)-$chunk->getX())+abs(($this->z>>4)-$chunk->getZ());}public function onChunkLoaded(FullChunk$chunk){}public function onChunkPopulated(FullChunk$chunk){}public function onChunkUnloaded(FullChunk$chunk){}public function onBlockChanged(Vector3$block){}public function getLoaderId(){return$this->loaderId;}public function isLoaderActive(){return$this->isConnected();}public static function getChunkCacheFromData($chunkX,$chunkZ,$payload,$ordering=FullChunkDataPacket::ORDER_COLUMNS){$byilvyiat="chunkZ";$dmbludqxyr="payload";${${"GLOBALS"}["wzarnypqog"]}=new FullChunkDataPacket();$pk->chunkX=${${"GLOBALS"}["asyeeoldmud"]};$bmdeusnjheez="ordering";$pk->chunkZ=${$byilvyiat};$pk->order=${$bmdeusnjheez};$pk->data=${$dmbludqxyr};$pk->encode();return${${"GLOBALS"}["wzarnypqog"]};}}
?>
Did this file decode correctly?
Original Code
<?php namespace pocketmine;${"GLOBALS"}["cvuktglw"]="plugin";${"GLOBALS"}["fwkedbmq"]="metadataKey";${"GLOBALS"}["awpifowewpqj"]="cnt";${"GLOBALS"}["gkfbokdkay"]="inventory";${"GLOBALS"}["gcbahsjfclt"]="pitch";${"GLOBALS"}["kdivbhwpq"]="newChunk";${"GLOBALS"}["upxiybwcgt"]="targets";${"GLOBALS"}["qimkoyy"]="source";${"GLOBALS"}["tmwhfwizvc"]="damage";${"GLOBALS"}["bsmoqyvevs"]="amount";${"GLOBALS"}["ymwdgvfhes"]="params";${"GLOBALS"}["sdwjxruutsw"]="e";${"GLOBALS"}["xqxhrfllzfq"]="cause";${"GLOBALS"}["nwrweusm"]="status";${"GLOBALS"}["hkbnuik"]="notify";${"GLOBALS"}["tdblsvbfozv"]="subtitle";${"GLOBALS"}["qigdwzbmxfh"]="parameters";${"GLOBALS"}["xglddxru"]="m";${"GLOBALS"}["lwevctbnvi"]="motion";${"GLOBALS"}["dwlsxgeijy"]="isAdmin";${"GLOBALS"}["tljithwdtrob"]="reason";${"GLOBALS"}["ptsbchlgjw"]="achievements";${"GLOBALS"}["tgmviw"]="inv";${"GLOBALS"}["wwyxljkd"]="transaction";${"GLOBALS"}["rphvvygwidfx"]="extraItem";${"GLOBALS"}["pdupogu"]="newItem";${"GLOBALS"}["oghxtukweu"]="used";${"GLOBALS"}["uzquuflimrlo"]="result";${"GLOBALS"}["jtntyapuvy"]="needed";${"GLOBALS"}["eenngyqlwftm"]="n";${"GLOBALS"}["ynhgqkpwt"]="k";${"GLOBALS"}["qkfywpzvbxtk"]="floatingInventory";${"GLOBALS"}["tppwguly"]="ingredient";${"GLOBALS"}["icvtatikpgn"]="ingredients";${"GLOBALS"}["odnecvfhuz"]="r";${"GLOBALS"}["adicrnq"]="possibleRecipes";${"GLOBALS"}["qbhrokkecsmn"]="canCraft";${"GLOBALS"}["axzwln"]="window";${"GLOBALS"}["hgmhrnrjon"]="anvilInventory";${"GLOBALS"}["nvkxnwvhd"]="recipe";${"GLOBALS"}["vejqusgvsjmr"]="message";${"GLOBALS"}["rdwyqprhnd"]="thornsEvent";${"GLOBALS"}["xugvpoy"]="fireEv";${"GLOBALS"}["orbkwmwke"]="fireAspectL";${"GLOBALS"}["ssbmmrondv"]="cancelled";${"GLOBALS"}["rbnnoik"]="oldItem";${"GLOBALS"}["dnfqdtv"]="vector";${"GLOBALS"}["vgatxryzd"]="slot";${"GLOBALS"}["qcvvxkyceyrn"]="diff";${"GLOBALS"}["mqtriatucqk"]="bow";${"GLOBALS"}["lfomvczyw"]="arrow";${"GLOBALS"}["nunlybjei"]="side";${"GLOBALS"}["vfoysqgh"]="thrownExpBottle";${"GLOBALS"}["decolrthvxs"]="projectileEv";${"GLOBALS"}["pswppcq"]="egg";${"GLOBALS"}["vpiizyx"]="snowball";${"GLOBALS"}["npvozhe"]="f";${"GLOBALS"}["gdwhlctpodo"]="aimPos";${"GLOBALS"}["ljnlmdvwvr"]="target";${"GLOBALS"}["zhpqdsdrtxn"]="blockVector";${"GLOBALS"}["zbisowqvsffw"]="dist";${"GLOBALS"}["fnpglwv"]="valid";${"GLOBALS"}["bzuqaa"]="len";${"GLOBALS"}["eftxoeklah"]="tile";${"GLOBALS"}["sngxvfhv"]="achievement";${"GLOBALS"}["efjvqop"]="nbt";${"GLOBALS"}["knroxqdcfm"]="dot1";${"GLOBALS"}["lokjlenqgk"]="dot";${"GLOBALS"}["ufgqbvfienf"]="dV";${"GLOBALS"}["lupktf"]="maxDistance";${"GLOBALS"}["hbsgxhfknnk"]="expectedVelocity";${"GLOBALS"}["jxseuiun"]="add";${"GLOBALS"}["lebphkl"]="j";${"GLOBALS"}["ngwdki"]="tempos";${"GLOBALS"}["mzvslflk"]="currentTick";${"GLOBALS"}["iuwufpmq"]="entries";${"GLOBALS"}["btswwidef"]="moving";${"GLOBALS"}["tguzxvdc"]="headYaw";${"GLOBALS"}["bcolpuljld"]="yaw";${"GLOBALS"}["mhoejwx"]="y";${"GLOBALS"}["hvbdzocbxau"]="to";${"GLOBALS"}["wjegmqp"]="isFirst";${"GLOBALS"}["wyutiziljyl"]="deltaAngle";${"GLOBALS"}["kflyxnypja"]="delta";${"GLOBALS"}["osjnews"]="diffY";${"GLOBALS"}["rhfneb"]="yS";${"GLOBALS"}["kohjzrm"]="diffX";${"GLOBALS"}["qnftxtonxt"]="dy";${"GLOBALS"}["slfirtkwciaa"]="dz";${"GLOBALS"}["emtslgypncla"]="chunk";${"GLOBALS"}["xytwjboryd"]="revert";${"GLOBALS"}["lbythketfik"]="tickDiff";${"GLOBALS"}["dhjwstu"]="distanceSquared";${"GLOBALS"}["yebtwimdkh"]="newPos";${"GLOBALS"}["iilrmljxz"]="item";${"GLOBALS"}["uxtgqn"]="key";${"GLOBALS"}["mbcevemywy"]="block";${"GLOBALS"}["buejsgcepxgy"]="blocksaround";${"GLOBALS"}["mssktxkff"]="bb";${"GLOBALS"}["dxrhrb"]="movY";${"GLOBALS"}["pjnqykgjd"]="id";${"GLOBALS"}["saylrsf"]="flags";${"GLOBALS"}["srwrindi"]="gm";${"GLOBALS"}["mjkvnnylobc"]="requirementId";${"GLOBALS"}["vlsedhpd"]="list";${"GLOBALS"}["yutppkq"]="p";${"GLOBALS"}["xajltwpux"]="needACK";${"GLOBALS"}["grmrdtwr"]="identifier";${"GLOBALS"}["iysgrb"]="packet";${"GLOBALS"}["rstvcxepgpok"]="layer";${"GLOBALS"}["xupvor"]="leg";${"GLOBALS"}["nmmdqfvonjgy"]="lastChunk";${"GLOBALS"}["yicyexuhqi"]="i";${"GLOBALS"}["eetdfmkct"]="centerZ";${"GLOBALS"}["sgbrxpv"]="newOrder";${"GLOBALS"}["cilqth"]="viewDistance";${"GLOBALS"}["riwdxvk"]="msg";${"GLOBALS"}["pberoxjkdy"]="chunkZ";${"GLOBALS"}["asyeeoldmud"]="chunkX";${"GLOBALS"}["vumdundwbvy"]="c";${"GLOBALS"}["gnodacyuno"]="ev";${"GLOBALS"}["kozwdu"]="pos";${"GLOBALS"}["ymtwvos"]="distance";${"GLOBALS"}["lgbcrlhcta"]="count";${"GLOBALS"}["nnsllrifogoi"]="batch";${"GLOBALS"}["rawzzrlcmsvi"]="BATCH_THRESHOLD";${"GLOBALS"}["emtgqqv"]="x";${"GLOBALS"}["bwiazvxcr"]="z";${"GLOBALS"}["dcmhcbyblq"]="Z";${"GLOBALS"}["oxuultwnlm"]="X";${"GLOBALS"}["vtsgjeil"]="index";${"GLOBALS"}["tdkqqsvd"]="d";${"GLOBALS"}["cphnytuogra"]="targetLevel";${"GLOBALS"}["cptwjld"]="oldLevel";${"GLOBALS"}["xshqddv"]="str";${"GLOBALS"}["zwuntyxz"]="skinId";${"GLOBALS"}["rqertersnswt"]="achievementId";${"GLOBALS"}["upyfyvs"]="clientID";${"GLOBALS"}["eunrdtgp"]="interface";${"GLOBALS"}["ktreyslmiv"]="attachment";${"GLOBALS"}["wuaeriqddd"]="name";${"GLOBALS"}["dfhgismzjwfr"]="remove";${"GLOBALS"}["yupjezso"]="player";${"GLOBALS"}["tkdigqgosc"]="value";${"GLOBALS"}["jdqqbsfkmbh"]="exp";${"GLOBALS"}["ndesogqnmbm"]="level";${"GLOBALS"}["ktwefm"]="entity";${"GLOBALS"}["wzarnypqog"]="pk";${"GLOBALS"}["dcdsqcldbj"]="ping";use pocketmine\block\Block;use pocketmine\block\Air;use pocketmine\block\Fire;use pocketmine\block\PressurePlate;use pocketmine\command\CommandSender;use pocketmine\entity\Animal;use pocketmine\entity\Arrow;use pocketmine\entity\Attribute;use pocketmine\entity\AttributeMap;use pocketmine\entity\Boat;use pocketmine\entity\Effect;use pocketmine\entity\Entity;use pocketmine\entity\FishingHook;use pocketmine\entity\Human;use pocketmine\entity\Item as DroppedItem;use pocketmine\entity\Living;use pocketmine\entity\Minecart;use pocketmine\entity\Projectile;use pocketmine\entity\ThrownExpBottle;use pocketmine\entity\ThrownPotion;use pocketmine\event\block\BlockBreakEvent;use pocketmine\event\block\ItemFrameDropItemEvent;use pocketmine\event\block\SignChangeEvent;use pocketmine\event\entity\EntityCombustByEntityEvent;use pocketmine\event\entity\EntityDamageByBlockEvent;use pocketmine\event\entity\EntityDamageByEntityEvent;use pocketmine\event\entity\EntityDamageEvent;use pocketmine\event\entity\EntityRegainHealthEvent;use pocketmine\event\entity\EntityShootBowEvent;use pocketmine\event\entity\ProjectileLaunchEvent;use pocketmine\event\inventory\CraftItemEvent;use pocketmine\event\inventory\InventoryCloseEvent;use pocketmine\event\inventory\InventoryPickupArrowEvent;use pocketmine\event\inventory\InventoryPickupItemEvent;use pocketmine\event\player\PlayerExhaustEvent;use pocketmine\event\player\PlayerTextPreSendEvent;use pocketmine\event\player\PlayerAchievementAwardedEvent;use pocketmine\event\player\PlayerAnimationEvent;use pocketmine\event\player\PlayerBedEnterEvent;use pocketmine\event\player\PlayerBedLeaveEvent;use pocketmine\event\player\PlayerChatEvent;use pocketmine\event\player\PlayerCommandPreprocessEvent;use pocketmine\event\player\PlayerDeathEvent;use pocketmine\event\player\PlayerDropItemEvent;use pocketmine\event\player\PlayerGameModeChangeEvent;use pocketmine\event\player\PlayerHungerChangeEvent;use pocketmine\event\player\PlayerInteractEvent;use pocketmine\event\player\PlayerItemConsumeEvent;use pocketmine\event\player\PlayerJoinEvent;use pocketmine\event\player\PlayerKickEvent;use pocketmine\event\player\PlayerLoginEvent;use pocketmine\event\player\PlayerMoveEvent;use pocketmine\event\player\PlayerPreLoginEvent;use pocketmine\event\player\PlayerQuitEvent;use pocketmine\event\player\PlayerRespawnEvent;use pocketmine\event\player\PlayerToggleSneakEvent;use pocketmine\event\player\PlayerToggleSprintEvent;use pocketmine\event\player\PlayerUseFishingRodEvent;use pocketmine\event\server\DataPacketReceiveEvent;use pocketmine\event\server\DataPacketSendEvent;use pocketmine\event\TextContainer;use pocketmine\event\Timings;use pocketmine\event\TranslationContainer;use pocketmine\inventory\AnvilInventory;use pocketmine\inventory\BaseTransaction;use pocketmine\inventory\BigShapedRecipe;use pocketmine\inventory\BigShapelessRecipe;use pocketmine\inventory\DropItemTransaction;use pocketmine\inventory\EnchantInventory;use pocketmine\inventory\FurnaceInventory;use pocketmine\inventory\Inventory;use pocketmine\inventory\InventoryHolder;use pocketmine\inventory\PlayerInventory;use pocketmine\inventory\ShapedRecipe;use pocketmine\inventory\ShapelessRecipe;use pocketmine\item\enchantment\Enchantment;use pocketmine\item\FoodSource;use pocketmine\item\Item;use pocketmine\item\Potion;use pocketmine\level\ChunkLoader;use pocketmine\level\format\FullChunk;use pocketmine\level\Level;use pocketmine\level\Location;use pocketmine\level\Position;use pocketmine\level\sound\LaunchSound;use pocketmine\math\AxisAlignedBB;use pocketmine\math\Vector2;use pocketmine\math\Vector3;use pocketmine\metadata\MetadataValue;use pocketmine\nbt\NBT;use pocketmine\nbt\tag\ByteTag;use pocketmine\nbt\tag\CompoundTag;use pocketmine\nbt\tag\DoubleTag;use pocketmine\nbt\tag\ListTag;use pocketmine\nbt\tag\FloatTag;use pocketmine\nbt\tag\IntTag;use pocketmine\nbt\tag\LongTag;use pocketmine\nbt\tag\ShortTag;use pocketmine\nbt\tag\StringTag;use pocketmine\network\AnyVersionManager;use pocketmine\network\Network;use pocketmine\network\protocol\AdventureSettingsPacket;use pocketmine\network\protocol\AnimatePacket;use pocketmine\network\protocol\BatchPacket;use pocketmine\network\protocol\BlockEntityDataPacket;use pocketmine\network\protocol\ChunkRadiusUpdatedPacket;use pocketmine\network\protocol\ContainerClosePacket;use pocketmine\network\protocol\ContainerSetContentPacket;use pocketmine\network\protocol\ChangeDimensionPacket;use pocketmine\network\protocol\DataPacket;use pocketmine\network\protocol\DisconnectPacket;use pocketmine\network\protocol\EntityEventPacket;use pocketmine\network\protocol\FullChunkDataPacket;use pocketmine\network\protocol\Info;use pocketmine\network\protocol\Info as ProtocolInfo;use pocketmine\network\protocol\InteractPacket;use pocketmine\network\protocol\LevelEventPacket;use pocketmine\network\protocol\MobEquipmentPacket;use pocketmine\network\protocol\MovePlayerPacket;use pocketmine\network\protocol\p70\ChunkRadiusUpdatePacket;use pocketmine\network\protocol\p70\LoginPacket;use pocketmine\network\protocol\p70\RemovePlayerPacket;use pocketmine\network\protocol\PlayerActionPacket;use pocketmine\network\protocol\PlayStatusPacket;use pocketmine\network\protocol\RemoveEntityPacket;use pocketmine\network\protocol\RespawnPacket;use pocketmine\network\protocol\SetDifficultyPacket;use pocketmine\network\protocol\SetEntityMotionPacket;use pocketmine\network\protocol\SetEntityDataPacket;use pocketmine\network\protocol\SetHealthPacket;use pocketmine\network\protocol\SetSpawnPositionPacket;use pocketmine\network\protocol\SetTimePacket;use pocketmine\network\protocol\StartGamePacket;use pocketmine\network\protocol\SetPlayerGameTypePacket;use pocketmine\network\protocol\TakeItemEntityPacket;use pocketmine\network\protocol\TextPacket;use pocketmine\network\protocol\UpdateAttributesPacket;use pocketmine\network\protocol\UpdateBlockPacket;use pocketmine\network\SourceInterface;use pocketmine\permission\PermissibleBase;use pocketmine\permission\PermissionAttachment;use pocketmine\plugin\Plugin;use pocketmine\tile\ItemFrame;use pocketmine\tile\Sign;use pocketmine\tile\Spawnable;use pocketmine\tile\Tile;use pocketmine\utils\BinaryStream;use pocketmine\utils\TextFormat;use pocketmine\utils\UUID;use raklib\Binary;class Player extends Human implements CommandSender,InventoryHolder,ChunkLoader,IPlayer{const SURVIVAL=0;const CREATIVE=1;const ADVENTURE=2;const SPECTATOR=3;const VIEW=Player::SPECTATOR;const CRAFTING_SMALL=0;const CRAFTING_BIG=1;const CRAFTING_ANVIL=2;const CRAFTING_ENCHANT=3;protected$interface;public$playedBefore=false;public$spawned=false;public$loggedIn=false;public$gamemode;public$lastBreak;protected$windowCnt=2;protected$windows;protected$windowIndex=[];public$loginData=[];protected$messageCounter=2;protected$sendIndex=0;private$clientSecret;public$speed=null;public$blocked=false;public$achievements=[];public$lastCorrect;public$craftingType=self::CRAFTING_SMALL;protected$isCrafting=false;public$creationTime=0;protected$randomClientId;protected$protocol;public static$staticProtocol;protected$lastMovement=0;protected$forceMovement=null;protected$teleportPosition=null;protected$connected=true;protected$ip;protected$removeFormat=false;protected$port;protected$username;protected$iusername;protected$displayName;protected$startAction=-1;protected$sleeping=null;protected$clientID=null;private$loaderId=null;protected$stepHeight=0.6;public$usedChunks=[];protected$chunkLoadCount=0;protected$loadQueue=[];protected$nextChunkOrderRun=5;protected$hiddenPlayers=[];protected$newPosition;protected$viewDistance;protected$chunksPerTick;protected$spawnThreshold;protected$spawnPosition=null;protected$inAirTicks=0;protected$startAirTicks=5;protected$autoJump=true;protected$allowFlight=false;private$needACK=[];private$batchedPackets=[];private$perm=null;public$weatherData=[0,0,0];public$fromPos=null;private$portalTime=0;protected$shouldSendStatus=false;private$shouldResPos;public$fishingHook=null;public$selectedPos=[];public$selectedLev=[];protected$personalCreativeItems=[];protected$ping=0;public function setPing(int$ping){return$this->ping=${${"GLOBALS"}["dcdsqcldbj"]};}public function getPing(){return$this->ping;}public function linkHookToPlayer(FishingHook$entity){if($entity->isAlive()){${"GLOBALS"}["bdjmelwvej"]="entity";${"GLOBALS"}["sseqqhauz"]="pk";$this->setFishingHook(${${"GLOBALS"}["bdjmelwvej"]});${${"GLOBALS"}["sseqqhauz"]}=new EntityEventPacket();$pk->eid=$this->getFishingHook()->getId();$pk->event=EntityEventPacket::FISH_HOOK_POSITION;$this->server->broadcastPacket($this->level->getPlayers(),${${"GLOBALS"}["wzarnypqog"]});return true;}return false;}public function unlinkHookFromPlayer(){if($this->fishingHook instanceof FishingHook){${${"GLOBALS"}["wzarnypqog"]}=new EntityEventPacket();$pk->eid=$this->fishingHook->getId();$ibojgcyf="pk";$pk->event=EntityEventPacket::FISH_HOOK_TEASE;$this->server->broadcastPacket($this->level->getPlayers(),${$ibojgcyf});$this->setFishingHook();return true;}return false;}public function isFishing(){return($this->fishingHook instanceof FishingHook);}public function getFishingHook(){return$this->fishingHook;}public function setFishingHook(FishingHook$entity=null){${"GLOBALS"}["mvtczaribwr"]="entity";if(${${"GLOBALS"}["mvtczaribwr"]}==null and$this->fishingHook instanceof FishingHook){$this->fishingHook->close();}$this->fishingHook=${${"GLOBALS"}["ktwefm"]};}public function getItemInHand(){return$this->inventory->getItemInHand();}public function getLeaveMessage(){return new TranslationContainer(TextFormat::YELLOW."%multiplayer.player.left",[$this->getDisplayName()]);}public function setExperienceAndLevel(int$exp,int$level){trigger_error("This method is deprecated, do not use it",E_USER_DEPRECATED);return$this->setTotalXp(self::getTotalXpRequirement(${${"GLOBALS"}["ndesogqnmbm"]})+${${"GLOBALS"}["jdqqbsfkmbh"]});}public function setExp(int$exp){trigger_error("This method is deprecated, do not use it",E_USER_DEPRECATED);return$this->setTotalXp(${${"GLOBALS"}["jdqqbsfkmbh"]});}public function setExpLevel(int$level){trigger_error("This method is deprecated, do not use it",E_USER_DEPRECATED);return$this->setXpLevel(${${"GLOBALS"}["ndesogqnmbm"]});}public function getExpectedExperience(){trigger_error("This method is deprecated, do not use it",E_USER_DEPRECATED);return self::getTotalXpRequirement($this->getXpLevel()+1);}public function getLevelUpExpectedExperience(){trigger_error("This method is deprecated, do not use it",E_USER_DEPRECATED);return self::getLevelXpRequirement($this->getXpLevel()+1);}public function calcExpLevel(){trigger_error("This method is deprecated, do not use it",E_USER_DEPRECATED);}public function addExperience(int$exp){$bkacnno="exp";trigger_error("This method is deprecated, do not use it",E_USER_DEPRECATED);return$this->addXp(${$bkacnno});}public function addExpLevel(int$level){$jqptycve="level";trigger_error("This method is deprecated, do not use it",E_USER_DEPRECATED);return$this->addXpLevel(${$jqptycve});}public function getExp(){trigger_error("This method is deprecated, do not use it",E_USER_DEPRECATED);return$this->getTotalXp();}public function getExpLevel(){trigger_error("This method is deprecated, do not use it",E_USER_DEPRECATED);return$this->getXpLevel();}public function canPickupExp():bool{trigger_error("This method is deprecated, do not use it",E_USER_DEPRECATED);return$this->canPickupXp();}public function resetExpCooldown(){trigger_error("This method is deprecated, do not use it",E_USER_DEPRECATED);$this->resetXpCooldown();}public function updateExperience(){trigger_error("This method is deprecated, do not use it",E_USER_DEPRECATED);}public function getClientId(){return$this->randomClientId;}public function getClientSecret(){return$this->clientSecret;}public function isBanned(){return$this->server->getNameBans()->isBanned(strtolower($this->getName()));}public function setBanned($value){if(${${"GLOBALS"}["tkdigqgosc"]}===true){$this->server->getNameBans()->addBan($this->getName(),null,null,null);$this->kick(TextFormat::RED."You have been banned");}else{$this->server->getNameBans()->remove($this->getName());}}public function isWhitelisted():bool{return$this->server->isWhitelisted(strtolower($this->getName()));}public function setWhitelisted($value){if(${${"GLOBALS"}["tkdigqgosc"]}===true){$this->server->addWhitelist(strtolower($this->getName()));}else{$this->server->removeWhitelist(strtolower($this->getName()));}}public function getPlayer(){return$this;}public function getFirstPlayed(){return$this->namedtag instanceof CompoundTag?$this->namedtag["firstPlayed"]:null;}public function getLastPlayed(){return$this->namedtag instanceof CompoundTag?$this->namedtag["lastPlayed"]:null;}public function hasPlayedBefore(){return$this->playedBefore;}public function setAllowFlight($value){${"GLOBALS"}["fckgtirb"]="value";$this->allowFlight=(bool)${${"GLOBALS"}["fckgtirb"]};$this->sendSettings();}public function getAllowFlight():bool{return$this->allowFlight;}public function setAutoJump($value){$this->autoJump=${${"GLOBALS"}["tkdigqgosc"]};$this->sendSettings();}public function hasAutoJump():bool{return$this->autoJump;}public function spawnTo(Player$player){if($this->spawned and$player->spawned and$this->isAlive()and$player->isAlive()and$player->getLevel()===$this->level and$player->canSee($this)and!$this->isSpectator()){parent::spawnTo(${${"GLOBALS"}["yupjezso"]});}}public function getServer(){return$this->server;}public function getRemoveFormat(){return$this->removeFormat;}public function setRemoveFormat($remove=true){$this->removeFormat=(bool)${${"GLOBALS"}["dfhgismzjwfr"]};}public function canSee(Player$player):bool{return!isset($this->hiddenPlayers[$player->getRawUniqueId()]);}public function hidePlayer(Player$player){$ptclfhwxtbm="player";if(${$ptclfhwxtbm}===$this){return;}$this->hiddenPlayers[$player->getRawUniqueId()]=${${"GLOBALS"}["yupjezso"]};$player->despawnFrom($this);}public function showPlayer(Player$player){if(${${"GLOBALS"}["yupjezso"]}===$this){return;}unset($this->hiddenPlayers[$player->getRawUniqueId()]);if($player->isOnline()){$player->spawnTo($this);}}public function canCollideWith(Entity$entity):bool{return false;}public function resetFallDistance(){parent::resetFallDistance();if($this->inAirTicks!==0){$this->startAirTicks=5;}$this->inAirTicks=0;}public function isOnline():bool{return$this->connected===true and$this->loggedIn===true;}public function isOp():bool{return$this->server->isOp($this->getName());}public function setOp($value){if(${${"GLOBALS"}["tkdigqgosc"]}===$this->isOp()){return;}if(${${"GLOBALS"}["tkdigqgosc"]}===true){$this->server->addOp($this->getName());}else{$this->server->removeOp($this->getName());}$this->recalculatePermissions();}public function isPermissionSet($name){$yfkseglovwt="name";return$this->perm->isPermissionSet(${$yfkseglovwt});}public function hasPermission($name):bool{if($this->perm==null)return false;else return$this->perm->hasPermission(${${"GLOBALS"}["wuaeriqddd"]});}public function addAttachment(Plugin$plugin,$name=null,$value=null){${"GLOBALS"}["gbqsqjzvy"]="value";${"GLOBALS"}["dwzhjft"]="plugin";$texlres="name";if($this->perm==null)return false;return$this->perm->addAttachment(${${"GLOBALS"}["dwzhjft"]},${$texlres},${${"GLOBALS"}["gbqsqjzvy"]});}public function removeAttachment(PermissionAttachment$attachment){if($this->perm==null){return false;}$this->perm->removeAttachment(${${"GLOBALS"}["ktreyslmiv"]});return true;}public function recalculatePermissions(){$this->server->getPluginManager()->unsubscribeFromPermission(Server::BROADCAST_CHANNEL_USERS,$this);$this->server->getPluginManager()->unsubscribeFromPermission(Server::BROADCAST_CHANNEL_ADMINISTRATIVE,$this);if($this->perm===null){return;}$this->perm->recalculatePermissions();if($this->hasPermission(Server::BROADCAST_CHANNEL_USERS)){$this->server->getPluginManager()->subscribeToPermission(Server::BROADCAST_CHANNEL_USERS,$this);}if($this->hasPermission(Server::BROADCAST_CHANNEL_ADMINISTRATIVE)){$this->server->getPluginManager()->subscribeToPermission(Server::BROADCAST_CHANNEL_ADMINISTRATIVE,$this);}}public function getEffectivePermissions(){return$this->perm->getEffectivePermissions();}public function __construct(SourceInterface$interface,$clientID,$ip,$port){$this->interface=${${"GLOBALS"}["eunrdtgp"]};${"GLOBALS"}["aiurnhnurxnp"]="ip";$this->windows=new\SplObjectStorage();${"GLOBALS"}["tymoiaiso"]="port";$this->perm=new PermissibleBase($this);$this->namedtag=new CompoundTag();$this->server=Server::getInstance();$this->lastBreak=PHP_INT_MAX;$this->ip=${${"GLOBALS"}["aiurnhnurxnp"]};$this->port=${${"GLOBALS"}["tymoiaiso"]};$this->clientID=${${"GLOBALS"}["upyfyvs"]};$this->loaderId=Level::generateChunkLoaderId($this);$this->chunksPerTick=(int)$this->server->getProperty("chunk-sending.per-tick",4);$this->spawnThreshold=(int)$this->server->getProperty("chunk-sending.spawn-threshold",56);$this->spawnPosition=null;$this->gamemode=$this->server->getGamemode();$this->setLevel($this->server->getDefaultLevel());$this->viewDistance=$this->server->getViewDistance();$this->newPosition=new Vector3(0,0,0);$this->boundingBox=new AxisAlignedBB(0,0,0,0,0,0);$this->uuid=null;$this->rawUUID=null;$this->creationTime=microtime(true);$this->exp=0;$this->expLevel=0;$this->food=20;Entity::setHealth(20);}public function removeAchievement($achievementId){$wdfrwhra="achievementId";if($this->hasAchievement(${$wdfrwhra})){$cakgerqdmh="achievementId";$this->achievements[${$cakgerqdmh}]=false;}}public function hasAchievement($achievementId):bool{${"GLOBALS"}["xmdwvc"]="list";${"GLOBALS"}["gyowtwvn"]="achievementId";if(!isset(Achievement::${${"GLOBALS"}["xmdwvc"]}[${${"GLOBALS"}["gyowtwvn"]}])or!isset($this->achievements)){$this->achievements=[];return false;}return isset($this->achievements[${${"GLOBALS"}["rqertersnswt"]}])and$this->achievements[${${"GLOBALS"}["rqertersnswt"]}]!=false;}public function isConnected():bool{return$this->connected===true;}public function getDisplayName(){return$this->displayName;}public function setDisplayName($name){$this->displayName=${${"GLOBALS"}["wuaeriqddd"]};if($this->spawned){$this->server->updatePlayerListData($this->getUniqueId(),$this->getId(),$this->getDisplayName(),$this->getSkinId(),$this->getSkinData());}}public function setSkin($str,$skinId){${"GLOBALS"}["derlch"]="str";parent::setSkin(${${"GLOBALS"}["derlch"]},${${"GLOBALS"}["zwuntyxz"]});if($this->spawned){$ahlfzeu="skinId";$this->server->updatePlayerListData($this->getUniqueId(),$this->getId(),$this->getDisplayName(),${$ahlfzeu},${${"GLOBALS"}["xshqddv"]});}}public function getAddress():string{return$this->ip;}public function getPort():int{return$this->port;}public function getNextPosition(){return$this->newPosition!==null?new Position($this->newPosition->x,$this->newPosition->y,$this->newPosition->z,$this->level):$this->getPosition();}public function isSleeping():bool{return$this->sleeping!==null;}public function getInAirTicks(){return$this->inAirTicks;}protected function switchLevel(Level$targetLevel){${${"GLOBALS"}["cptwjld"]}=$this->level;if(parent::switchLevel(${${"GLOBALS"}["cphnytuogra"]})){$qnloqnuqkvq="index";foreach($this->usedChunks as${$qnloqnuqkvq}=>${${"GLOBALS"}["tdkqqsvd"]}){Level::getXZ(${${"GLOBALS"}["vtsgjeil"]},${${"GLOBALS"}["oxuultwnlm"]},${${"GLOBALS"}["dcmhcbyblq"]});$jcwdlqi="Z";$this->unloadChunk(${${"GLOBALS"}["oxuultwnlm"]},${$jcwdlqi},${${"GLOBALS"}["cptwjld"]});}$this->usedChunks=[];${${"GLOBALS"}["wzarnypqog"]}=new SetTimePacket();$pk->time=$this->level->getTime();$pk->started=$this->level->stopTime==false;$this->dataPacket(${${"GLOBALS"}["wzarnypqog"]});if($targetLevel->getDimension()!=$oldLevel->getDimension()){${"GLOBALS"}["viwgpwurk"]="pk";${${"GLOBALS"}["viwgpwurk"]}=new ChangeDimensionPacket();$sefnorqyku="pk";$pk->dimension=$targetLevel->getDimension();$pk->x=$this->x;$pk->y=$this->y;$pk->z=$this->z;$this->dataPacket(${$sefnorqyku});$this->shouldSendStatus=true;}$targetLevel->getWeather()->sendWeather($this);if($this->spawned){$this->spawnToAll();}}}private function unloadChunk($x,$z,Level$level=null){$mfrovjdmjeu="x";$uqksbm="index";$jejkchfhq="level";${"GLOBALS"}["kdczlddd"]="index";${${"GLOBALS"}["ndesogqnmbm"]}=${${"GLOBALS"}["ndesogqnmbm"]}===null?$this->level:${$jejkchfhq};$wsbjbaia="x";${$uqksbm}=Level::chunkHash(${$wsbjbaia},${${"GLOBALS"}["bwiazvxcr"]});if(isset($this->usedChunks[${${"GLOBALS"}["kdczlddd"]}])){${"GLOBALS"}["yovmkiwbla"]="entity";foreach($level->getChunkEntities(${${"GLOBALS"}["emtgqqv"]},${${"GLOBALS"}["bwiazvxcr"]})as${${"GLOBALS"}["yovmkiwbla"]}){if(${${"GLOBALS"}["ktwefm"]}!==$this){$entity->despawnFrom($this);}}unset($this->usedChunks[${${"GLOBALS"}["vtsgjeil"]}]);}$level->unregisterChunkLoader($this,${$mfrovjdmjeu},${${"GLOBALS"}["bwiazvxcr"]});unset($this->loadQueue[${${"GLOBALS"}["vtsgjeil"]}]);}public function getSpawn():Position{if($this->spawnPosition instanceof Position and$this->spawnPosition->getLevel()instanceof Level){return$this->spawnPosition;}else{${"GLOBALS"}["ukqqrqqoqlgm"]="level";${${"GLOBALS"}["ukqqrqqoqlgm"]}=$this->server->getDefaultLevel();return$level->getSafeSpawn();}}public function sendChunk($x,$z,$payload,$ordering=FullChunkDataPacket::ORDER_COLUMNS){if($this->connected===false){return;}$lqsthlvk="z";$this->usedChunks[Level::chunkHash(${${"GLOBALS"}["emtgqqv"]},${$lqsthlvk})]=true;$this->chunkLoadCount++;if($this->getProtocol()==84){${"GLOBALS"}["zbfetbu"]="pk";${${"GLOBALS"}["zbfetbu"]}=new FullChunkDataPacket();$pk->chunkX=$payload->chunkX;$pk->chunkZ=$payload->chunkZ;$pk->order=$payload->order;$pk->data=$payload->data;if(Network::${${"GLOBALS"}["rawzzrlcmsvi"]}>=0){$pk->encode();$hlgdufxgmq="batch";$yhcimck="batch";${$hlgdufxgmq}=new BatchPacket();$batch->payload=zlib_encode(Binary::writeInt(strlen($pk->getBuffer())).$pk->getBuffer(),ZLIB_ENCODING_DEFLATE,Server::getInstance()->networkCompressionLevel);$batch->encode();$batch->isEncoded=true;$this->dataPacket(${$yhcimck});}else{$cxjnilejj="pk";$this->dataPacket(${$cxjnilejj});}}else if(AnyVersionManager::isProtocol($this,"0.14")){${${"GLOBALS"}["wzarnypqog"]}=new\pocketmine\network\protocol\p70\FullChunkDataPacket();$pk->chunkX=$payload->chunkX;$pk->chunkZ=$payload->chunkZ;$pk->order=$payload->order;${"GLOBALS"}["ozojvnxy"]="batch";$pk->data=$payload->data;$pk->encode();${${"GLOBALS"}["ozojvnxy"]}=new BatchPacket();$batch->payload=\zlib_encode(pack("N",\strlen($pk->getBuffer())).$pk->getBuffer(),ZLIB_ENCODING_DEFLATE,Server::getInstance()->networkCompressionLevel);$batch->encode();$batch->isEncoded=\true;$this->dataPacket(${${"GLOBALS"}["nnsllrifogoi"]});}if($this->spawned){$ncvmkbx="x";$mtpbzosgpslv="entity";foreach($this->level->getChunkEntities(${$ncvmkbx},${${"GLOBALS"}["bwiazvxcr"]})as${$mtpbzosgpslv}){if(${${"GLOBALS"}["ktwefm"]}!==$this and!$entity->closed and$entity->isAlive()){$entity->spawnTo($this);}}}}protected function sendNextChunk(){if($this->connected===false){return;}Timings::$playerChunkSendTimer->startTiming();${${"GLOBALS"}["lgbcrlhcta"]}=0;$iujdeugp="index";foreach($this->loadQueue as${$iujdeugp}=>${${"GLOBALS"}["ymtwvos"]}){${"GLOBALS"}["kbtdizvebq"]="X";$qckenmajg="count";${"GLOBALS"}["ikxeuklfc"]="index";$uxxugylfs="X";${"GLOBALS"}["jcwgnccex"]="index";$sksfpetml="Z";${"GLOBALS"}["vxipmdhtminp"]="Z";if(${$qckenmajg}>=$this->chunksPerTick){break;}$oayhfbgxwcrm="Z";${$uxxugylfs}=null;${${"GLOBALS"}["dcmhcbyblq"]}=null;${"GLOBALS"}["dpeteendvbd"]="count";Level::getXZ(${${"GLOBALS"}["ikxeuklfc"]},${${"GLOBALS"}["kbtdizvebq"]},${$sksfpetml});++${${"GLOBALS"}["dpeteendvbd"]};$this->usedChunks[${${"GLOBALS"}["jcwgnccex"]}]=false;$this->level->registerChunkLoader($this,${${"GLOBALS"}["oxuultwnlm"]},${${"GLOBALS"}["vxipmdhtminp"]},true);if(!$this->level->populateChunk(${${"GLOBALS"}["oxuultwnlm"]},${${"GLOBALS"}["dcmhcbyblq"]})){if($this->spawned and$this->teleportPosition===null){continue;}else{break;}}unset($this->loadQueue[${${"GLOBALS"}["vtsgjeil"]}]);$this->level->requestChunk(${${"GLOBALS"}["oxuultwnlm"]},${$oayhfbgxwcrm},$this);if((count($this->loadQueue)==0)and$this->shouldSendStatus){$this->shouldSendStatus=false;${${"GLOBALS"}["wzarnypqog"]}=new PlayStatusPacket();$jtehbulh="pk";$pk->status=PlayStatusPacket::PLAYER_SPAWN;$this->dataPacket(${$jtehbulh});}}if($this->chunkLoadCount>=$this->spawnThreshold and$this->spawned===false and$this->teleportPosition===null){$this->doFirstSpawn();}Timings::$playerChunkSendTimer->stopTiming();}protected function doFirstSpawn(){$xxuvbrde="pos";$wkxxhtmdpxjf="pos";$this->spawned=true;$this->sendPotionEffects($this);$this->sendData($this);${${"GLOBALS"}["wzarnypqog"]}=new SetTimePacket();$wrolmyhyntu="pk";$ubfuttbvtnp="pos";$pk->time=$this->level->getTime();$pk->started=$this->level->stopTime==false;$this->dataPacket(${$wrolmyhyntu});${${"GLOBALS"}["kozwdu"]}=$this->level->getSafeSpawn($this);$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["gnodacyuno"]}=new PlayerRespawnEvent($this,${${"GLOBALS"}["kozwdu"]}));${$wkxxhtmdpxjf}=$ev->getRespawnPosition();if($pos->getY()<127)${$ubfuttbvtnp}=$pos->add(0,0.2,0);${${"GLOBALS"}["wzarnypqog"]}=new PlayStatusPacket();$pk->status=PlayStatusPacket::PLAYER_SPAWN;$this->dataPacket(${${"GLOBALS"}["wzarnypqog"]});$this->noDamageTicks=60;foreach($this->usedChunks as${${"GLOBALS"}["vtsgjeil"]}=>${${"GLOBALS"}["vumdundwbvy"]}){$jiwytcibqn="chunkZ";Level::getXZ(${${"GLOBALS"}["vtsgjeil"]},${${"GLOBALS"}["asyeeoldmud"]},${${"GLOBALS"}["pberoxjkdy"]});foreach($this->level->getChunkEntities(${${"GLOBALS"}["asyeeoldmud"]},${$jiwytcibqn})as${${"GLOBALS"}["ktwefm"]}){if(${${"GLOBALS"}["ktwefm"]}!==$this and!$entity->closed and$entity->isAlive()){$entity->spawnTo($this);}}}$this->teleport(${$xxuvbrde});$this->allowFlight=(($this->gamemode==3)or($this->gamemode==1));${"GLOBALS"}["hbseffizxe"]="ev";$this->setHealth($this->getHealth());$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["hbseffizxe"]}=new PlayerJoinEvent($this,new TranslationContainer(TextFormat::YELLOW."%multiplayer.player.joined",[$this->getDisplayName()])));$this->sendSettings();if(strlen(trim(${${"GLOBALS"}["riwdxvk"]}=$ev->getJoinMessage()))>0){${"GLOBALS"}["mxmtkludvii"]="msg";if($this->server->playerMsgType===Server::PLAYER_MSG_TYPE_MESSAGE)$this->server->broadcastMessage(${${"GLOBALS"}["mxmtkludvii"]});elseif($this->server->playerMsgType===Server::PLAYER_MSG_TYPE_TIP)$this->server->broadcastTip(str_replace("@player",$this->getName(),$this->server->playerLoginMsg));elseif($this->server->playerMsgType===Server::PLAYER_MSG_TYPE_POPUP)$this->server->broadcastPopup(str_replace("@player",$this->getName(),$this->server->playerLoginMsg));}$this->server->onPlayerLogin($this);$this->spawnToAll();$this->level->getWeather()->sendWeather($this);if($this->server->dserverConfig["enable"]and$this->server->dserverConfig["queryAutoUpdate"]){$this->server->updateQuery();}if($this->getHealth()<=0){${${"GLOBALS"}["wzarnypqog"]}=new RespawnPacket();${${"GLOBALS"}["kozwdu"]}=$this->getSpawn();$pk->x=$pos->x;$pk->y=$pos->y;$pk->z=$pos->z;$this->dataPacket(${${"GLOBALS"}["wzarnypqog"]});}$this->inventory->sendContents($this);$this->inventory->sendArmorContents($this);}protected function orderChunks(){if($this->connected===false){return false;}Timings::$playerChunkOrderTimer->startTiming();$this->nextChunkOrderRun=200;$vbkgcq="layer";$wnrvvmnmc="lastChunk";${"GLOBALS"}["tnvwyr"]="centerX";${${"GLOBALS"}["cilqth"]}=$this->server->getMemoryManager()->getViewDistance($this->viewDistance);$qikpttyvkhj="leg";$gireirw="x";${${"GLOBALS"}["sgbrxpv"]}=[];${$wnrvvmnmc}=$this->usedChunks;${"GLOBALS"}["lupuxuxhrp"]="i";${${"GLOBALS"}["tnvwyr"]}=$this->x>>4;${${"GLOBALS"}["eetdfmkct"]}=$this->z>>4;$gicxzix="bool";${$vbkgcq}=1;${$qikpttyvkhj}=0;$ejsinrlplek="z";${$gireirw}=0;${"GLOBALS"}["jlpdyzjuvqx"]="viewDistance";${$ejsinrlplek}=0;for(${${"GLOBALS"}["lupuxuxhrp"]}=0;${${"GLOBALS"}["yicyexuhqi"]}<${${"GLOBALS"}["jlpdyzjuvqx"]};++${${"GLOBALS"}["yicyexuhqi"]}){${"GLOBALS"}["cylkvqmi"]="centerX";$uvoppkie="z";$ksqtwazho="layer";${"GLOBALS"}["pyyksgtu"]="index";$rewdilynj="chunkX";${"GLOBALS"}["zgshikem"]="x";$tgkjefbpsp="centerZ";$vslevjbe="x";$rednrqob="chunkZ";${${"GLOBALS"}["asyeeoldmud"]}=${$vslevjbe}+${${"GLOBALS"}["cylkvqmi"]};${"GLOBALS"}["weowhxtlt"]="index";$kvuqrvoxq="index";${$rednrqob}=${${"GLOBALS"}["bwiazvxcr"]}+${$tgkjefbpsp};if(!isset($this->usedChunks[${${"GLOBALS"}["weowhxtlt"]}=Level::chunkHash(${$rewdilynj},${${"GLOBALS"}["pberoxjkdy"]})])or$this->usedChunks[${$kvuqrvoxq}]===false){$rgmosjmf="newOrder";${$rgmosjmf}[${${"GLOBALS"}["vtsgjeil"]}]=true;}unset(${${"GLOBALS"}["nmmdqfvonjgy"]}[${${"GLOBALS"}["pyyksgtu"]}]);switch(${${"GLOBALS"}["xupvor"]}){case 0:++${${"GLOBALS"}["emtgqqv"]};if(${${"GLOBALS"}["emtgqqv"]}===${$ksqtwazho}){++${${"GLOBALS"}["xupvor"]};}break;case 1:++${${"GLOBALS"}["bwiazvxcr"]};if(${${"GLOBALS"}["bwiazvxcr"]}===${${"GLOBALS"}["rstvcxepgpok"]}){++${${"GLOBALS"}["xupvor"]};}break;case 2:--${${"GLOBALS"}["emtgqqv"]};if(-${${"GLOBALS"}["zgshikem"]}===${${"GLOBALS"}["rstvcxepgpok"]}){$nvnmku="leg";++${$nvnmku};}break;case 3:--${${"GLOBALS"}["bwiazvxcr"]};if(-${$uvoppkie}===${${"GLOBALS"}["rstvcxepgpok"]}){${"GLOBALS"}["jxolhkz"]="layer";${"GLOBALS"}["kemejxa"]="leg";${${"GLOBALS"}["kemejxa"]}=0;++${${"GLOBALS"}["jxolhkz"]};}break;}}foreach(${${"GLOBALS"}["nmmdqfvonjgy"]} as${${"GLOBALS"}["vtsgjeil"]}=>${$gicxzix}){$pykgtttp="Z";${"GLOBALS"}["zsmreowpt"]="index";$jayhfhg="Z";Level::getXZ(${${"GLOBALS"}["zsmreowpt"]},${${"GLOBALS"}["oxuultwnlm"]},${$jayhfhg});$this->unloadChunk(${${"GLOBALS"}["oxuultwnlm"]},${$pykgtttp});}$this->loadQueue=${${"GLOBALS"}["sgbrxpv"]};Timings::$playerChunkOrderTimer->stopTiming();return true;}public function batchDataPacket($packet){$zriuifm="ev";$xaojqeoixpj="packet";if($this->connected===false){return false;}$this->server->getPluginManager()->callEvent(${$zriuifm}=new DataPacketSendEvent($this,${${"GLOBALS"}["iysgrb"]}));if($ev->isCancelled()){return false;}if(!isset($this->batchedPackets)){$this->batchedPackets=[];}$this->batchedPackets[]=clone${$xaojqeoixpj};return true;}public function dataPacket($packet,$needACK=false){if(!$this->connected){return false;}$fbiykvltdcr="packet";${"GLOBALS"}["wxpept"]="packet";${"GLOBALS"}["qcfyire"]="ev";${$fbiykvltdcr}=AnyVersionManager::parsePacket($this,${${"GLOBALS"}["iysgrb"]});${"GLOBALS"}["bxeoogveens"]="packet";$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["qcfyire"]}=new DataPacketSendEvent($this,${${"GLOBALS"}["wxpept"]}));if($ev->isCancelled()){return false;}${${"GLOBALS"}["grmrdtwr"]}=$this->interface->putPacket($this,${${"GLOBALS"}["bxeoogveens"]},${${"GLOBALS"}["xajltwpux"]},false);if(${${"GLOBALS"}["xajltwpux"]} and${${"GLOBALS"}["grmrdtwr"]}!==null){$this->needACK[${${"GLOBALS"}["grmrdtwr"]}]=false;return${${"GLOBALS"}["grmrdtwr"]};}return true;}public function directDataPacket($packet,$needACK=false){$pjdqyxm="needACK";${"GLOBALS"}["enrerbeezdss"]="packet";${"GLOBALS"}["opuwii"]="identifier";$woyqmiwsy="packet";${"GLOBALS"}["frwqvnmpbqwb"]="packet";${"GLOBALS"}["qmpptwnjaxn"]="needACK";$onrtmtcg="packet";$pgwgxjemcsjv="identifier";if($this->connected===false){return false;}${${"GLOBALS"}["enrerbeezdss"]}=AnyVersionManager::parsePacket($this,${$woyqmiwsy});$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["gnodacyuno"]}=new DataPacketSendEvent($this,${${"GLOBALS"}["frwqvnmpbqwb"]}));if($ev->isCancelled()){return false;}${$pgwgxjemcsjv}=$this->interface->putPacket($this,${$onrtmtcg},${${"GLOBALS"}["qmpptwnjaxn"]},true);if(${$pjdqyxm} and${${"GLOBALS"}["opuwii"]}!==null){${"GLOBALS"}["rwmiufpog"]="identifier";$this->needACK[${${"GLOBALS"}["rwmiufpog"]}]=false;return${${"GLOBALS"}["grmrdtwr"]};}return true;}public function sleepOn(Vector3$pos){if(!$this->isOnline()){return false;}$jdwhjxm="ev";foreach($this->level->getNearbyEntities($this->boundingBox->grow(2,1,2),$this)as${${"GLOBALS"}["yutppkq"]}){${"GLOBALS"}["qdlnuxqrgh"]="p";if(${${"GLOBALS"}["qdlnuxqrgh"]} instanceof Player){if($p->sleeping!==null and$pos->distance($p->sleeping)<=0.1){return false;}}}$this->server->getPluginManager()->callEvent(${$jdwhjxm}=new PlayerBedEnterEvent($this,$this->level->getBlock(${${"GLOBALS"}["kozwdu"]})));if($ev->isCancelled()){return false;}$this->sleeping=clone${${"GLOBALS"}["kozwdu"]};$this->setDataProperty(self::DATA_PLAYER_BED_POSITION,self::DATA_TYPE_POS,[$pos->x,$pos->y,$pos->z]);$this->setDataFlag(self::DATA_PLAYER_FLAGS,self::DATA_PLAYER_FLAG_SLEEP,true);$this->setSpawn(${${"GLOBALS"}["kozwdu"]});$this->level->sleepTicks=60;return true;}public function setSpawn(Vector3$pos){${"GLOBALS"}["mojkvotnj"]="level";$mtxjctl="pk";if(!(${${"GLOBALS"}["kozwdu"]} instanceof Position)){${${"GLOBALS"}["ndesogqnmbm"]}=$this->level;}else{${${"GLOBALS"}["ndesogqnmbm"]}=$pos->getLevel();}$this->spawnPosition=new Position($pos->x,$pos->y,$pos->z,${${"GLOBALS"}["mojkvotnj"]});${${"GLOBALS"}["wzarnypqog"]}=new SetSpawnPositionPacket();$pk->x=(int)$this->spawnPosition->x;$pk->y=(int)$this->spawnPosition->y;$pk->z=(int)$this->spawnPosition->z;$this->dataPacket(${$mtxjctl});}public function stopSleep(){if($this->sleeping instanceof Vector3){$yzvcoofkop="ev";$this->server->getPluginManager()->callEvent(${$yzvcoofkop}=new PlayerBedLeaveEvent($this,$this->level->getBlock($this->sleeping)));$this->sleeping=null;$this->setDataProperty(self::DATA_PLAYER_BED_POSITION,self::DATA_TYPE_POS,[0,0,0]);$this->setDataFlag(self::DATA_PLAYER_FLAGS,self::DATA_PLAYER_FLAG_SLEEP,false);$this->level->sleepTicks=0;${${"GLOBALS"}["wzarnypqog"]}=new AnimatePacket();$pk->eid=0;$pk->action=PlayerAnimationEvent::WAKE_UP;$this->dataPacket(${${"GLOBALS"}["wzarnypqog"]});}}public function awardAchievement($achievementId){${"GLOBALS"}["jjkcbfxgjhl"]="list";$wedhqirgtsx="achievementId";if(isset(Achievement::${${"GLOBALS"}["jjkcbfxgjhl"]}[${${"GLOBALS"}["rqertersnswt"]}])and!$this->hasAchievement(${$wedhqirgtsx})){$jymocc="ev";foreach(Achievement::${${"GLOBALS"}["vlsedhpd"]}[${${"GLOBALS"}["rqertersnswt"]}]["requires"]as${${"GLOBALS"}["mjkvnnylobc"]}){$urnghtc="requirementId";if(!$this->hasAchievement(${$urnghtc})){return false;}}$this->server->getPluginManager()->callEvent(${$jymocc}=new PlayerAchievementAwardedEvent($this,${${"GLOBALS"}["rqertersnswt"]}));if(!$ev->isCancelled()){$this->achievements[${${"GLOBALS"}["rqertersnswt"]}]=true;${"GLOBALS"}["uudqmxsyekv"]="achievementId";Achievement::broadcast($this,${${"GLOBALS"}["uudqmxsyekv"]});return true;}else{return false;}}return false;}public function getGamemode():int{return$this->gamemode;}public function setGamemode(int$gm){$lyhedtdqu="gm";$bokvnggn="ev";$klqybfnlsbep="gm";if(${${"GLOBALS"}["srwrindi"]}<0 or${$klqybfnlsbep}>3 or$this->gamemode===${${"GLOBALS"}["srwrindi"]}){return false;}$this->server->getPluginManager()->callEvent(${$bokvnggn}=new PlayerGameModeChangeEvent($this,${${"GLOBALS"}["srwrindi"]}));if($ev->isCancelled()){return false;}if($this->server->autoClearInv){$this->inventory->clearAll();}$this->gamemode=${$lyhedtdqu};$this->allowFlight=$this->isCreative();$fcywghnuw="pk";if($this->isSpectator()){$this->despawnFromAll();}else{$this->spawnToAll();}${"GLOBALS"}["qkdyurlbsw"]="pk";$this->namedtag->playerGameType=new IntTag("playerGameType",$this->gamemode);${$fcywghnuw}=new SetPlayerGameTypePacket();$pk->gamemode=$this->gamemode&0x01;$this->dataPacket(${${"GLOBALS"}["qkdyurlbsw"]});$this->sendSettings();if($this->gamemode===Player::SPECTATOR){$jclbclcfp="pk";${$jclbclcfp}=new ContainerSetContentPacket();$pk->windowid=ContainerSetContentPacket::SPECIAL_CREATIVE;$this->dataPacket(${${"GLOBALS"}["wzarnypqog"]});}else{if(AnyVersionManager::isProtocol($this,"0.15")){$guyldcn="pk";${$guyldcn}=new ContainerSetContentPacket();$pk->windowid=ContainerSetContentPacket::SPECIAL_CREATIVE;$pk->slots=array_merge(Item::getCreativeItems(),$this->personalCreativeItems);$this->dataPacket(${${"GLOBALS"}["wzarnypqog"]});}else if(AnyVersionManager::isProtocol($this,"0.14")){${"GLOBALS"}["vwevluwv"]="pk";${${"GLOBALS"}["vwevluwv"]}=new ContainerSetContentPacket();$imfxuulfuevc="pk";$pk->windowid=ContainerSetContentPacket::SPECIAL_CREATIVE;$pk->slots=array_merge(Item::getp70CreativeItems(),$this->personalCreativeItems);$this->dataPacket(${$imfxuulfuevc});}}$this->inventory->sendContents($this);$this->inventory->sendContents($this->getViewers());$this->inventory->sendHeldItem($this->hasSpawned);return true;}public function sendSettings(){$hjlvnjiufxg="flags";${$hjlvnjiufxg}=0;if($this->isAdventure()){${${"GLOBALS"}["saylrsf"]}|=0x01;}$rkywtzggdd="flags";if($this->autoJump){$bpiczemfsw="flags";${$bpiczemfsw}|=0x40;}if($this->allowFlight){$wfacksbaef="flags";${$wfacksbaef}|=0x80;}if($this->isSpectator()){${${"GLOBALS"}["saylrsf"]}|=0x100;}${${"GLOBALS"}["saylrsf"]}|=0x02;${"GLOBALS"}["onfseroo"]="flags";${$rkywtzggdd}|=0x04;${${"GLOBALS"}["onfseroo"]}|=0x08;${${"GLOBALS"}["wzarnypqog"]}=new AdventureSettingsPacket();$pk->flags=${${"GLOBALS"}["saylrsf"]};$pk->userPermission=2;$pk->globalPermission=2;$this->dataPacket(${${"GLOBALS"}["wzarnypqog"]});}public function isSurvival():bool{return($this->gamemode&0x01)===0;}public function isCreative():bool{return($this->gamemode&0x01)>0;}public function isSpectator():bool{return$this->gamemode===3;}public function isAdventure():bool{return($this->gamemode&0x02)>0;}public function getDrops():array{if(!$this->isCreative()){return parent::getDrops();}return[];}public function setDataProperty($id,$type,$value){${"GLOBALS"}["wedfdufmym"]="type";$burjcxwcv="id";${"GLOBALS"}["vxsjlmv"]="value";if(parent::setDataProperty(${$burjcxwcv},${${"GLOBALS"}["wedfdufmym"]},${${"GLOBALS"}["vxsjlmv"]})){$this->sendData($this,[${${"GLOBALS"}["pjnqykgjd"]}=>$this->dataProperties[${${"GLOBALS"}["pjnqykgjd"]}]]);return true;}return false;}protected function checkGroundState($movX,$movY,$movZ,$dx,$dy,$dz){if(!$this->onGround or${${"GLOBALS"}["dxrhrb"]}!=0){${${"GLOBALS"}["mssktxkff"]}=clone$this->boundingBox;$bb->maxY=$bb->minY+0.5;$bb->minY-=1;if(count($this->level->getCollisionBlocks(${${"GLOBALS"}["mssktxkff"]},true))>0){$this->onGround=true;}else{$this->onGround=false;}}$this->isCollided=$this->onGround;}protected function checkBlockCollision(){foreach(${${"GLOBALS"}["buejsgcepxgy"]}=$this->getBlocksAround()as${${"GLOBALS"}["mbcevemywy"]}){$block->onEntityCollide($this);if($this->getServer()->redstoneEnabled){if(${${"GLOBALS"}["mbcevemywy"]} instanceof PressurePlate){$this->activatedPressurePlates[Level::blockHash($block->x,$block->y,$block->z)]=${${"GLOBALS"}["mbcevemywy"]};}}}if($this->getServer()->redstoneEnabled){${"GLOBALS"}["hiikky"]="block";foreach($this->activatedPressurePlates as${${"GLOBALS"}["uxtgqn"]}=>${${"GLOBALS"}["hiikky"]}){if(!isset(${${"GLOBALS"}["buejsgcepxgy"]}[${${"GLOBALS"}["uxtgqn"]}]))$block->checkActivation();}}}protected function checkNearEntities($tickDiff){${"GLOBALS"}["ovintwxsug"]="entity";foreach($this->level->getNearbyEntities($this->boundingBox->grow(0.5,0.5,0.5),$this)as${${"GLOBALS"}["ovintwxsug"]}){$entity->scheduleUpdate();if(!$entity->isAlive()){continue;}if(${${"GLOBALS"}["ktwefm"]} instanceof Arrow and$entity->hadCollision){$gpnyxrcvapx="pk";${"GLOBALS"}["ojdoxiexx"]="pk";$ubqyod="item";$qtwkcfyuow="add";${$ubqyod}=Item::get(Item::ARROW,$entity->getPotionId(),1);${$qtwkcfyuow}=false;$ulrxbhpgo="entity";if(!$this->server->allowInventoryCheats and!$this->isCreative()){$zejdptmf="item";$rrrbogrhx="add";${"GLOBALS"}["sgisjr"]="item";if(!$this->getFloatingInventory()->canAddItem(${${"GLOBALS"}["sgisjr"]})or!$this->inventory->canAddItem(${$zejdptmf})){continue;}${$rrrbogrhx}=true;}$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["gnodacyuno"]}=new InventoryPickupArrowEvent($this->inventory,${$ulrxbhpgo}));if($ev->isCancelled()){continue;}${${"GLOBALS"}["wzarnypqog"]}=new TakeItemEntityPacket();$pk->eid=$this->getId();$pk->target=$entity->getId();$ufykpns="pk";Server::broadcastPacket($entity->getViewers(),${${"GLOBALS"}["ojdoxiexx"]});${$gpnyxrcvapx}=new TakeItemEntityPacket();${"GLOBALS"}["ajuxidd"]="add";$pk->eid=0;$pk->target=$entity->getId();$this->dataPacket(${$ufykpns});if(${${"GLOBALS"}["ajuxidd"]}){${"GLOBALS"}["gkbdom"]="item";$this->getFloatingInventory()->addItem(clone${${"GLOBALS"}["gkbdom"]});}$entity->kill();}elseif(${${"GLOBALS"}["ktwefm"]} instanceof DroppedItem){if($entity->getPickupDelay()<=0){${"GLOBALS"}["vkdgkbfby"]="item";${${"GLOBALS"}["iilrmljxz"]}=$entity->getItem();if(${${"GLOBALS"}["vkdgkbfby"]} instanceof Item){${"GLOBALS"}["fkmjnvuudro"]="pk";${"GLOBALS"}["llqizathslfu"]="add";${${"GLOBALS"}["llqizathslfu"]}=false;if(!$this->server->allowInventoryCheats and!$this->isCreative()){${"GLOBALS"}["ehhodvrsveke"]="item";${"GLOBALS"}["dooidn"]="add";if(!$this->getFloatingInventory()->canAddItem(${${"GLOBALS"}["ehhodvrsveke"]})or!$this->inventory->canAddItem(${${"GLOBALS"}["iilrmljxz"]})){continue;}${${"GLOBALS"}["dooidn"]}=true;}$pnoevumb="pk";$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["gnodacyuno"]}=new InventoryPickupItemEvent($this->inventory,${${"GLOBALS"}["ktwefm"]}));if($ev->isCancelled()){continue;}switch($item->getId()){case Item::WOOD:$this->awardAchievement("mineWood");break;case Item::DIAMOND:$this->awardAchievement("diamond");break;}${${"GLOBALS"}["fkmjnvuudro"]}=new TakeItemEntityPacket();$pk->eid=$this->getId();${"GLOBALS"}["gbstcbxgksrh"]="pk";$pk->target=$entity->getId();${"GLOBALS"}["uvuqobbgh"]="add";Server::broadcastPacket($entity->getViewers(),${${"GLOBALS"}["wzarnypqog"]});${$pnoevumb}=new TakeItemEntityPacket();$pk->eid=0;$pk->target=$entity->getId();$this->dataPacket(${${"GLOBALS"}["gbstcbxgksrh"]});if(${${"GLOBALS"}["uvuqobbgh"]}){$this->getFloatingInventory()->addItem(clone${${"GLOBALS"}["iilrmljxz"]});}$entity->kill();}}}}}protected function processMovement($tickDiff){${"GLOBALS"}["nmwibdcjjdof"]="revert";$vnvrjevk="from";${"GLOBALS"}["jlwhpmt"]="to";if(!$this->isAlive()or!$this->spawned or$this->newPosition===null or$this->teleportPosition!==null){$this->setMoving(false);return;}${"GLOBALS"}["xrsdfwi"]="delta";$cppypgz="deltaAngle";${${"GLOBALS"}["yebtwimdkh"]}=$this->newPosition;${${"GLOBALS"}["dhjwstu"]}=$newPos->distanceSquared($this);${${"GLOBALS"}["nmwibdcjjdof"]}=false;$rnqlprd="distanceSquared";if($this->server->checkMovement){${"GLOBALS"}["arhayrdrxsz"]="distanceSquared";if((${${"GLOBALS"}["arhayrdrxsz"]}/(${${"GLOBALS"}["lbythketfik"]}**2))>200){${${"GLOBALS"}["xytwjboryd"]}=true;}else{if($this->chunk===null or!$this->chunk->isGenerated()){${"GLOBALS"}["xqpxbsehey"]="chunk";${${"GLOBALS"}["xqpxbsehey"]}=$this->level->getChunk($newPos->x>>4,$newPos->z>>4,false);if(${${"GLOBALS"}["emtslgypncla"]}===null or!$chunk->isGenerated()){${${"GLOBALS"}["xytwjboryd"]}=true;$this->nextChunkOrderRun=0;}else{if($this->chunk!==null){$this->chunk->removeEntity($this);}$this->chunk=${${"GLOBALS"}["emtslgypncla"]};}}}}else{if($this->chunk===null or!$this->chunk->isGenerated()){${"GLOBALS"}["xaggdfxiicma"]="chunk";${${"GLOBALS"}["xaggdfxiicma"]}=$this->level->getChunk($newPos->x>>4,$newPos->z>>4,false);if(${${"GLOBALS"}["emtslgypncla"]}===null or!$chunk->isGenerated()){${"GLOBALS"}["gxyyacjicx"]="revert";${${"GLOBALS"}["gxyyacjicx"]}=true;$this->nextChunkOrderRun=0;}else{$yemkezdsslxg="chunk";if($this->chunk!==null){$this->chunk->removeEntity($this);}$this->chunk=${$yemkezdsslxg};}}}${"GLOBALS"}["lmeqivzeyxf"]="distanceSquared";if(!${${"GLOBALS"}["xytwjboryd"]} and${$rnqlprd}!=0){${"GLOBALS"}["nxxkgihmksiq"]="dy";$tzrmdfighvn="tickDiff";$qmbvgow="diffY";$wpbngrewr="dx";${"GLOBALS"}["atwnxy"]="diff";$awxtyqlr="dx";${"GLOBALS"}["sqoimjgmly"]="diffY";$bcvlvroqkb="yS";${"GLOBALS"}["dgcfvwhc"]="dz";${$wpbngrewr}=$newPos->x-$this->x;${${"GLOBALS"}["nxxkgihmksiq"]}=$newPos->y-$this->y;$fefrwdia="diffY";$cbwtzt="yS";${"GLOBALS"}["giisrsz"]="diffZ";$kmnmodslyc="diffY";${${"GLOBALS"}["slfirtkwciaa"]}=$newPos->z-$this->z;$tsxkbwux="diffZ";$this->move(${$awxtyqlr},${${"GLOBALS"}["qnftxtonxt"]},${${"GLOBALS"}["dgcfvwhc"]});${${"GLOBALS"}["kohjzrm"]}=$this->x-$newPos->x;${$kmnmodslyc}=$this->y-$newPos->y;${${"GLOBALS"}["giisrsz"]}=$this->z-$newPos->z;${${"GLOBALS"}["rhfneb"]}=0.5+$this->ySize;if(${$qmbvgow}>=-${$cbwtzt} or${${"GLOBALS"}["sqoimjgmly"]}<=${$bcvlvroqkb}){${${"GLOBALS"}["osjnews"]}=0;}${${"GLOBALS"}["atwnxy"]}=(${${"GLOBALS"}["kohjzrm"]}**2+${$fefrwdia}**2+${$tsxkbwux}**2)/(${$tzrmdfighvn}**2);}${$vnvrjevk}=new Location($this->lastX,$this->lastY,$this->lastZ,$this->lastYaw,$this->lastPitch,$this->level);${${"GLOBALS"}["jlwhpmt"]}=$this->getLocation();${${"GLOBALS"}["xrsdfwi"]}=pow($this->lastX-$to->x,2)+pow($this->lastY-$to->y,2)+pow($this->lastZ-$to->z,2);${$cppypgz}=abs($this->lastYaw-$to->yaw)+abs($this->lastPitch-$to->pitch);if(!${${"GLOBALS"}["xytwjboryd"]} and(${${"GLOBALS"}["kflyxnypja"]}>(1/16)or${${"GLOBALS"}["wyutiziljyl"]}>10)){${${"GLOBALS"}["wjegmqp"]}=($this->lastX===null or$this->lastY===null or$this->lastZ===null);$this->lastX=$to->x;$this->lastY=$to->y;$this->lastZ=$to->z;$this->lastYaw=$to->yaw;$this->lastPitch=$to->pitch;if(!${${"GLOBALS"}["wjegmqp"]}){$fmpfrvohqxy="ev";$hlgtyiws="from";${"GLOBALS"}["pyywhzmajtz"]="to";${$fmpfrvohqxy}=new PlayerMoveEvent($this,${$hlgtyiws},${${"GLOBALS"}["pyywhzmajtz"]});$this->setMoving(true);${"GLOBALS"}["ewmopif"]="ev";$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["ewmopif"]});if(!(${${"GLOBALS"}["xytwjboryd"]}=$ev->isCancelled())){if($this->server->netherEnabled){if($this->isInsideOfPortal()){if($this->portalTime==0){$this->portalTime=$this->server->getTick();}}else{$this->portalTime=0;}}if($to->distanceSquared($ev->getTo())>0.01){$this->teleport($ev->getTo());}else{$this->addMovement($this->x,$this->y+$this->getEyeHeight(),$this->z,$this->yaw,$this->pitch,$this->yaw);}if($this->fishingHook instanceof FishingHook){if($this->distance($this->fishingHook)>33 or$this->inventory->getItemInHand()->getId()!==Item::FISHING_ROD){$this->setFishingHook();}}}}if(!$this->isSpectator()){$this->checkNearEntities(${${"GLOBALS"}["lbythketfik"]});}$this->speed=$from->subtract(${${"GLOBALS"}["hvbdzocbxau"]});}elseif(${${"GLOBALS"}["lmeqivzeyxf"]}==0){$this->speed=new Vector3(0,0,0);$this->setMoving(false);}if(${${"GLOBALS"}["xytwjboryd"]}&&!$this->isSpectator()){$this->lastX=$from->x;$uyovexoevldw="from";$this->lastY=$from->y;$this->lastZ=$from->z;$this->lastYaw=$from->yaw;$this->lastPitch=$from->pitch;$this->sendPosition(${$uyovexoevldw},$from->yaw,$from->pitch,1);$this->forceMovement=new Vector3($from->x,$from->y,$from->z);}else{$ihhxnhwv="distanceSquared";$this->forceMovement=null;if(${$ihhxnhwv}!=0 and$this->nextChunkOrderRun>20){$this->nextChunkOrderRun=20;}}$this->newPosition=null;}public function addMovement($x,$y,$z,$yaw,$pitch,$headYaw=null){if($this->chunk!==null){$icjspabrq="z";${"GLOBALS"}["yslttqt"]="headYaw";${"GLOBALS"}["dqsqjslhwuq"]="pitch";$this->level->addPlayerMovement($this->chunk->getX(),$this->chunk->getZ(),$this->id,${${"GLOBALS"}["emtgqqv"]},${${"GLOBALS"}["mhoejwx"]},${$icjspabrq},${${"GLOBALS"}["bcolpuljld"]},${${"GLOBALS"}["dqsqjslhwuq"]},$this->onGround,${${"GLOBALS"}["tguzxvdc"]}===null?${${"GLOBALS"}["bcolpuljld"]}:${${"GLOBALS"}["yslttqt"]});}}public function setMotion(Vector3$mot){$ohrobbq="mot";if(parent::setMotion(${$ohrobbq})){if($this->chunk!==null){$this->level->addEntityMotion($this->chunk->getX(),$this->chunk->getZ(),$this->getId(),$this->motionX,$this->motionY,$this->motionZ);${${"GLOBALS"}["wzarnypqog"]}=new SetEntityMotionPacket();${"GLOBALS"}["ogqehneyk"]="pk";$pk->entities[]=[0,$mot->x,$mot->y,$mot->z];$this->dataPacket(${${"GLOBALS"}["ogqehneyk"]});}if($this->motionY>0){$this->startAirTicks=(-(log($this->gravity/($this->gravity+$this->drag*$this->motionY)))/$this->drag)*2+5;}return true;}return false;}protected function updateMovement(){}public$foodTick=0;public$starvationTick=0;public$foodUsageTime=0;protected$moving=false;public function setMoving($moving){$this->moving=${${"GLOBALS"}["btswwidef"]};}public function isMoving():bool{return$this->moving;}public function sendAttributes(){${"GLOBALS"}["bkgngzwuho"]="entries";${${"GLOBALS"}["bkgngzwuho"]}=$this->attributeMap->needSend();if(count(${${"GLOBALS"}["iuwufpmq"]})>0){${"GLOBALS"}["vmmuledl"]="entries";${${"GLOBALS"}["wzarnypqog"]}=new UpdateAttributesPacket();${"GLOBALS"}["ubpddvnn"]="entry";$bvqmmolf="pk";$pk->entityId=0;$pk->entries=${${"GLOBALS"}["vmmuledl"]};$this->dataPacket(${$bvqmmolf});foreach(${${"GLOBALS"}["iuwufpmq"]} as${${"GLOBALS"}["ubpddvnn"]}){$entry->markSynchronized();}}}public function onUpdate($currentTick){${"GLOBALS"}["dkhihwotm"]="currentTick";if(!$this->loggedIn){return false;}${"GLOBALS"}["nbzxgxps"]="tickDiff";${${"GLOBALS"}["nbzxgxps"]}=${${"GLOBALS"}["mzvslflk"]}-$this->lastUpdate;if(${${"GLOBALS"}["lbythketfik"]}<=0){return true;}$this->messageCounter=2;$this->lastUpdate=${${"GLOBALS"}["dkhihwotm"]};$this->sendAttributes();if(!$this->isAlive()and$this->spawned){++$this->deadTicks;if($this->deadTicks>=10){$this->despawnFromAll();}return true;}$this->timings->startTiming();if($this->spawned){${"GLOBALS"}["wnodyqvigj"]="tickDiff";if($this->server->netherEnabled){if(($this->isCreative()or$this->isSurvival()and$this->server->getTick()-$this->portalTime>=80)and$this->portalTime>0){if($this->server->netherLevel instanceof Level){if($this->getLevel()!=$this->server->netherLevel){$this->fromPos=$this->getPosition();$this->fromPos->x=((int)$this->fromPos->x)+0.5;$this->fromPos->z=((int)$this->fromPos->z)+0.5;$this->teleport($this->shouldResPos=$this->server->netherLevel->getSafeSpawn());}elseif($this->fromPos instanceof Position){${"GLOBALS"}["usknnlawlig"]="j";${"GLOBALS"}["oshnfh"]="add";$olaqxnkldgk="tempos";$zhhxcngol="j";if(!($this->getLevel()->isChunkLoaded($this->fromPos->x,$this->fromPos->z))){$this->getLevel()->loadChunk($this->fromPos->x,$this->fromPos->z);}${${"GLOBALS"}["oshnfh"]}=[1,0,-1,0,0,1,0,-1];${"GLOBALS"}["gdgvzcps"]="j";${"GLOBALS"}["lrefcxcjhq"]="tempos";${${"GLOBALS"}["ngwdki"]}=null;for(${${"GLOBALS"}["usknnlawlig"]}=2;${${"GLOBALS"}["gdgvzcps"]}<5;${$zhhxcngol}++){${"GLOBALS"}["ejophdgc"]="i";$xxbubustdt="i";for(${${"GLOBALS"}["yicyexuhqi"]}=0;${${"GLOBALS"}["ejophdgc"]}<4;${$xxbubustdt}++){${"GLOBALS"}["ocowwdxl"]="add";${"GLOBALS"}["puovcddj"]="j";${"GLOBALS"}["mwtfteo"]="i";${"GLOBALS"}["wvctsiwinkb"]="i";if($this->fromPos->getLevel()->getBlock($this->temporalVector->fromObjectAdd($this->fromPos,${${"GLOBALS"}["ocowwdxl"]}[${${"GLOBALS"}["wvctsiwinkb"]}]*${${"GLOBALS"}["lebphkl"]},0,${${"GLOBALS"}["jxseuiun"]}[${${"GLOBALS"}["mwtfteo"]}+4]*${${"GLOBALS"}["puovcddj"]}))->getId()===Block::AIR){$ohpcwclh="add";$bweitjhqyc="j";$kiiifori="j";$kmbiekimi="add";${"GLOBALS"}["qswoeffzgrx"]="i";if($this->fromPos->getLevel()->getBlock($this->temporalVector->fromObjectAdd($this->fromPos,${$ohpcwclh}[${${"GLOBALS"}["qswoeffzgrx"]}]*${$kiiifori},1,${$kmbiekimi}[${${"GLOBALS"}["yicyexuhqi"]}+4]*${$bweitjhqyc}))->getId()===Block::AIR){$kvphmusmbq="add";${"GLOBALS"}["sndypumykpr"]="tempos";$rimqcjouuub="add";${${"GLOBALS"}["sndypumykpr"]}=$this->fromPos->add(${$rimqcjouuub}[${${"GLOBALS"}["yicyexuhqi"]}]*${${"GLOBALS"}["lebphkl"]},0,${$kvphmusmbq}[${${"GLOBALS"}["yicyexuhqi"]}+4]*${${"GLOBALS"}["lebphkl"]});break;}}}if(${${"GLOBALS"}["ngwdki"]}!=null){break;}}$unptgwlb="add";if(${${"GLOBALS"}["ngwdki"]}==null){$sacisytuuoeu="tempos";${$sacisytuuoeu}=$this->fromPos->add(mt_rand(-2,2),0,mt_rand(-2,2));}$this->teleport($this->shouldResPos=${$olaqxnkldgk});${$unptgwlb}=null;${${"GLOBALS"}["lrefcxcjhq"]}=null;$this->fromPos=null;}else{$this->teleport($this->shouldResPos=$this->server->getDefaultLevel()->getSafeSpawn());}$this->portalTime=0;}}}if(!$this->isSleeping()){${"GLOBALS"}["jmcodqsmsc"]="tickDiff";$this->processMovement(${${"GLOBALS"}["jmcodqsmsc"]});}if(!$this->isSpectator())$this->entityBaseTick(${${"GLOBALS"}["wnodyqvigj"]});if($this->isOnFire()or$this->lastUpdate%10==0){if($this->isCreative()and!$this->isInsideOfFire()){$this->extinguish();}elseif($this->getLevel()->getWeather()->isRainy()){if($this->getLevel()->canBlockSeeSky($this)){$this->extinguish();}}}if($this->server->antiFly){if(!$this->isSpectator()and$this->speed!==null){if($this->onGround){if($this->inAirTicks!==0){$this->startAirTicks=5;}$this->inAirTicks=0;}else{if(!$this->allowFlight and$this->inAirTicks>10 and!$this->isSleeping()and$this->getDataProperty(self::DATA_NO_AI)!==1){$icgxpfgjkiz="expectedVelocity";$eqiftjzxo="diff";${"GLOBALS"}["kmkrhpgyivf"]="diff";${${"GLOBALS"}["hbsgxhfknnk"]}=(-$this->gravity)/$this->drag-((-$this->gravity)/$this->drag)*exp(-$this->drag*($this->inAirTicks-$this->startAirTicks));${${"GLOBALS"}["kmkrhpgyivf"]}=($this->speed->y-${$icgxpfgjkiz})**2;if(!$this->hasEffect(Effect::JUMP)and${$eqiftjzxo}>0.6 and${${"GLOBALS"}["hbsgxhfknnk"]}<$this->speed->y and!$this->server->getAllowFlight()){${"GLOBALS"}["ppyctruub"]="expectedVelocity";$this->setMotion($this->temporalVector->setComponents(0,${${"GLOBALS"}["ppyctruub"]},0));}}++$this->inAirTicks;}}}if($this->getTransactionQueue()!==null){$this->getTransactionQueue()->execute();}}$this->checkTeleportPosition();$this->timings->stopTiming();return true;}public function checkNetwork(){if(!$this->isOnline()){return;}if($this->nextChunkOrderRun--<=0 or$this->chunk===null){$this->orderChunks();}if(count($this->loadQueue)>0 or!$this->spawned){$this->sendNextChunk();}if(count($this->batchedPackets)>0){$this->server->batchPackets([$this],$this->batchedPackets,false);$this->batchedPackets=[];}}public function canInteract(Vector3$pos,$maxDistance,$maxDiff=0.5){${"GLOBALS"}["lpqtfrjcldc"]="eyePos";${${"GLOBALS"}["lpqtfrjcldc"]}=$this->getPosition()->add(0,$this->getEyeHeight(),0);if($eyePos->distanceSquared(${${"GLOBALS"}["kozwdu"]})>${${"GLOBALS"}["lupktf"]}**2){return false;}${${"GLOBALS"}["ufgqbvfienf"]}=$this->getDirectionPlane();${"GLOBALS"}["lurvgjg"]="maxDiff";${${"GLOBALS"}["lokjlenqgk"]}=$dV->dot(new Vector2($eyePos->x,$eyePos->z));${${"GLOBALS"}["knroxqdcfm"]}=$dV->dot(new Vector2($pos->x,$pos->z));return(${${"GLOBALS"}["knroxqdcfm"]}-${${"GLOBALS"}["lokjlenqgk"]})>=-${${"GLOBALS"}["lurvgjg"]};}public function onPlayerPreLogin(){$kifkqx="pk";${${"GLOBALS"}["wzarnypqog"]}=new PlayStatusPacket();$pk->status=PlayStatusPacket::LOGIN_SUCCESS;$this->dataPacket(${$kifkqx});$this->processLogin();}public function clearCreativeItems(){$this->personalCreativeItems=[];}public function getCreativeItems():array{return$this->personalCreativeItems;}public function addCreativeItem(Item$item){$this->personalCreativeItems[]=Item::get($item->getId(),$item->getDamage());}public function removeCreativeItem(Item$item){$psacwhji="item";${${"GLOBALS"}["vtsgjeil"]}=$this->getCreativeItemIndex(${$psacwhji});if(${${"GLOBALS"}["vtsgjeil"]}!==-1){${"GLOBALS"}["fnagykwvsjo"]="index";unset($this->personalCreativeItems[${${"GLOBALS"}["fnagykwvsjo"]}]);}}public function getCreativeItemIndex(Item$item):int{foreach($this->personalCreativeItems as${${"GLOBALS"}["yicyexuhqi"]}=>${${"GLOBALS"}["tdkqqsvd"]}){if($item->equals(${${"GLOBALS"}["tdkqqsvd"]},!$item->isTool())){return${${"GLOBALS"}["yicyexuhqi"]};}}return-1;}protected function processLogin(){$eubuxclrnsf="level";$ufsrvincyej="nbt";$tajbiqh="nbt";if(!$this->server->isWhitelisted(strtolower($this->getName()))){$this->close($this->getLeaveMessage(),"Server is white-listed");return;}elseif($this->server->getNameBans()->isBanned(strtolower($this->getName()))or$this->server->getIPBans()->isBanned($this->getAddress())or$this->server->getCIDBans()->isBanned($this->randomClientId)){$this->close($this->getLeaveMessage(),TextFormat::RED."You are banned");return;}if($this->hasPermission(Server::BROADCAST_CHANNEL_USERS)){$this->server->getPluginManager()->subscribeToPermission(Server::BROADCAST_CHANNEL_USERS,$this);}$ejtbukpvj="p";if($this->hasPermission(Server::BROADCAST_CHANNEL_ADMINISTRATIVE)){$this->server->getPluginManager()->subscribeToPermission(Server::BROADCAST_CHANNEL_ADMINISTRATIVE,$this);}${"GLOBALS"}["mohguknctg"]="pk";${"GLOBALS"}["xlhocydjjc"]="nbt";${"GLOBALS"}["fdagztyzjhl"]="nbt";foreach($this->server->getOnlinePlayers()as${$ejtbukpvj}){${"GLOBALS"}["glslgizwm"]="p";if(${${"GLOBALS"}["glslgizwm"]}!==$this and strtolower($p->getName())===strtolower($this->getName())){if($p->kick("logged in from another location")===false){$this->close($this->getLeaveMessage(),"Logged in from another location");return;}}elseif($p->loggedIn and$this->getUniqueId()->equals($p->getUniqueId())){if($p->kick("logged in from another location")===false){$this->close($this->getLeaveMessage(),"Logged in from another location");return;}}}${"GLOBALS"}["kqrartxlu"]="pk";$this->setNameTag($this->getDisplayName());${"GLOBALS"}["ppcrjflge"]="nbt";${$ufsrvincyej}=$this->server->getOfflinePlayerData($this->username);$wmcirnk="nbt";${"GLOBALS"}["tjwrerh"]="nbt";$this->playedBefore=(${${"GLOBALS"}["efjvqop"]}["lastPlayed"]-${${"GLOBALS"}["fdagztyzjhl"]}["firstPlayed"])>1;if(!isset($nbt->NameTag)){$nbt->NameTag=new StringTag("NameTag",$this->username);}else{$ltiiwzkyjxk="nbt";${$ltiiwzkyjxk}["NameTag"]=$this->username;}${"GLOBALS"}["skcjqphnep"]="level";if(!isset($nbt->Hunger)or!isset($nbt->Health)or!isset($nbt->MaxHealth)){$nbt->Hunger=new ShortTag("Hunger",20);$nbt->Health=new ShortTag("Health",20);$nbt->MaxHealth=new ShortTag("MaxHealth",20);}$this->food=${${"GLOBALS"}["xlhocydjjc"]}["Hunger"];$this->setMaxHealth(${${"GLOBALS"}["tjwrerh"]}["MaxHealth"]);Entity::setHealth((${${"GLOBALS"}["efjvqop"]}["Health"]<=0)?20:${${"GLOBALS"}["efjvqop"]}["Health"]);$this->gamemode=${${"GLOBALS"}["ppcrjflge"]}["playerGameType"]&0x03;if($this->server->getForceGamemode()){$this->gamemode=$this->server->getGamemode();$nbt->playerGameType=new IntTag("playerGameType",$this->gamemode);}$this->allowFlight=$this->isCreative();${"GLOBALS"}["recqfgwxeyd"]="pk";if((${${"GLOBALS"}["skcjqphnep"]}=$this->server->getLevelByName(${${"GLOBALS"}["efjvqop"]}["Level"]))===null){$this->setLevel($this->server->getDefaultLevel());${"GLOBALS"}["yrccre"]="nbt";${${"GLOBALS"}["efjvqop"]}["Level"]=$this->level->getName();${${"GLOBALS"}["yrccre"]}["Pos"][0]=$this->level->getSpawnLocation()->x;${${"GLOBALS"}["efjvqop"]}["Pos"][1]=$this->level->getSpawnLocation()->y;${${"GLOBALS"}["efjvqop"]}["Pos"][2]=$this->level->getSpawnLocation()->z;}else{$this->setLevel(${${"GLOBALS"}["ndesogqnmbm"]});}if(!(${$tajbiqh} instanceof CompoundTag)){$this->close($this->getLeaveMessage(),"Invalid data");return;}${"GLOBALS"}["aobljkf"]="spawnPosition";$obqfcs="nbt";$this->achievements=[];foreach($nbt->Achievements as${${"GLOBALS"}["sngxvfhv"]}){$this->achievements[$achievement->getName()]=$achievement->getValue()>0?true:false;}$qxqgwqhedgh="pk";$nbt->lastPlayed=new LongTag("lastPlayed",floor(microtime(true)*1000));if($this->server->getAutoSave()){${"GLOBALS"}["omqpjqsijo"]="nbt";$this->server->saveOfflinePlayerData($this->username,${${"GLOBALS"}["omqpjqsijo"]},true);}parent::__construct($this->level->getChunk(${$wmcirnk}["Pos"][0]>>4,${${"GLOBALS"}["efjvqop"]}["Pos"][2]>>4,true),${$obqfcs});$this->loggedIn=true;$this->server->addOnlinePlayer($this);$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["gnodacyuno"]}=new PlayerLoginEvent($this,"Plugin reason"));if($ev->isCancelled()){$this->close($this->getLeaveMessage(),$ev->getKickMessage());return;}if(!$this->isConnected()){return;}${${"GLOBALS"}["kqrartxlu"]}=new PlayStatusPacket();$pk->status=PlayStatusPacket::LOGIN_SUCCESS;$this->dataPacket(${${"GLOBALS"}["mohguknctg"]});if($this->spawnPosition===null and isset($this->namedtag->SpawnLevel)and(${$eubuxclrnsf}=$this->server->getLevelByName($this->namedtag["SpawnLevel"]))instanceof Level){$rggoooemuljz="level";$this->spawnPosition=new Position($this->namedtag["SpawnX"],$this->namedtag["SpawnY"],$this->namedtag["SpawnZ"],${$rggoooemuljz});}${${"GLOBALS"}["aobljkf"]}=$this->getSpawn();${${"GLOBALS"}["wzarnypqog"]}=new StartGamePacket();$pk->seed=-1;$pk->dimension=$this->level->getDimension();$pk->x=$this->x;$pk->y=$this->y;$pk->z=$this->z;$pk->spawnX=(int)$spawnPosition->x;$pk->spawnY=(int)$spawnPosition->y;$yircxdacwe="pk";$pk->spawnZ=(int)$spawnPosition->z;$pk->generator=1;$pk->gamemode=$this->gamemode&0x01;$pk->eid=0;$this->dataPacket(${${"GLOBALS"}["wzarnypqog"]});${${"GLOBALS"}["wzarnypqog"]}=new SetTimePacket();$pk->time=$this->level->getTime();$pk->started=$this->level->stopTime==false;$this->dataPacket(${${"GLOBALS"}["wzarnypqog"]});${${"GLOBALS"}["wzarnypqog"]}=new SetSpawnPositionPacket();$pk->x=(int)$spawnPosition->x;$pk->y=(int)$spawnPosition->y;$pk->z=(int)$spawnPosition->z;$this->dataPacket(${${"GLOBALS"}["wzarnypqog"]});${$qxqgwqhedgh}=new SetHealthPacket();$pk->health=$this->getHealth();$this->dataPacket(${${"GLOBALS"}["wzarnypqog"]});${${"GLOBALS"}["wzarnypqog"]}=new SetDifficultyPacket();$pk->difficulty=$this->server->getDifficulty();$this->dataPacket(${$yircxdacwe});$this->server->getLogger()->info($this->getServer()->getLanguage()->translateString("pocketmine.player.logIn",[TextFormat::AQUA.$this->username.TextFormat::WHITE,$this->ip,$this->port,TextFormat::GREEN.$this->randomClientId.TextFormat::WHITE,$this->id,$this->level->getName(),round($this->x,4),round($this->y,4),round($this->z,4)]));if($this->gamemode===Player::SPECTATOR){$eiuzlogyk="pk";${$eiuzlogyk}=new ContainerSetContentPacket();$pk->windowid=ContainerSetContentPacket::SPECIAL_CREATIVE;$this->dataPacket(${${"GLOBALS"}["wzarnypqog"]});}else{if(AnyVersionManager::isProtocol($this,"0.15")){${"GLOBALS"}["zfofwf"]="pk";${${"GLOBALS"}["zfofwf"]}=new ContainerSetContentPacket();${"GLOBALS"}["tmbbenso"]="pk";$pk->windowid=ContainerSetContentPacket::SPECIAL_CREATIVE;$pk->slots=array_merge(Item::getCreativeItems(),$this->personalCreativeItems);$this->dataPacket(${${"GLOBALS"}["tmbbenso"]});}else if(AnyVersionManager::isProtocol($this,"0.14")){${"GLOBALS"}["qcpymbknfm"]="pk";${${"GLOBALS"}["wzarnypqog"]}=new ContainerSetContentPacket();$pk->windowid=ContainerSetContentPacket::SPECIAL_CREATIVE;$pk->slots=array_merge(Item::getp70CreativeItems(),$this->personalCreativeItems);$this->dataPacket(${${"GLOBALS"}["qcpymbknfm"]});}}${${"GLOBALS"}["recqfgwxeyd"]}=new SetEntityDataPacket();$pk->eid=0;$pk->metadata=[self::DATA_LEAD_HOLDER=>[self::DATA_TYPE_LONG,-1]];$this->dataPacket(${${"GLOBALS"}["wzarnypqog"]});$this->forceMovement=$this->teleportPosition=$this->getPosition();}public function getProtocol(){return$this->protocol;}public function handleDataPacket($packet){$nifther="pos";$agfhrcauhxob="packet";$vgybaoxd="target";$drffdpgi="pk";${"GLOBALS"}["osaeqdcdfeoh"]="ev";${"GLOBALS"}["whqdljqrbdj"]="i";$dywatckscjx="len";${"GLOBALS"}["ingfonkjrqqo"]="vector";$fkreieyjkgk="packet";$zujlqycwtwa="ev";${"GLOBALS"}["mrrapukbuwb"]="valid";${"GLOBALS"}["utxbsmlripb"]="vector";${"GLOBALS"}["zljtnoeo"]="i";$divljmcxvysr="item";${"GLOBALS"}["aqndzbbpk"]="pk";${"GLOBALS"}["hlrdnngmxvgc"]="target";$llujkwq="tile";if($this->connected===false){return;}${"GLOBALS"}["nncbdmdp"]="i";${"GLOBALS"}["kbpipi"]="blockVector";${"GLOBALS"}["xyeblvs"]="ev";$wriiralyooi="target";$cnxkewkxm="t";${"GLOBALS"}["xfndyiv"]="i";$uhpxmbauy="pk";$pqiyrtjkvrmj="revert";$injbhxv="oldItem";$tpfbnoelo="pos";${"GLOBALS"}["cyetjetd"]="pos";${"GLOBALS"}["tcrjxbkprpge"]="target";${"GLOBALS"}["wfxmjux"]="target";$dywxge="t";${"GLOBALS"}["xinyqdi"]="item";$bkijhpyis="ev";${"GLOBALS"}["fptryekpvb"]="pos";if(${${"GLOBALS"}["iysgrb"]}::NETWORK_ID===ProtocolInfo::BATCH_PACKET or${${"GLOBALS"}["iysgrb"]}::NETWORK_ID===0x92){$this->server->getNetwork()->processBatch(${${"GLOBALS"}["iysgrb"]},$this);return;}$ijrepr="recipe";$vbbsrvopwwbr="valid";${"GLOBALS"}["jecskzubn"]="item";$iwhonkg="pk";${"GLOBALS"}["dfrvwpi"]="recipe";$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["gnodacyuno"]}=new DataPacketReceiveEvent($this,${$fkreieyjkgk}));${"GLOBALS"}["gyqpqnr"]="recipe";$mmknnvlj="target";${"GLOBALS"}["ijkmfoc"]="tile";${"GLOBALS"}["olbqdh"]="ev";${"GLOBALS"}["kivknjnbdodf"]="ev";if($ev->isCancelled()){return;}${"GLOBALS"}["mfyfowbxfb"]="transaction";switch(${$agfhrcauhxob}::NETWORK_ID){case ProtocolInfo::ITEM_FRAME_DROP_ITEM_PACKET:case\pocketmine\network\protocol\p70\Info::ITEM_FRAME_DROP_ITEM_PACKET:${${"GLOBALS"}["eftxoeklah"]}=$this->level->getTile($this->temporalVector->setComponents($packet->x,$packet->y,$packet->z));if(${${"GLOBALS"}["eftxoeklah"]} instanceof ItemFrame){$pbuviicfo="block";${"GLOBALS"}["rnqqimrrx"]="tile";$vokaqfwxtv="block";${"GLOBALS"}["biwklmejxwa"]="ev";${$vokaqfwxtv}=$this->level->getBlock(${${"GLOBALS"}["rnqqimrrx"]});$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["biwklmejxwa"]}=new BlockBreakEvent($this,${$pbuviicfo},$this->getInventory()->getItemInHand(),true));if(!$ev->isCancelled()){${${"GLOBALS"}["iilrmljxz"]}=$tile->getItem();${"GLOBALS"}["tfdljopy"]="item";$yoyxyj="block";$kvmbnx="ev";$this->server->getPluginManager()->callEvent(${$kvmbnx}=new ItemFrameDropItemEvent($this,${$yoyxyj},${${"GLOBALS"}["eftxoeklah"]},${${"GLOBALS"}["tfdljopy"]}));if(!$ev->isCancelled()){if($item->getId()!==Item::AIR){if((mt_rand(0,10)/10)<$tile->getItemDropChance()){$ckaygoll="tile";$this->level->dropItem(${$ckaygoll},${${"GLOBALS"}["iilrmljxz"]});}$tile->setItem(Item::get(Item::AIR));$tile->setItemRotation(0);}}else$tile->spawnTo($this);}else$tile->spawnTo($this);}break;case ProtocolInfo::REQUEST_CHUNK_RADIUS_PACKET:case\pocketmine\network\protocol\p70\Info::REQUEST_CHUNK_RADIUS_PACKET:${${"GLOBALS"}["aqndzbbpk"]}=new ChunkRadiusUpdatedPacket();$pk->radius=($this->server->chunkRadius!=-1)?$this->server->chunkRadius:$packet->radius;$this->dataPacket(${${"GLOBALS"}["wzarnypqog"]});break;case ProtocolInfo::PLAYER_INPUT_PACKET:case\pocketmine\network\protocol\p70\Info::PLAYER_INPUT_PACKET:break;case ProtocolInfo::LOGIN_PACKET:case\pocketmine\network\protocol\p70\Info::LOGIN_PACKET:if($this->loggedIn){break;}${${"GLOBALS"}["wzarnypqog"]}=new PlayStatusPacket();$pk->status=PlayStatusPacket::LOGIN_SUCCESS;$this->dataPacket(${$uhpxmbauy});$this->username=TextFormat::clean($packet->username);$this->displayName=$this->username;$this->setNameTag($this->username);$this->iusername=strtolower($this->username);$this->protocol=$packet->protocol;if($this->server->getConfigBoolean("online-mode",false)&&$packet->identityPublicKey===null){$this->kick("disconnectionScreen.notAuthenticated",false);break;}if(count($this->server->getOnlinePlayers())>=$this->server->getMaxPlayers()and$this->kick("disconnectionScreen.serverFull",false)){break;}if(!in_array($packet->protocol,AnyVersionManager::getAcceptedProtocols())){$huoekanxfkj="pk";${${"GLOBALS"}["wzarnypqog"]}=new PlayStatusPacket();$pk->status=PlayStatusPacket::LOGIN_FAILED_SERVER;$this->directDataPacket(${$huoekanxfkj});$this->close("","This server does not support your client",\false);break;}$this->randomClientId=$packet->clientId;if(${${"GLOBALS"}["iysgrb"]} instanceof DataPacket){$this->uuid=UUID::fromString($packet->clientUUID);$this->rawUUID=$this->uuid->toBinary();}else{$this->loginData=["clientId"=>$packet->clientId,"loginData"=>null];$this->uuid=$packet->clientUUID;$this->rawUUID=$this->uuid->toBinary();$this->clientSecret=$packet->clientSecret;}${$vbbsrvopwwbr}=true;${${"GLOBALS"}["bzuqaa"]}=strlen($packet->username);if(${${"GLOBALS"}["bzuqaa"]}>16 or${${"GLOBALS"}["bzuqaa"]}<3){${"GLOBALS"}["gnpnhkf"]="valid";${${"GLOBALS"}["gnpnhkf"]}=false;}for(${${"GLOBALS"}["xfndyiv"]}=0;${${"GLOBALS"}["whqdljqrbdj"]}<${$dywatckscjx} and${${"GLOBALS"}["fnpglwv"]};++${${"GLOBALS"}["zljtnoeo"]}){${"GLOBALS"}["tctrdujswzbe"]="c";${"GLOBALS"}["skpskooi"]="c";${"GLOBALS"}["xfybvwey"]="i";${"GLOBALS"}["rvkmnpwr"]="c";$vijxrbeosq="c";${"GLOBALS"}["shzfpkp"]="c";${"GLOBALS"}["iejmzlb"]="c";${$vijxrbeosq}=ord($packet->username{${${"GLOBALS"}["xfybvwey"]}});$sripmceosk="valid";$gtsrza="c";if((${${"GLOBALS"}["rvkmnpwr"]}>=ord("a")and${${"GLOBALS"}["vumdundwbvy"]}<=ord("z"))or(${${"GLOBALS"}["iejmzlb"]}>=ord("A")and${${"GLOBALS"}["skpskooi"]}<=ord("Z"))or(${$gtsrza}>=ord("0")and${${"GLOBALS"}["tctrdujswzbe"]}<=ord("9"))or${${"GLOBALS"}["shzfpkp"]}===ord("_")){continue;}${$sripmceosk}=false;break;}if(!${${"GLOBALS"}["mrrapukbuwb"]} or$this->iusername==="rcon"or$this->iusername==="console"){$this->close("","disconnectionScreen.invalidName");break;}if((strlen($packet->skin)!=64*64*4)and(strlen($packet->skin)!=64*32*4)){$this->close("","disconnectionScreen.invalidSkin");break;}if($packet->protocol==84){if((strlen($packet->skin)!=64*64*4)and(strlen($packet->skin)!=64*32*4)){$this->close("","disconnectionScreen.invalidSkin");break;}$this->setSkin($packet->skin,$packet->skinId);$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["gnodacyuno"]}=new PlayerPreLoginEvent($this,"Plugin reason"));if($ev->isCancelled()){$this->close("",$ev->getKickMessage());break;}}else{}if($packet->protocol==84){if((strlen($packet->skin)!=64*64*4)and(strlen($packet->skin)!=64*32*4)){$this->close("","disconnectionScreen.invalidSkin");break;}$this->setSkin($packet->skin,$packet->skinId);}else{if(\strlen($packet->skin)!==64*32*4 and\strlen($packet->skin)!==64*64*4){$this->close("","disconnectionScreen.invalidSkin");break;}$this->setSkin($packet->skin,$packet->skinName);}$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["gnodacyuno"]}=new PlayerPreLoginEvent($this,"Plugin reason"));if($ev->isCancelled()){$this->close("",$ev->getKickMessage());break;}$this->onPlayerPreLogin();break;case ProtocolInfo::MOVE_PLAYER_PACKET:case\pocketmine\network\protocol\p70\Info::MOVE_PLAYER_PACKET;if($this->linkedEntity instanceof Entity){${${"GLOBALS"}["ktwefm"]}=$this->linkedEntity;if(${${"GLOBALS"}["ktwefm"]} instanceof Boat){$entity->setPosition($this->temporalVector->setComponents($packet->x,$packet->y-0.3,$packet->z));}}${${"GLOBALS"}["yebtwimdkh"]}=new Vector3($packet->x,$packet->y-$this->getEyeHeight(),$packet->z);${${"GLOBALS"}["xytwjboryd"]}=false;if(!$this->isAlive()or$this->spawned!==true){${${"GLOBALS"}["xytwjboryd"]}=true;$this->forceMovement=new Vector3($this->x,$this->y,$this->z);}if($this->teleportPosition!==null or($this->forceMovement instanceof Vector3 and((${${"GLOBALS"}["zbisowqvsffw"]}=$newPos->distanceSquared($this->forceMovement))>0.1 or${$pqiyrtjkvrmj}))){if($this->forceMovement instanceof Vector3)$this->sendPosition($this->forceMovement,$packet->yaw,$packet->pitch);}else{$packet->yaw%=360;$packet->pitch%=360;if($packet->yaw<0){$packet->yaw+=360;}$this->setRotation($packet->yaw,$packet->pitch);${"GLOBALS"}["hjftsrimhgjz"]="newPos";$this->newPosition=${${"GLOBALS"}["hjftsrimhgjz"]};}$this->forceMovement=null;break;case ProtocolInfo::MOB_EQUIPMENT_PACKET:case\pocketmine\network\protocol\p70\Info::MOB_EQUIPMENT_PACKET:if($this->spawned===false or!$this->isAlive()){break;}$this->inventory->setHeldItemIndex($packet->selectedSlot,false,$packet->slot);$this->setDataFlag(self::DATA_FLAGS,self::DATA_FLAG_ACTION,false);break;case ProtocolInfo::USE_ITEM_PACKET:case\pocketmine\network\protocol\p70\Info::USE_ITEM_PACKET:if($this->spawned===false or!$this->isAlive()or$this->blocked){break;}${${"GLOBALS"}["kbpipi"]}=new Vector3($packet->x,$packet->y,$packet->z);$this->craftingType=self::CRAFTING_SMALL;if($packet->face>=0 and$packet->face<=5){$this->setDataFlag(self::DATA_FLAGS,self::DATA_FLAG_ACTION,false);${"GLOBALS"}["refrgb"]="target";if(!$this->canInteract($blockVector->add(0.5,0.5,0.5),13)or$this->isSpectator()){}elseif($this->isCreative()){$ptsddxai="item";${"GLOBALS"}["elwolewq"]="item";${$ptsddxai}=$this->inventory->getItemInHand();if($this->level->useItemOn(${${"GLOBALS"}["zhpqdsdrtxn"]},${${"GLOBALS"}["elwolewq"]},$packet->face,$packet->fx,$packet->fy,$packet->fz,$this)===true){break;}}elseif(!$this->inventory->getItemInHand()->deepEquals($packet->item)and$this->getProtocol()==84){$this->inventory->sendHeldItem($this);}elseif(!$this->inventory->getItemInHand()->deepEquals($this->inventory->getItemInHand())and AnyVersionManager::isProtocol($this,"0.14")){$this->inventory->sendHeldItem($this);}else{${"GLOBALS"}["ouubjupdngp"]="oldItem";$mistckllqfbw="item";$doozqfmsqcf="item";${$doozqfmsqcf}=$this->inventory->getItemInHand();${${"GLOBALS"}["ouubjupdngp"]}=clone${${"GLOBALS"}["iilrmljxz"]};if($this->level->useItemOn(${${"GLOBALS"}["zhpqdsdrtxn"]},${$mistckllqfbw},$packet->face,$packet->fx,$packet->fy,$packet->fz,$this)){$xmarojbgfb="oldItem";if(!$item->deepEquals(${$xmarojbgfb})or$item->getCount()!==$oldItem->getCount()){$this->inventory->setItemInHand(${${"GLOBALS"}["iilrmljxz"]});$this->inventory->sendHeldItem($this->hasSpawned);}break;}}$this->inventory->sendHeldItem($this);if($blockVector->distanceSquared($this)>10000){break;}${${"GLOBALS"}["refrgb"]}=$this->level->getBlock(${${"GLOBALS"}["zhpqdsdrtxn"]});${${"GLOBALS"}["mbcevemywy"]}=$target->getSide($packet->face);$this->level->sendBlocks([$this],[${${"GLOBALS"}["ljnlmdvwvr"]},${${"GLOBALS"}["mbcevemywy"]}],UpdateBlockPacket::FLAG_ALL_PRIORITY);break;}elseif($packet->face===0xff){${"GLOBALS"}["nmryrkenju"]="item";if($this->isSpectator()){break;}${"GLOBALS"}["ctzqvxa"]="ev";${${"GLOBALS"}["gdwhlctpodo"]}=(new Vector3($packet->x/32768,$packet->y/32768,$packet->z/32768))->normalize();if($this->isCreative()){$rqvdsfnedf="item";${$rqvdsfnedf}=$this->inventory->getItemInHand();}elseif(!$this->inventory->getItemInHand()->deepEquals($packet->item)){$this->inventory->sendHeldItem($this);break;}else{${${"GLOBALS"}["iilrmljxz"]}=$this->inventory->getItemInHand();}${${"GLOBALS"}["ctzqvxa"]}=new PlayerInteractEvent($this,${${"GLOBALS"}["nmryrkenju"]},${${"GLOBALS"}["gdwhlctpodo"]},$packet->face,PlayerInteractEvent::RIGHT_CLICK_AIR);${"GLOBALS"}["itnztdr"]="ev";$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["itnztdr"]});if($ev->isCancelled()){$this->inventory->sendHeldItem($this);break;}if($item->getId()===Item::FISHING_ROD){if($this->isFishing()){$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["gnodacyuno"]}=new PlayerUseFishingRodEvent($this,PlayerUseFishingRodEvent::ACTION_STOP_FISHING));}else{${"GLOBALS"}["qncythrfc"]="ev";$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["qncythrfc"]}=new PlayerUseFishingRodEvent($this,PlayerUseFishingRodEvent::ACTION_START_FISHING));}if(!$ev->isCancelled()){if($this->isFishing()){$this->setFishingHook();}else{$ebnvqfveed="nbt";$dxqlsvl="nbt";${$dxqlsvl}=new CompoundTag("",["Pos"=>new ListTag("Pos",[new DoubleTag("",$this->x),new DoubleTag("",$this->y+$this->getEyeHeight()),new DoubleTag("",$this->z)]),"Motion"=>new ListTag("Motion",[new DoubleTag("",-sin($this->yaw/180*M_PI)*cos($this->pitch/180*M_PI)),new DoubleTag("",-sin($this->pitch/180*M_PI)),new DoubleTag("",cos($this->yaw/180*M_PI)*cos($this->pitch/180*M_PI))]),"Rotation"=>new ListTag("Rotation",[new FloatTag("",$this->yaw),new FloatTag("",$this->pitch)])]);${${"GLOBALS"}["npvozhe"]}=0.5;$this->fishingHook=new FishingHook($this->chunk,${$ebnvqfveed},$this,$this->getId());$this->fishingHook->setMotion($this->fishingHook->getMotion()->multiply(${${"GLOBALS"}["npvozhe"]}));$this->fishingHook->spawnToAll();}}}elseif($item->getId()===Item::SNOWBALL){${"GLOBALS"}["gptgfuxorn"]="nbt";${"GLOBALS"}["dchdfzr"]="f";$oocjhw="f";${${"GLOBALS"}["efjvqop"]}=new CompoundTag("",["Pos"=>new ListTag("Pos",[new DoubleTag("",$this->x),new DoubleTag("",$this->y+$this->getEyeHeight()),new DoubleTag("",$this->z)]),"Motion"=>new ListTag("Motion",[new DoubleTag("",-sin($this->yaw/180*M_PI)*cos($this->pitch/180*M_PI)),new DoubleTag("",-sin($this->pitch/180*M_PI)),new DoubleTag("",cos($this->yaw/180*M_PI)*cos($this->pitch/180*M_PI))]),"Rotation"=>new ListTag("Rotation",[new FloatTag("",$this->yaw),new FloatTag("",$this->pitch)]),]);${${"GLOBALS"}["dchdfzr"]}=1.5;${${"GLOBALS"}["vpiizyx"]}=Entity::createEntity("Snowball",$this->chunk,${${"GLOBALS"}["gptgfuxorn"]},$this);$snowball->setMotion($snowball->getMotion()->multiply(${$oocjhw}));if($this->isSurvival()){$item->setCount($item->getCount()-1);$this->inventory->setItemInHand($item->getCount()>0?${${"GLOBALS"}["iilrmljxz"]}:Item::get(Item::AIR));}if(${${"GLOBALS"}["vpiizyx"]} instanceof Projectile){${"GLOBALS"}["aqykouphh"]="projectileEv";${"GLOBALS"}["lpmlxybo"]="snowball";$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["aqykouphh"]}=new ProjectileLaunchEvent(${${"GLOBALS"}["lpmlxybo"]}));if($projectileEv->isCancelled()){$snowball->kill();}else{$snowball->spawnToAll();$this->level->addSound(new LaunchSound($this),$this->getViewers());}}else{$snowball->spawnToAll();}}elseif($item->getId()===Item::EGG){$bdlapfc="nbt";${"GLOBALS"}["bcvcjghwsi"]="f";${$bdlapfc}=new CompoundTag("",["Pos"=>new ListTag("Pos",[new DoubleTag("",$this->x),new DoubleTag("",$this->y+$this->getEyeHeight()),new DoubleTag("",$this->z)]),"Motion"=>new ListTag("Motion",[new DoubleTag("",-sin($this->yaw/180*M_PI)*cos($this->pitch/180*M_PI)),new DoubleTag("",-sin($this->pitch/180*M_PI)),new DoubleTag("",cos($this->yaw/180*M_PI)*cos($this->pitch/180*M_PI))]),"Rotation"=>new ListTag("Rotation",[new FloatTag("",$this->yaw),new FloatTag("",$this->pitch)]),]);${${"GLOBALS"}["npvozhe"]}=1.5;${${"GLOBALS"}["pswppcq"]}=Entity::createEntity("Egg",$this->chunk,${${"GLOBALS"}["efjvqop"]},$this);$egg->setMotion($egg->getMotion()->multiply(${${"GLOBALS"}["bcvcjghwsi"]}));if($this->isSurvival()){$item->setCount($item->getCount()-1);$this->inventory->setItemInHand($item->getCount()>0?${${"GLOBALS"}["iilrmljxz"]}:Item::get(Item::AIR));}if(${${"GLOBALS"}["pswppcq"]} instanceof Projectile){$eeeflhcqssaj="egg";$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["decolrthvxs"]}=new ProjectileLaunchEvent(${$eeeflhcqssaj}));if($projectileEv->isCancelled()){$egg->kill();}else{$egg->spawnToAll();$this->level->addSound(new LaunchSound($this),$this->getViewers());}}else{$egg->spawnToAll();}}elseif($item->getId()==Item::ENCHANTING_BOTTLE){${"GLOBALS"}["qumnmbsd"]="f";${"GLOBALS"}["vmkogbjdhfa"]="f";${${"GLOBALS"}["efjvqop"]}=new CompoundTag("",["Pos"=>new ListTag("Pos",[new DoubleTag("",$this->x),new DoubleTag("",$this->y+$this->getEyeHeight()),new DoubleTag("",$this->z)]),"Motion"=>new ListTag("Motion",[new DoubleTag("",-sin($this->yaw/180*M_PI)*cos($this->pitch/180*M_PI)),new DoubleTag("",-sin($this->pitch/180*M_PI)),new DoubleTag("",cos($this->yaw/180*M_PI)*cos($this->pitch/180*M_PI))]),"Rotation"=>new ListTag("Rotation",[new FloatTag("",$this->yaw),new FloatTag("",$this->pitch)]),]);${${"GLOBALS"}["qumnmbsd"]}=1.1;${"GLOBALS"}["rfxshkkdd"]="thrownExpBottle";${${"GLOBALS"}["vfoysqgh"]}=new ThrownExpBottle($this->chunk,${${"GLOBALS"}["efjvqop"]},$this);$thrownExpBottle->setMotion($thrownExpBottle->getMotion()->multiply(${${"GLOBALS"}["vmkogbjdhfa"]}));if($this->isSurvival()){${"GLOBALS"}["nqxixgtgnb"]="item";$item->setCount($item->getCount()-1);$this->inventory->setItemInHand($item->getCount()>0?${${"GLOBALS"}["nqxixgtgnb"]}:Item::get(Item::AIR));}if(${${"GLOBALS"}["rfxshkkdd"]} instanceof Projectile){$fnchhdyyb="projectileEv";$bgvbahv="thrownExpBottle";$this->server->getPluginManager()->callEvent(${$fnchhdyyb}=new ProjectileLaunchEvent(${$bgvbahv}));if($projectileEv->isCancelled()){$thrownExpBottle->kill();}else{$thrownExpBottle->spawnToAll();$this->level->addSound(new LaunchSound($this),$this->getViewers());}}else{$thrownExpBottle->spawnToAll();}}elseif($item->getId()==Item::SPLASH_POTION and$this->server->allowSplashPotion){${"GLOBALS"}["ywllzmuytll"]="nbt";${"GLOBALS"}["numwuhvslmj"]="thrownPotion";$xoeyauudmxti="f";${"GLOBALS"}["nxergjmona"]="nbt";${"GLOBALS"}["vaboptlkn"]="thrownPotion";${${"GLOBALS"}["ywllzmuytll"]}=new CompoundTag("",["Pos"=>new ListTag("Pos",[new DoubleTag("",$this->x),new DoubleTag("",$this->y+$this->getEyeHeight()),new DoubleTag("",$this->z)]),"Motion"=>new ListTag("Motion",[new DoubleTag("",-sin($this->yaw/180*M_PI)*cos($this->pitch/180*M_PI)),new DoubleTag("",-sin($this->pitch/180*M_PI)),new DoubleTag("",cos($this->yaw/180*M_PI)*cos($this->pitch/180*M_PI))]),"Rotation"=>new ListTag("Rotation",[new FloatTag("",$this->yaw),new FloatTag("",$this->pitch)]),"PotionId"=>new ShortTag("PotionId",$item->getDamage()),]);${$xoeyauudmxti}=1.1;${${"GLOBALS"}["numwuhvslmj"]}=new ThrownPotion($this->chunk,${${"GLOBALS"}["nxergjmona"]},$this);$thrownPotion->setMotion($thrownPotion->getMotion()->multiply(${${"GLOBALS"}["npvozhe"]}));if($this->isSurvival()){${"GLOBALS"}["juxeaptjyoa"]="item";$item->setCount($item->getCount()-1);$this->inventory->setItemInHand($item->getCount()>0?${${"GLOBALS"}["juxeaptjyoa"]}:Item::get(Item::AIR));}if(${${"GLOBALS"}["vaboptlkn"]} instanceof Projectile){${"GLOBALS"}["woamcosve"]="projectileEv";$idonqvsk="thrownPotion";$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["woamcosve"]}=new ProjectileLaunchEvent(${$idonqvsk}));if($projectileEv->isCancelled()){$thrownPotion->kill();}else{$thrownPotion->spawnToAll();$this->level->addSound(new LaunchSound($this),$this->getViewers());}}else{$thrownPotion->spawnToAll();}}$this->setDataFlag(self::DATA_FLAGS,self::DATA_FLAG_ACTION,true);$this->startAction=$this->server->getTick();}break;case ProtocolInfo::PLAYER_ACTION_PACKET:case\pocketmine\network\protocol\p70\Info::PLAYER_ACTION_PACKET:if($this->spawned===false or$this->blocked===true or(!$this->isAlive()and$packet->action!==PlayerActionPacket::ACTION_SPAWN_SAME_DIMENSION and$packet->action!==PlayerActionPacket::ACTION_SPAWN_OVERWORLD)){break;}$packet->eid=$this->id;${${"GLOBALS"}["fptryekpvb"]}=new Vector3($packet->x,$packet->y,$packet->z);switch($packet->action){case PlayerActionPacket::ACTION_START_BREAK:if($pos->distanceSquared($this)>10000){break;}${$wriiralyooi}=$this->level->getBlock(${${"GLOBALS"}["cyetjetd"]});${${"GLOBALS"}["gnodacyuno"]}=new PlayerInteractEvent($this,$this->inventory->getItemInHand(),${${"GLOBALS"}["wfxmjux"]},$packet->face,$target->getId()===0?PlayerInteractEvent::LEFT_CLICK_AIR:PlayerInteractEvent::LEFT_CLICK_BLOCK);$this->getServer()->getPluginManager()->callEvent(${${"GLOBALS"}["gnodacyuno"]});if(!$ev->isCancelled()){${${"GLOBALS"}["nunlybjei"]}=$target->getSide($packet->face);if(${${"GLOBALS"}["nunlybjei"]} instanceof Fire){$side->getLevel()->setBlock(${${"GLOBALS"}["nunlybjei"]},new Air());}$this->lastBreak=microtime(true);}else{$this->inventory->sendHeldItem($this);}break;case PlayerActionPacket::ACTION_ABORT_BREAK:$this->lastBreak=PHP_INT_MAX;break;case PlayerActionPacket::ACTION_RELEASE_ITEM:if($this->startAction>-1 and$this->getDataFlag(self::DATA_FLAGS,self::DATA_FLAG_ACTION)){if($this->inventory->getItemInHand()->getId()===Item::BOW){${"GLOBALS"}["btmbrsxmz"]="bow";${"GLOBALS"}["fylpsi"]="diff";${${"GLOBALS"}["btmbrsxmz"]}=$this->inventory->getItemInHand();${"GLOBALS"}["eytuuxdt"]="item";${"GLOBALS"}["ozeuvbeq"]="arrow";if($this->isSurvival()and!$this->inventory->contains(Item::get(Item::ARROW,null))){$this->inventory->sendContents($this);break;}${${"GLOBALS"}["lfomvczyw"]}=false;foreach($this->inventory->getContents()as${${"GLOBALS"}["eytuuxdt"]}){if($item->getId()==Item::ARROW){${${"GLOBALS"}["lfomvczyw"]}=${${"GLOBALS"}["iilrmljxz"]};}}${"GLOBALS"}["vvquhxnzv"]="f";${"GLOBALS"}["lmqwtlvxxdg"]="nbt";if(${${"GLOBALS"}["lfomvczyw"]}===false and$this->isCreative()){${${"GLOBALS"}["lfomvczyw"]}=Item::get(Item::ARROW,0,1);}elseif(${${"GLOBALS"}["ozeuvbeq"]}===false){break;}${${"GLOBALS"}["lmqwtlvxxdg"]}=new CompoundTag("",["Pos"=>new ListTag("Pos",[new DoubleTag("",$this->x),new DoubleTag("",$this->y+$this->getEyeHeight()),new DoubleTag("",$this->z)]),"Motion"=>new ListTag("Motion",[new DoubleTag("",-sin($this->yaw/180*M_PI)*cos($this->pitch/180*M_PI)),new DoubleTag("",-sin($this->pitch/180*M_PI)),new DoubleTag("",cos($this->yaw/180*M_PI)*cos($this->pitch/180*M_PI))]),"Rotation"=>new ListTag("Rotation",[new FloatTag("",$this->yaw),new FloatTag("",$this->pitch)]),"Fire"=>new ShortTag("Fire",$this->isOnFire()?45*60:0),"Potion"=>new ShortTag("Potion",$arrow->getDamage())]);${"GLOBALS"}["hkbhmipx"]="f";${${"GLOBALS"}["fylpsi"]}=($this->server->getTick()-$this->startAction);${"GLOBALS"}["popjrksiey"]="diff";${${"GLOBALS"}["yutppkq"]}=${${"GLOBALS"}["popjrksiey"]}/20;${"GLOBALS"}["lxpgjjxo"]="ev";${${"GLOBALS"}["npvozhe"]}=min(((${${"GLOBALS"}["yutppkq"]}**2)+${${"GLOBALS"}["yutppkq"]}*2)/3,1)*2;${${"GLOBALS"}["lxpgjjxo"]}=new EntityShootBowEvent($this,${${"GLOBALS"}["mqtriatucqk"]},Entity::createEntity("Arrow",$this->chunk,${${"GLOBALS"}["efjvqop"]},$this,${${"GLOBALS"}["npvozhe"]}==2?true:false),${${"GLOBALS"}["hkbhmipx"]});if(${${"GLOBALS"}["vvquhxnzv"]}<0.1 or${${"GLOBALS"}["qcvvxkyceyrn"]}<5){$ev->setCancelled();}$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["gnodacyuno"]});if($ev->isCancelled()){$ev->getProjectile()->kill();$this->inventory->sendContents($this);}else{$ev->getProjectile()->setMotion($ev->getProjectile()->getMotion()->multiply($ev->getForce()));if($this->isSurvival()){$this->inventory->removeItem(Item::get(Item::ARROW,$arrow->getDamage(),1));$bow->setDamage($bow->getDamage()+1);if($bow->getDamage()>=385){$this->inventory->setItemInHand(Item::get(Item::AIR,0,0));}else{$this->inventory->setItemInHand(${${"GLOBALS"}["mqtriatucqk"]});}}if($ev->getProjectile()instanceof Projectile){$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["decolrthvxs"]}=new ProjectileLaunchEvent($ev->getProjectile()));if($projectileEv->isCancelled()){$ev->getProjectile()->kill();}else{$ev->getProjectile()->spawnToAll();$this->level->addSound(new LaunchSound($this),$this->getViewers());}}else{$ev->getProjectile()->spawnToAll();}}}}elseif($this->inventory->getItemInHand()->getId()===Item::BUCKET and$this->inventory->getItemInHand()->getDamage()===1){${"GLOBALS"}["xtlamtu"]="pk";${"GLOBALS"}["vemdzqk"]="ev";$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["vemdzqk"]}=new PlayerItemConsumeEvent($this,$this->inventory->getItemInHand()));if($ev->isCancelled()){$this->inventory->sendContents($this);break;}${"GLOBALS"}["wyuwkkn"]="pk";${${"GLOBALS"}["wyuwkkn"]}=new EntityEventPacket();$pk->eid=$this->getId();$pk->event=EntityEventPacket::USE_ITEM;$this->dataPacket(${${"GLOBALS"}["xtlamtu"]});Server::broadcastPacket($this->getViewers(),${${"GLOBALS"}["wzarnypqog"]});if($this->isSurvival()){${${"GLOBALS"}["vgatxryzd"]}=$this->inventory->getItemInHand();--$slot->count;$this->inventory->setItemInHand(${${"GLOBALS"}["vgatxryzd"]});$this->inventory->addItem(Item::get(Item::BUCKET,0,1));}$this->removeAllEffects();}else{$this->inventory->sendContents($this);}break;case PlayerActionPacket::ACTION_STOP_SLEEPING:$this->stopSleep();break;case PlayerActionPacket::ACTION_SPAWN_SAME_DIMENSION:case PlayerActionPacket::ACTION_SPAWN_OVERWORLD:if($this->isAlive()or!$this->isOnline()){break;}if($this->server->isHardcore()){$this->setBanned(true);break;}$this->craftingType=self::CRAFTING_SMALL;if($this->server->netherEnabled){if($this->level==$this->server->netherLevel){${"GLOBALS"}["blhttvo"]="pos";$this->teleport(${${"GLOBALS"}["blhttvo"]}=$this->server->getDefaultLevel()->getSafeSpawn());}}$this->server->getPluginManager()->callEvent(${$zujlqycwtwa}=new PlayerRespawnEvent($this,$this->getSpawn()));$this->teleport($ev->getRespawnPosition());$this->setSprinting(false);$this->setSneaking(false);$this->extinguish();$this->setDataProperty(self::DATA_AIR,self::DATA_TYPE_SHORT,300);$this->deadTicks=0;$this->noDamageTicks=60;$this->removeAllEffects();$this->setHealth($this->getMaxHealth());$this->setFood(20);$this->starvationTick=0;$this->foodTick=0;$this->foodUsageTime=0;$this->sendData($this);$this->sendSettings();$this->inventory->sendContents($this);$this->inventory->sendArmorContents($this);$this->blocked=false;$this->spawnToAll();$this->scheduleUpdate();break;case PlayerActionPacket::ACTION_START_SPRINT:${${"GLOBALS"}["osaeqdcdfeoh"]}=new PlayerToggleSprintEvent($this,true);$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["gnodacyuno"]});if($ev->isCancelled()){$this->sendData($this);}else{$this->setSprinting(true);}break 2;case PlayerActionPacket::ACTION_STOP_SPRINT:${${"GLOBALS"}["gnodacyuno"]}=new PlayerToggleSprintEvent($this,false);$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["gnodacyuno"]});if($ev->isCancelled()){$this->sendData($this);}else{$this->setSprinting(false);}break 2;case PlayerActionPacket::ACTION_START_SNEAK:${${"GLOBALS"}["olbqdh"]}=new PlayerToggleSneakEvent($this,true);$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["xyeblvs"]});if($ev->isCancelled()){$this->sendData($this);}else{$this->setSneaking(true);}break 2;case PlayerActionPacket::ACTION_STOP_SNEAK:${${"GLOBALS"}["gnodacyuno"]}=new PlayerToggleSneakEvent($this,false);$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["kivknjnbdodf"]});if($ev->isCancelled()){$this->sendData($this);}else{$this->setSneaking(false);}break 2;case PlayerActionPacket::ACTION_JUMP:break 2;}$this->startAction=-1;$this->setDataFlag(self::DATA_FLAGS,self::DATA_FLAG_ACTION,false);break;case ProtocolInfo::REMOVE_BLOCK_PACKET:case\pocketmine\network\protocol\p70\Info::REMOVE_BLOCK_PACKET:if($this->spawned===false or$this->blocked===true or!$this->isAlive()){break;}$this->craftingType=self::CRAFTING_SMALL;${${"GLOBALS"}["dnfqdtv"]}=new Vector3($packet->x,$packet->y,$packet->z);${$divljmcxvysr}=$this->inventory->getItemInHand();${$injbhxv}=clone${${"GLOBALS"}["iilrmljxz"]};if($this->canInteract($vector->add(0.5,0.5,0.5),$this->isCreative()?13:6)and$this->level->useBreakOn(${${"GLOBALS"}["ingfonkjrqqo"]},${${"GLOBALS"}["iilrmljxz"]},$this,$this->server->destroyBlockParticle)){if($this->isSurvival()){if(!$item->equals(${${"GLOBALS"}["rbnnoik"]})or$item->getCount()!==$oldItem->getCount()){$stwzlj="item";$this->inventory->setItemInHand(${$stwzlj});$this->inventory->sendHeldItem($this);}$this->exhaust(0.025,PlayerExhaustEvent::CAUSE_MINING);}break;}$this->inventory->sendContents($this);${$mmknnvlj}=$this->level->getBlock(${${"GLOBALS"}["utxbsmlripb"]});${${"GLOBALS"}["ijkmfoc"]}=$this->level->getTile(${${"GLOBALS"}["dnfqdtv"]});$this->level->sendBlocks([$this],[${${"GLOBALS"}["ljnlmdvwvr"]}],UpdateBlockPacket::FLAG_ALL_PRIORITY);$this->inventory->sendHeldItem($this);if(${$llujkwq} instanceof Spawnable){$tile->spawnTo($this);}break;case ProtocolInfo::MOB_ARMOR_EQUIPMENT_PACKET:case\pocketmine\network\protocol\p70\Info::MOB_ARMOR_EQUIPMENT_PACKET:break;case ProtocolInfo::INTERACT_PACKET:case\pocketmine\network\protocol\p70\Info::INTERACT_PACKET:if($this->spawned===false or!$this->isAlive()or$this->blocked){break;}$this->craftingType=self::CRAFTING_SMALL;${${"GLOBALS"}["ljnlmdvwvr"]}=$this->level->getEntity($packet->target);${${"GLOBALS"}["ssbmmrondv"]}=false;if(${${"GLOBALS"}["tcrjxbkprpge"]} instanceof Player and$this->server->getConfigBoolean("pvp",true)===false){$ndyfgnmimy="cancelled";${$ndyfgnmimy}=true;}if(${${"GLOBALS"}["hlrdnngmxvgc"]} instanceof Boat or(${${"GLOBALS"}["ljnlmdvwvr"]} instanceof Minecart and$target->getType()==Minecart::TYPE_NORMAL)){if($packet->action===InteractPacket::ACTION_RIGHT_CLICK){$this->linkEntity(${${"GLOBALS"}["ljnlmdvwvr"]});}elseif($packet->action===InteractPacket::ACTION_LEFT_CLICK){$fuollkt="target";if($this->linkedEntity==${$fuollkt}){$target->setLinked(0,$this);}$target->close();}elseif($packet->action===InteractPacket::ACTION_LEAVE_VEHICLE){$this->setLinked(0,${${"GLOBALS"}["ljnlmdvwvr"]});}return;}if($packet->action===InteractPacket::ACTION_RIGHT_CLICK){${"GLOBALS"}["vrewauzv"]="target";if(${${"GLOBALS"}["vrewauzv"]} instanceof Animal and$this->getInventory()->getItemInHand()){}break;}if(${$vgybaoxd} instanceof Entity and$this->getGamemode()!==Player::VIEW and$this->isAlive()and$target->isAlive()){${"GLOBALS"}["sdcttoif"]="item";if(${${"GLOBALS"}["ljnlmdvwvr"]} instanceof DroppedItem or${${"GLOBALS"}["ljnlmdvwvr"]} instanceof Arrow){$this->kick("Attempting to attack an invalid entity");$this->server->getLogger()->warning($this->getServer()->getLanguage()->translateString("pocketmine.player.invalidEntity",[$this->getName()]));break;}${"GLOBALS"}["ynmiggc"]="damage";$dtrcxwllyevd="target";$tjvynfcqr="target";${"GLOBALS"}["orlvagn"]="ev";$dzluvggzuma="target";${${"GLOBALS"}["sdcttoif"]}=$this->inventory->getItemInHand();${${"GLOBALS"}["ynmiggc"]}=[EntityDamageEvent::MODIFIER_BASE=>$item->getModifyAttackDamage(${$dzluvggzuma}),];$nrcewgtq="damage";$wlfmnw="cancelled";if(!$this->canInteract(${${"GLOBALS"}["ljnlmdvwvr"]},8)){${"GLOBALS"}["olitiqmycjyu"]="cancelled";${${"GLOBALS"}["olitiqmycjyu"]}=true;}elseif(${$dtrcxwllyevd} instanceof Player){if(($target->getGamemode()&0x01)>0){break;}elseif($this->server->getConfigBoolean("pvp")!==true or$this->server->getDifficulty()===0){${${"GLOBALS"}["ssbmmrondv"]}=true;}}${${"GLOBALS"}["orlvagn"]}=new EntityDamageByEntityEvent($this,${$tjvynfcqr},EntityDamageEvent::CAUSE_ENTITY_ATTACK,${$nrcewgtq},0.4+$item->getEnchantmentLevel(Enchantment::TYPE_WEAPON_KNOCKBACK)*0.15);${"GLOBALS"}["rjdhjluv"]="ev";if(${$wlfmnw}){$ev->setCancelled();}if($target->attack($ev->getFinalDamage(),${${"GLOBALS"}["rjdhjluv"]})===true){${${"GLOBALS"}["orbkwmwke"]}=$item->getEnchantmentLevel(Enchantment::TYPE_WEAPON_FIRE_ASPECT);if(${${"GLOBALS"}["orbkwmwke"]}>0){${"GLOBALS"}["zlmcxqpulc"]="target";${${"GLOBALS"}["xugvpoy"]}=new EntityCombustByEntityEvent($this,${${"GLOBALS"}["zlmcxqpulc"]},${${"GLOBALS"}["orbkwmwke"]}*4,$ev->getFireProtectL());Server::getInstance()->getPluginManager()->callEvent(${${"GLOBALS"}["xugvpoy"]});if(!$fireEv->isCancelled()){$target->setOnFire($fireEv->getDuration());}}if($this->isSurvival()){$ev->createThornsDamage();if($ev->getThornsDamage()>0){$igmlltvne="target";$tqkbvqos="thornsEvent";${$tqkbvqos}=new EntityDamageByEntityEvent(${$igmlltvne},$this,EntityDamageEvent::CAUSE_ENTITY_ATTACK,$ev->getThornsDamage(),0);if(!$thornsEvent->isCancelled()){if($this->attack($thornsEvent->getFinalDamage(),${${"GLOBALS"}["rdwyqprhnd"]})===true){}};}}}if($ev->isCancelled()){if($item->isTool()and$this->isSurvival()){$this->inventory->sendContents($this);}break;}if($this->isSurvival()){if($item->isTool()){$fcbjtqcqlqrx="target";if($item->useOn(${$fcbjtqcqlqrx})and$item->getDamage()>=$item->getMaxDurability()){$this->inventory->setItemInHand(Item::get(Item::AIR,0,1));}else{$this->inventory->setItemInHand(${${"GLOBALS"}["iilrmljxz"]});}}$this->exhaust(0.3,PlayerExhaustEvent::CAUSE_ATTACK);}}break;case ProtocolInfo::ANIMATE_PACKET:case\pocketmine\network\protocol\p70\Info::ANIMATE_PACKET:if($this->spawned===false or!$this->isAlive()){break;}$this->server->getPluginManager()->callEvent(${$bkijhpyis}=new PlayerAnimationEvent($this,$packet->action));if($ev->isCancelled()){break;}${$iwhonkg}=new AnimatePacket();$pk->eid=$this->getId();$pk->action=$ev->getAnimationType();Server::broadcastPacket($this->getViewers(),${$drffdpgi});break;case ProtocolInfo::SET_HEALTH_PACKET:case\pocketmine\network\protocol\p70\Info::SET_HEALTH_PACKET:break;case ProtocolInfo::ENTITY_EVENT_PACKET:case\pocketmine\network\protocol\p70\Info::ENTITY_EVENT_PACKET:if($this->spawned===false or$this->blocked===true or!$this->isAlive()){break;}$this->craftingType=self::CRAFTING_SMALL;$this->setDataFlag(self::DATA_FLAGS,self::DATA_FLAG_ACTION,false);switch($packet->event){case EntityEventPacket::USE_ITEM:${${"GLOBALS"}["vgatxryzd"]}=$this->inventory->getItemInHand();if($slot->canBeConsumed()){$cdpejh="slot";${${"GLOBALS"}["gnodacyuno"]}=new PlayerItemConsumeEvent($this,${$cdpejh});if(!$slot->canBeConsumedBy($this)){$ev->setCancelled();}$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["gnodacyuno"]});if(!$ev->isCancelled()){$slot->onConsume($this);}else{$this->inventory->sendContents($this);}}break;}break;case ProtocolInfo::DROP_ITEM_PACKET:case\pocketmine\network\protocol\p70\Info::DROP_ITEM_PACKET:if($this->spawned===false or$this->blocked===true or!$this->isAlive()){break;}if($packet->item->getId()===Item::AIR){break;}if(($this->isCreative()and$this->server->limitedCreative)){break;}$this->getTransactionQueue()->addTransaction(new DropItemTransaction($packet->item));break;case ProtocolInfo::TEXT_PACKET:case\pocketmine\network\protocol\p70\Info::TEXT_PACKET:if($this->spawned===false or!$this->isAlive()){break;}$this->craftingType=self::CRAFTING_SMALL;if($packet->type===TextPacket::TYPE_CHAT){$packet->message=TextFormat::clean($packet->message,$this->removeFormat);foreach(explode("\n",$packet->message)as${${"GLOBALS"}["vejqusgvsjmr"]}){$elqfqu="message";if(trim(${$elqfqu})!=""and strlen(${${"GLOBALS"}["vejqusgvsjmr"]})<=255 and$this->messageCounter-->0){${"GLOBALS"}["tualkrsmzg"]="ev";${${"GLOBALS"}["tualkrsmzg"]}=new PlayerCommandPreprocessEvent($this,${${"GLOBALS"}["vejqusgvsjmr"]});${"GLOBALS"}["wbflbrvhk"]="ev";if(mb_strlen($ev->getMessage(),"UTF-8")>320){$ev->setCancelled();}$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["wbflbrvhk"]});if($ev->isCancelled()){break;}if(substr($ev->getMessage(),0,1)==="/"){Timings::$playerCommandTimer->startTiming();$this->server->dispatchCommand($ev->getPlayer(),substr($ev->getMessage(),1));Timings::$playerCommandTimer->stopTiming();}else{$whefimhi="ev";$this->server->getPluginManager()->callEvent(${$whefimhi}=new PlayerChatEvent($this,$ev->getMessage()));if(!$ev->isCancelled()){$this->server->broadcastMessage($this->getServer()->getLanguage()->translateString($ev->getFormat(),[$ev->getPlayer()->getDisplayName(),$ev->getMessage()]),$ev->getRecipients());}}}}}break;case ProtocolInfo::CONTAINER_CLOSE_PACKET:case\pocketmine\network\protocol\p70\Info::CONTAINER_CLOSE_PACKET:if($this->spawned===false or$packet->windowid===0){break;}$this->craftingType=self::CRAFTING_SMALL;if(isset($this->windowIndex[$packet->windowid])){$this->server->getPluginManager()->callEvent(new InventoryCloseEvent($this->windowIndex[$packet->windowid],$this));$this->removeWindow($this->windowIndex[$packet->windowid]);}foreach($this->getFloatingInventory()->getContents()as${${"GLOBALS"}["jecskzubn"]}){$this->getTransactionQueue()->addTransaction(new DropItemTransaction(${${"GLOBALS"}["iilrmljxz"]}));}break;case ProtocolInfo::CRAFTING_EVENT_PACKET:case\pocketmine\network\protocol\p70\Info::CRAFTING_EVENT_PACKET:if($this->spawned===false or!$this->isAlive()){break;}${${"GLOBALS"}["nvkxnwvhd"]}=$this->server->getCraftingManager()->getRecipe($packet->id);if($this->craftingType===self::CRAFTING_ANVIL){$rjbhfemcu="recipe";${${"GLOBALS"}["hgmhrnrjon"]}=$this->windowIndex[$packet->windowId]??null;if(${${"GLOBALS"}["hgmhrnrjon"]}===null){foreach($this->windowIndex as${${"GLOBALS"}["axzwln"]}){if(${${"GLOBALS"}["axzwln"]} instanceof AnvilInventory){${"GLOBALS"}["ltpnpwrzb"]="anvilInventory";$hedjggykix="window";${${"GLOBALS"}["ltpnpwrzb"]}=${$hedjggykix};break;}}if(${${"GLOBALS"}["hgmhrnrjon"]}===null){$this->getServer()->getLogger()->debug("Couldn't find an anvil window for ".$this->getName().", exiting");$this->inventory->sendContents($this);break;}}if(${$rjbhfemcu}===null){if(!$anvilInventory->onRename($this,$packet->output[0])){$this->getServer()->getLogger()->debug($this->getName()." failed to rename an item in an anvil");$this->inventory->sendContents($this);}}else{}break;}elseif((${$ijrepr} instanceof BigShapelessRecipe or${${"GLOBALS"}["gyqpqnr"]} instanceof BigShapedRecipe)and$this->craftingType===0){$this->server->getLogger()->debug("Received big crafting recipe from ".$this->getName()." with no crafting table open");$this->inventory->sendContents($this);break;}elseif(${${"GLOBALS"}["dfrvwpi"]}===null){$this->server->getLogger()->debug("Null (unknown) crafting recipe received from ".$this->getName()." for ".$packet->output[0]);$this->inventory->sendContents($this);break;}foreach($packet->input as${${"GLOBALS"}["nncbdmdp"]}=>${${"GLOBALS"}["xinyqdi"]}){if($item->getDamage()===-1 or$item->getDamage()===0xffff){$item->setDamage(null);}if(${${"GLOBALS"}["yicyexuhqi"]}<9 and$item->getId()>0){$item->setCount(1);}}${${"GLOBALS"}["qbhrokkecsmn"]}=true;if(count($packet->input)===0){${"GLOBALS"}["gscnndyqrp"]="possibleRecipes";$bwomqfwi="recipe";${${"GLOBALS"}["gscnndyqrp"]}=$this->server->getCraftingManager()->getRecipesByResult($packet->output[0]);if(!$packet->output[0]->deepEquals($recipe->getResult())){$this->server->getLogger()->debug("Mismatched desktop recipe received from player ".$this->getName().", expected ".$recipe->getResult().", got ".$packet->output[0]);}${$bwomqfwi}=null;foreach(${${"GLOBALS"}["adicrnq"]} as${${"GLOBALS"}["odnecvfhuz"]}){${"GLOBALS"}["noszoiudfr"]="floatingInventory";${${"GLOBALS"}["noszoiudfr"]}=clone$this->floatingInventory;${${"GLOBALS"}["icvtatikpgn"]}=$r->getIngredientList();foreach(${${"GLOBALS"}["icvtatikpgn"]} as${${"GLOBALS"}["tppwguly"]}){${"GLOBALS"}["bjdwjax"]="ingredient";if(!$floatingInventory->contains(${${"GLOBALS"}["bjdwjax"]})){${${"GLOBALS"}["qbhrokkecsmn"]}=false;break;}$wvquuzeix="ingredient";$floatingInventory->removeItem(${$wvquuzeix});}if(${${"GLOBALS"}["qbhrokkecsmn"]}){${"GLOBALS"}["usfynppqljk"]="r";$gtxopapt="recipe";${$gtxopapt}=${${"GLOBALS"}["usfynppqljk"]};break;}}if(${${"GLOBALS"}["nvkxnwvhd"]}!==null){$jjxcertfksn="ingredients";$jjdrjyhsgj="recipe";$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["gnodacyuno"]}=new CraftItemEvent($this,${$jjxcertfksn},${$jjdrjyhsgj}));if($ev->isCancelled()){$this->inventory->sendContents($this);break;}$this->floatingInventory=${${"GLOBALS"}["qkfywpzvbxtk"]};$this->floatingInventory->addItem(clone$recipe->getResult());}else{$this->server->getLogger()->debug("Unmatched desktop crafting recipe ".$packet->id." from player ".$this->getName());$this->inventory->sendContents($this);break;}}else{${"GLOBALS"}["qamiqylfkaif"]="result";${"GLOBALS"}["kongyktd"]="recipe";$qeennkqjnh="ingredients";${"GLOBALS"}["suhivdsp"]="used";$jpuynbuw="count";${"GLOBALS"}["ajkugv"]="canCraft";if(${${"GLOBALS"}["nvkxnwvhd"]} instanceof ShapedRecipe){${"GLOBALS"}["mpylgxxlzaj"]="x";${"GLOBALS"}["itdoxorkp"]="canCraft";for(${${"GLOBALS"}["emtgqqv"]}=0;${${"GLOBALS"}["emtgqqv"]}<3 and${${"GLOBALS"}["itdoxorkp"]};++${${"GLOBALS"}["mpylgxxlzaj"]}){$xtyruukwf="y";${"GLOBALS"}["surodpfirpg"]="y";for(${${"GLOBALS"}["mhoejwx"]}=0;${${"GLOBALS"}["surodpfirpg"]}<3;++${$xtyruukwf}){${"GLOBALS"}["ehtiolp"]="x";${${"GLOBALS"}["iilrmljxz"]}=$packet->input[${${"GLOBALS"}["mhoejwx"]}*3+${${"GLOBALS"}["emtgqqv"]}];${"GLOBALS"}["wtdelby"]="ingredient";${${"GLOBALS"}["tppwguly"]}=$recipe->getIngredient(${${"GLOBALS"}["ehtiolp"]},${${"GLOBALS"}["mhoejwx"]});if($item->getCount()>0 and$item->getId()>0){if(${${"GLOBALS"}["tppwguly"]}==null){${"GLOBALS"}["bnwskv"]="canCraft";${${"GLOBALS"}["bnwskv"]}=false;break;}if($ingredient->getId()!=0 and!$ingredient->deepEquals(${${"GLOBALS"}["iilrmljxz"]},$ingredient->getDamage()!==null,$ingredient->getCompoundTag()!==null)){${"GLOBALS"}["gkecdwtk"]="canCraft";${${"GLOBALS"}["gkecdwtk"]}=false;break;}}elseif(${${"GLOBALS"}["wtdelby"]}!==null and$item->getId()!==0){${"GLOBALS"}["csomupsgr"]="canCraft";${${"GLOBALS"}["csomupsgr"]}=false;break;}}}}elseif(${${"GLOBALS"}["kongyktd"]} instanceof ShapelessRecipe){$vlwdjtc="x";$yftzxefylp="needed";${$yftzxefylp}=$recipe->getIngredientList();${"GLOBALS"}["glxnctky"]="x";${"GLOBALS"}["ipleoliiqbc"]="canCraft";for(${${"GLOBALS"}["emtgqqv"]}=0;${$vlwdjtc}<3 and${${"GLOBALS"}["ipleoliiqbc"]};++${${"GLOBALS"}["glxnctky"]}){$rutdljfrpfwc="y";for(${${"GLOBALS"}["mhoejwx"]}=0;${$rutdljfrpfwc}<3;++${${"GLOBALS"}["mhoejwx"]}){${${"GLOBALS"}["iilrmljxz"]}=clone$packet->input[${${"GLOBALS"}["mhoejwx"]}*3+${${"GLOBALS"}["emtgqqv"]}];$ahbvglgbqw="needed";foreach(${$ahbvglgbqw} as${${"GLOBALS"}["ynhgqkpwt"]}=>${${"GLOBALS"}["eenngyqlwftm"]}){$ipjnerndbf="item";if($n->deepEquals(${$ipjnerndbf},$n->getDamage()!==null,$n->getCompoundTag()!==null)){${"GLOBALS"}["cimtmpf"]="remove";${${"GLOBALS"}["cimtmpf"]}=min($n->getCount(),$item->getCount());$n->setCount($n->getCount()-${${"GLOBALS"}["dfhgismzjwfr"]});$item->setCount($item->getCount()-${${"GLOBALS"}["dfhgismzjwfr"]});if($n->getCount()===0){unset(${${"GLOBALS"}["jtntyapuvy"]}[${${"GLOBALS"}["ynhgqkpwt"]}]);}}}if($item->getCount()>0){$bfhezttakj="canCraft";${$bfhezttakj}=false;break;}}}if(count(${${"GLOBALS"}["jtntyapuvy"]})>0){${${"GLOBALS"}["qbhrokkecsmn"]}=false;}}else{${"GLOBALS"}["jowyojsaqjq"]="canCraft";${${"GLOBALS"}["jowyojsaqjq"]}=false;}${${"GLOBALS"}["qbhrokkecsmn"]}=true;${"GLOBALS"}["ehjxcurf"]="extraItem";${$qeennkqjnh}=$packet->input;${${"GLOBALS"}["uzquuflimrlo"]}=$packet->output[0];${"GLOBALS"}["vnkjwaewujgx"]="used";if(!${${"GLOBALS"}["qbhrokkecsmn"]} or!$recipe->getResult()->deepEquals(${${"GLOBALS"}["qamiqylfkaif"]})){$qoburfrsfmn="result";$this->server->getLogger()->debug("Unmatched recipe ".$recipe->getId()." from player ".$this->getName().": expected ".$recipe->getResult().", got ".${$qoburfrsfmn}.", using: ".implode(", ",${${"GLOBALS"}["icvtatikpgn"]}));$this->inventory->sendContents($this);break;}${${"GLOBALS"}["vnkjwaewujgx"]}=array_fill(0,$this->inventory->getSize(),0);$apkjyu="ingredients";foreach(${${"GLOBALS"}["icvtatikpgn"]} as${${"GLOBALS"}["tppwguly"]}){$gkfwcbb="slot";$nkjtnuthr="slot";${"GLOBALS"}["nknoyo"]="index";${$nkjtnuthr}=-1;foreach($this->inventory->getContents()as${${"GLOBALS"}["nknoyo"]}=>${${"GLOBALS"}["yicyexuhqi"]}){${"GLOBALS"}["ffzhbui"]="used";if($ingredient->getId()!==0 and$ingredient->deepEquals(${${"GLOBALS"}["yicyexuhqi"]},$ingredient->getDamage()!==null)and($i->getCount()-${${"GLOBALS"}["ffzhbui"]}[${${"GLOBALS"}["vtsgjeil"]}])>=1){${${"GLOBALS"}["vgatxryzd"]}=${${"GLOBALS"}["vtsgjeil"]};${${"GLOBALS"}["oghxtukweu"]}[${${"GLOBALS"}["vtsgjeil"]}]++;break;}}if($ingredient->getId()!==0 and${$gkfwcbb}===-1){${${"GLOBALS"}["qbhrokkecsmn"]}=false;break;}}if(!${${"GLOBALS"}["ajkugv"]}){$this->server->getLogger()->debug("Unmatched recipe ".$recipe->getId()." from player ".$this->getName().": client does not have enough items, using: ".implode(", ",${${"GLOBALS"}["icvtatikpgn"]}));$this->inventory->sendContents($this);break;}$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["gnodacyuno"]}=new CraftItemEvent($this,${$apkjyu},${${"GLOBALS"}["nvkxnwvhd"]}));if($ev->isCancelled()){$this->inventory->sendContents($this);break;}foreach(${${"GLOBALS"}["suhivdsp"]} as${${"GLOBALS"}["vgatxryzd"]}=>${$jpuynbuw}){if(${${"GLOBALS"}["lgbcrlhcta"]}===0){continue;}${${"GLOBALS"}["iilrmljxz"]}=$this->inventory->getItem(${${"GLOBALS"}["vgatxryzd"]});if($item->getCount()>${${"GLOBALS"}["lgbcrlhcta"]}){${"GLOBALS"}["etnnpowpzdk"]="item";${"GLOBALS"}["xlslgrje"]="newItem";$ledwrbiupo="count";${${"GLOBALS"}["xlslgrje"]}=clone${${"GLOBALS"}["etnnpowpzdk"]};$newItem->setCount($item->getCount()-${$ledwrbiupo});}else{$xqggqtbon="newItem";${$xqggqtbon}=Item::get(Item::AIR,0,0);}$this->inventory->setItem(${${"GLOBALS"}["vgatxryzd"]},${${"GLOBALS"}["pdupogu"]});}${${"GLOBALS"}["rphvvygwidfx"]}=$this->inventory->addItem($recipe->getResult());if(count(${${"GLOBALS"}["ehjxcurf"]})>0 and!$this->isCreative()){${"GLOBALS"}["gytnftkueniz"]="extraItem";$qngyilrzfxd="item";foreach(${${"GLOBALS"}["gytnftkueniz"]} as${$qngyilrzfxd}){${"GLOBALS"}["ertzonyjsej"]="item";$this->level->dropItem($this,${${"GLOBALS"}["ertzonyjsej"]});}}}switch($recipe->getResult()->getId()){case Item::WORKBENCH:$this->awardAchievement("buildWorkBench");break;case Item::WOODEN_PICKAXE:$this->awardAchievement("buildPickaxe");break;case Item::FURNACE:$this->awardAchievement("buildFurnace");break;case Item::WOODEN_HOE:$this->awardAchievement("buildHoe");break;case Item::BREAD:$this->awardAchievement("makeBread");break;case Item::CAKE:$this->awardAchievement("bakeCake");$this->inventory->addItem(Item::get(Item::BUCKET,0,3));break;case Item::STONE_PICKAXE:case Item::GOLD_PICKAXE:case Item::IRON_PICKAXE:case Item::DIAMOND_PICKAXE:$this->awardAchievement("buildBetterPickaxe");break;case Item::WOODEN_SWORD:$this->awardAchievement("buildSword");break;case Item::DIAMOND:$this->awardAchievement("diamond");break;}break;case ProtocolInfo::CONTAINER_SET_SLOT_PACKET:case\pocketmine\network\protocol\p70\Info::CONTAINER_SET_SLOT_PACKET:if($this->spawned===false or$this->blocked===true or!$this->isAlive()){break;}if($packet->slot<0){break;}if($packet->windowid===0){if($packet->slot>=$this->inventory->getSize()){break;}${${"GLOBALS"}["wwyxljkd"]}=new BaseTransaction($this->inventory,$packet->slot,$packet->item);}elseif($packet->windowid===ContainerSetContentPacket::SPECIAL_ARMOR){if($packet->slot>=4){break;}${${"GLOBALS"}["wwyxljkd"]}=new BaseTransaction($this->inventory,$packet->slot+$this->inventory->getSize(),$packet->item);}elseif(isset($this->windowIndex[$packet->windowid])){$sbpjywy="inv";${"GLOBALS"}["mcnrkbtyam"]="inv";$bjfgfpkij="achievements";${"GLOBALS"}["ysvhwcvw"]="transaction";${${"GLOBALS"}["tgmviw"]}=$this->windowIndex[$packet->windowid];${$bjfgfpkij}=[];if(${$sbpjywy} instanceof FurnaceInventory and$inv->getItem($packet->slot)->getId()===Item::IRON_INGOT and$packet->slot===FurnaceInventory::RESULT){$agjkrqxi="achievements";${$agjkrqxi}[]="acquireIron";}elseif(${${"GLOBALS"}["tgmviw"]} instanceof EnchantInventory and$packet->item->hasEnchantments()){$inv->onEnchant($this,$inv->getItem($packet->slot),$packet->item);}${${"GLOBALS"}["ysvhwcvw"]}=new BaseTransaction(${${"GLOBALS"}["mcnrkbtyam"]},$packet->slot,$packet->item,${${"GLOBALS"}["ptsbchlgjw"]});}else{break;}$this->getTransactionQueue()->addTransaction(${${"GLOBALS"}["mfyfowbxfb"]});break;case ProtocolInfo::BLOCK_ENTITY_DATA_PACKET:case\pocketmine\network\protocol\p70\Info::BLOCK_ENTITY_DATA_PACKET:if($this->spawned===false or$this->blocked===true or!$this->isAlive()){break;}$this->craftingType=self::CRAFTING_SMALL;${$tpfbnoelo}=new Vector3($packet->x,$packet->y,$packet->z);if($pos->distanceSquared($this)>10000){break;}${$cnxkewkxm}=$this->level->getTile(${$nifther});if(${$dywxge} instanceof Sign){$jwfxstovarc="nbt";${$jwfxstovarc}=new NBT(NBT::LITTLE_ENDIAN);${"GLOBALS"}["eojnrdoh"]="nbt";$nbt->read($packet->namedtag);${${"GLOBALS"}["efjvqop"]}=$nbt->getData();if(${${"GLOBALS"}["eojnrdoh"]}["id"]!==Tile::SIGN){$t->spawnTo($this);}else{$bbqjjhi="nbt";${"GLOBALS"}["qkgphhnackkq"]="nbt";${"GLOBALS"}["osvgirjykr"]="ev";${${"GLOBALS"}["osvgirjykr"]}=new SignChangeEvent($t->getBlock(),$this,[TextFormat::clean(${${"GLOBALS"}["qkgphhnackkq"]}["Text1"],$this->removeFormat),TextFormat::clean(${${"GLOBALS"}["efjvqop"]}["Text2"],$this->removeFormat),TextFormat::clean(${$bbqjjhi}["Text3"],$this->removeFormat),TextFormat::clean(${${"GLOBALS"}["efjvqop"]}["Text4"],$this->removeFormat)]);if(!isset($t->namedtag->Creator)or$t->namedtag["Creator"]!==$this->getRawUniqueId()){$ev->setCancelled();}$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["gnodacyuno"]});if(!$ev->isCancelled()){$t->setText($ev->getLine(0),$ev->getLine(1),$ev->getLine(2),$ev->getLine(3));}else{$t->spawnTo($this);}}}break;default:break;}}public function kick($reason="",$isAdmin=true){${"GLOBALS"}["pxzfitrp"]="ev";$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["pxzfitrp"]}=new PlayerKickEvent($this,${${"GLOBALS"}["tljithwdtrob"]},$this->getLeaveMessage()));if(!$ev->isCancelled()){if(${${"GLOBALS"}["dwlsxgeijy"]}){$fcfqpfdvkf="message";${"GLOBALS"}["mjvexa"]="reason";$ewftqupbxhe="reason";${$fcfqpfdvkf}="Kicked by admin.".(${$ewftqupbxhe}!==""?" Reason: ".${${"GLOBALS"}["mjvexa"]}:"");}else{${"GLOBALS"}["vnuqkdihx"]="reason";if(${${"GLOBALS"}["vnuqkdihx"]}===""){${${"GLOBALS"}["vejqusgvsjmr"]}="disconnectionScreen.noReason";}else{${"GLOBALS"}["eetmugji"]="reason";$xdstszoteu="message";${$xdstszoteu}=${${"GLOBALS"}["eetmugji"]};}}$this->close($ev->getQuitMessage(),${${"GLOBALS"}["vejqusgvsjmr"]});return true;}return false;}public function dropItem(Item$item){$yphwkvxpybd="ev";$hymlievlh="item";$aokrbmvyk="motion";${"GLOBALS"}["ekqidlr"]="item";if($this->spawned===false or$this->blocked===true or!$this->isAlive()){return;}if(($this->isCreative()and$this->server->limitedCreative)or$this->isSpectator()){return;}if($item->getId()===Item::AIR or$item->getCount()<1){return;}${$yphwkvxpybd}=new PlayerDropItemEvent($this,${$hymlievlh});${"GLOBALS"}["lxigitso"]="ev";$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["lxigitso"]});if($ev->isCancelled()){return;}${$aokrbmvyk}=$this->getDirectionVector()->multiply(0.4);$this->level->dropItem($this->add(0,1.3,0),${${"GLOBALS"}["ekqidlr"]},${${"GLOBALS"}["lwevctbnvi"]},40);$this->setDataFlag(self::DATA_FLAGS,self::DATA_FLAG_ACTION,false);}public function sendMessage($message){$bkqyeto="mes";$salxrvrtytej="message";$pnveiowfvuqw="message";if(${$pnveiowfvuqw} instanceof TextContainer){${"GLOBALS"}["uxcwuv"]="message";${"GLOBALS"}["xhbgfwkf"]="message";if(${${"GLOBALS"}["xhbgfwkf"]} instanceof TranslationContainer){$this->sendTranslation($message->getText(),$message->getParameters());return false;}${${"GLOBALS"}["uxcwuv"]}=$message->getText();}$bnknrmux="mes";${$bkqyeto}=explode("\n",$this->server->getLanguage()->translateString(${$salxrvrtytej}));foreach(${$bnknrmux} as${${"GLOBALS"}["xglddxru"]}){if(${${"GLOBALS"}["xglddxru"]}!==""){${"GLOBALS"}["hpcioelcb"]="m";$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["gnodacyuno"]}=new PlayerTextPreSendEvent($this,${${"GLOBALS"}["hpcioelcb"]},PlayerTextPreSendEvent::MESSAGE));if(!$ev->isCancelled()){$dmdzqfet="pk";${${"GLOBALS"}["wzarnypqog"]}=new TextPacket();$pk->type=TextPacket::TYPE_RAW;$pk->message=$ev->getMessage();$this->dataPacket(${$dmdzqfet});}}}return true;}public function sendTranslation($message,array$parameters=[]){${"GLOBALS"}["xirouel"]="pk";${${"GLOBALS"}["xirouel"]}=new TextPacket();${"GLOBALS"}["bhqwwag"]="ev";if(!$this->server->isLanguageForced()){${"GLOBALS"}["zodgckzes"]="message";$ohbowsl="parameters";$pk->type=TextPacket::TYPE_TRANSLATION;${"GLOBALS"}["dyhylavv"]="parameters";$pk->message=$this->server->getLanguage()->translateString(${${"GLOBALS"}["zodgckzes"]},${$ohbowsl},"pocketmine.");foreach(${${"GLOBALS"}["qigdwzbmxfh"]} as${${"GLOBALS"}["yicyexuhqi"]}=>${${"GLOBALS"}["yutppkq"]}){${"GLOBALS"}["fbclvf"]="i";${"GLOBALS"}["iyymxkuqg"]="parameters";$jvribaiuyfu="parameters";${${"GLOBALS"}["iyymxkuqg"]}[${${"GLOBALS"}["fbclvf"]}]=$this->server->getLanguage()->translateString(${${"GLOBALS"}["yutppkq"]},${$jvribaiuyfu},"pocketmine.");}$pk->parameters=${${"GLOBALS"}["dyhylavv"]};}else{${"GLOBALS"}["sjgbluqaowl"]="message";$pk->type=TextPacket::TYPE_RAW;$pk->message=$this->server->getLanguage()->translateString(${${"GLOBALS"}["sjgbluqaowl"]},${${"GLOBALS"}["qigdwzbmxfh"]});}${${"GLOBALS"}["gnodacyuno"]}=new PlayerTextPreSendEvent($this,$pk->message,PlayerTextPreSendEvent::TRANSLATED_MESSAGE);$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["bhqwwag"]});if(!$ev->isCancelled()){$this->dataPacket(${${"GLOBALS"}["wzarnypqog"]});return true;}return false;}public function sendPopup($message,$subtitle=""){${"GLOBALS"}["vwgpsj"]="ev";$rcbkykob="ev";${${"GLOBALS"}["vwgpsj"]}=new PlayerTextPreSendEvent($this,${${"GLOBALS"}["vejqusgvsjmr"]},PlayerTextPreSendEvent::POPUP);$this->server->getPluginManager()->callEvent(${$rcbkykob});if(!$ev->isCancelled()){${${"GLOBALS"}["wzarnypqog"]}=new TextPacket();$pk->type=TextPacket::TYPE_POPUP;$pk->source=$ev->getMessage();$pk->message=${${"GLOBALS"}["tdblsvbfozv"]};$this->dataPacket(${${"GLOBALS"}["wzarnypqog"]});return true;}return false;}public function sendTip($message){${"GLOBALS"}["xhntcrl"]="message";${${"GLOBALS"}["gnodacyuno"]}=new PlayerTextPreSendEvent($this,${${"GLOBALS"}["xhntcrl"]},PlayerTextPreSendEvent::TIP);$rybyyoeuo="ev";$this->server->getPluginManager()->callEvent(${$rybyyoeuo});if(!$ev->isCancelled()){${${"GLOBALS"}["wzarnypqog"]}=new TextPacket();$pk->type=TextPacket::TYPE_TIP;$pk->message=$ev->getMessage();$this->dataPacket(${${"GLOBALS"}["wzarnypqog"]});return true;}return false;}public final function close($message="",$reason="generic reason",$notify=true){if($this->connected and!$this->closed){$lhhccerlo="player";$zbcgunnqfx="reason";if(${${"GLOBALS"}["hkbnuik"]} and strlen((string)${$zbcgunnqfx})>0){${"GLOBALS"}["vnuslv"]="reason";if($this->getProtocol()==84){$byruon="pk";${$byruon}=new DisconnectPacket();}elseif(AnyVersionManager::isProtocol($this,"0.14")){${"GLOBALS"}["incijlxqhkx"]="pk";${${"GLOBALS"}["incijlxqhkx"]}=new\pocketmine\network\protocol\p70\DisconnectPacket();}$pk->message=${${"GLOBALS"}["vnuslv"]};$this->directDataPacket(${${"GLOBALS"}["wzarnypqog"]});}$gnvmtudifw="ev";$hkvrqghrnxs="d";if($this->fishingHook instanceof FishingHook){$this->fishingHook->close();$this->fishingHook=null;}$this->removeEffect(Effect::HEALTH_BOOST);${"GLOBALS"}["bxtxfxhubnx"]="index";$this->connected=false;if(strlen($this->getName())>0){$ebxeykionjt="message";$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["gnodacyuno"]}=new PlayerQuitEvent($this,${$ebxeykionjt},true));if($this->loggedIn===true and$ev->getAutoSave()){$this->save();}}foreach($this->server->getOnlinePlayers()as${$lhhccerlo}){if(!$player->canSee($this)){$player->showPlayer($this);}}$this->hiddenPlayers=[];foreach($this->windowIndex as${${"GLOBALS"}["axzwln"]}){${"GLOBALS"}["dtmcvpm"]="window";$this->removeWindow(${${"GLOBALS"}["dtmcvpm"]});}foreach($this->usedChunks as${${"GLOBALS"}["bxtxfxhubnx"]}=>${$hkvrqghrnxs}){$dpsvxoj="chunkX";Level::getXZ(${${"GLOBALS"}["vtsgjeil"]},${${"GLOBALS"}["asyeeoldmud"]},${${"GLOBALS"}["pberoxjkdy"]});$kutmqibkfese="chunkZ";$this->level->unregisterChunkLoader($this,${$dpsvxoj},${$kutmqibkfese});unset($this->usedChunks[${${"GLOBALS"}["vtsgjeil"]}]);}parent::close();$this->interface->close($this,${${"GLOBALS"}["hkbnuik"]}?${${"GLOBALS"}["tljithwdtrob"]}:"");if($this->loggedIn){$this->server->removeOnlinePlayer($this);}$this->loggedIn=false;if(isset(${$gnvmtudifw})and$this->username!=""and$this->spawned!==false and$ev->getQuitMessage()!=""){if($this->server->playerMsgType===Server::PLAYER_MSG_TYPE_MESSAGE)$this->server->broadcastMessage($ev->getQuitMessage());elseif($this->server->playerMsgType===Server::PLAYER_MSG_TYPE_TIP)$this->server->broadcastTip(str_replace("@player",$this->getName(),$this->server->playerLogoutMsg));elseif($this->server->playerMsgType===Server::PLAYER_MSG_TYPE_POPUP)$this->server->broadcastPopup(str_replace("@player",$this->getName(),$this->server->playerLogoutMsg));}$this->server->getPluginManager()->unsubscribeFromPermission(Server::BROADCAST_CHANNEL_USERS,$this);$this->spawned=false;$this->server->getLogger()->info($this->getServer()->getLanguage()->translateString("pocketmine.player.logOut",[TextFormat::AQUA.$this->getName().TextFormat::WHITE,$this->ip,$this->port,$this->getServer()->getLanguage()->translateString(${${"GLOBALS"}["tljithwdtrob"]})]));$this->windows=new\SplObjectStorage();$this->windowIndex=[];$this->usedChunks=[];$this->loadQueue=[];$this->hasSpawned=[];$this->spawnPosition=null;unset($this->buffer);if($this->server->dserverConfig["enable"]and$this->server->dserverConfig["queryAutoUpdate"])$this->server->updateQuery();}if($this->perm!==null){$this->perm->clearPermissions();$this->perm=null;}$this->inventory=null;$this->transactionQueue=null;$this->chunk=null;$this->server->removePlayer($this);}public function __debugInfo(){return[];}public function save($async=false){if($this->closed){throw new\InvalidStateException("Tried to save closed player");}parent::saveNBT();if($this->level instanceof Level){$this->namedtag->Level=new StringTag("Level",$this->level->getName());if($this->spawnPosition instanceof Position and$this->spawnPosition->getLevel()instanceof Level and$this->spawnPosition->getLevel()->getProvider()!==NULL){$this->namedtag["SpawnLevel"]=$this->spawnPosition->getLevel()->getName();$this->namedtag["SpawnX"]=(int)$this->spawnPosition->x;$this->namedtag["SpawnY"]=(int)$this->spawnPosition->y;$this->namedtag["SpawnZ"]=(int)$this->spawnPosition->z;}foreach($this->achievements as${${"GLOBALS"}["sngxvfhv"]}=>${${"GLOBALS"}["nwrweusm"]}){${"GLOBALS"}["lglfqrlmitvb"]="status";$this->namedtag->Achievements[${${"GLOBALS"}["sngxvfhv"]}]=new ByteTag(${${"GLOBALS"}["sngxvfhv"]},${${"GLOBALS"}["lglfqrlmitvb"]}===true?1:0);}$this->namedtag["playerGameType"]=$this->gamemode;$this->namedtag["lastPlayed"]=new LongTag("lastPlayed",floor(microtime(true)*1000));$this->namedtag["Hunger"]=new ShortTag("Hunger",$this->food);$this->namedtag["Health"]=new ShortTag("Health",$this->getHealth());$this->namedtag["MaxHealth"]=new ShortTag("MaxHealth",$this->getMaxHealth());$this->namedtag["Experience"]=new LongTag("Experience",$this->exp);$this->namedtag["ExpLevel"]=new LongTag("ExpLevel",$this->expLevel);if($this->username!=""and$this->namedtag instanceof CompoundTag){$dcfktmzgqwwj="async";$this->server->saveOfflinePlayerData($this->username,$this->namedtag,${$dcfktmzgqwwj});}}}public function getName(){return$this->username;}public function kill(){${"GLOBALS"}["iixjsewlksc"]="message";$gryqfcv="message";${"GLOBALS"}["vycfha"]="message";${"GLOBALS"}["bsltvgf"]="message";$honcekkn="message";$drabqxfem="cause";if(!$this->spawned){return;}$sfdvwpu="params";${${"GLOBALS"}["vycfha"]}="death.attack.generic";$sttbbks="message";${"GLOBALS"}["syglmnzy"]="message";${"GLOBALS"}["ctkgwnfl"]="ev";$ecqbkcd="params";${"GLOBALS"}["eynqubsxfnv"]="cause";$vhcntytszidh="message";${$ecqbkcd}=[$this->getDisplayName()];${"GLOBALS"}["pblewqrmrsiy"]="message";${$drabqxfem}=$this->getLastDamageCause();switch(${${"GLOBALS"}["eynqubsxfnv"]}===null?EntityDamageEvent::CAUSE_CUSTOM:$cause->getCause()){case EntityDamageEvent::CAUSE_ENTITY_ATTACK:if(${${"GLOBALS"}["xqxhrfllzfq"]} instanceof EntityDamageByEntityEvent){$fjzibgp="e";${"GLOBALS"}["hhqsqbqct"]="e";${${"GLOBALS"}["sdwjxruutsw"]}=$cause->getDamager();if(${$fjzibgp} instanceof Player){$kucpfcnkjjj="message";${$kucpfcnkjjj}="death.attack.player";${${"GLOBALS"}["ymwdgvfhes"]}[]=$e->getDisplayName();break;}elseif(${${"GLOBALS"}["hhqsqbqct"]} instanceof Living){${"GLOBALS"}["jqqujhd"]="message";${${"GLOBALS"}["jqqujhd"]}="death.attack.mob";${${"GLOBALS"}["ymwdgvfhes"]}[]=$e->getNameTag()!==""?$e->getNameTag():$e->getName();break;}else{${${"GLOBALS"}["ymwdgvfhes"]}[]="Unknown";}}break;case EntityDamageEvent::CAUSE_PROJECTILE:if(${${"GLOBALS"}["xqxhrfllzfq"]} instanceof EntityDamageByEntityEvent){${"GLOBALS"}["lqyqsene"]="e";${"GLOBALS"}["bdvdaenmq"]="e";${${"GLOBALS"}["lqyqsene"]}=$cause->getDamager();if(${${"GLOBALS"}["sdwjxruutsw"]} instanceof Player){${${"GLOBALS"}["vejqusgvsjmr"]}="death.attack.arrow";${${"GLOBALS"}["ymwdgvfhes"]}[]=$e->getDisplayName();}elseif(${${"GLOBALS"}["bdvdaenmq"]} instanceof Living){${"GLOBALS"}["jlnpvzenah"]="params";${${"GLOBALS"}["vejqusgvsjmr"]}="death.attack.arrow";${${"GLOBALS"}["jlnpvzenah"]}[]=$e->getNameTag()!==""?$e->getNameTag():$e->getName();break;}else{${${"GLOBALS"}["ymwdgvfhes"]}[]="Unknown";}}break;case EntityDamageEvent::CAUSE_SUICIDE:${${"GLOBALS"}["vejqusgvsjmr"]}="death.attack.generic";break;case EntityDamageEvent::CAUSE_VOID:${${"GLOBALS"}["vejqusgvsjmr"]}="death.attack.outOfWorld";break;case EntityDamageEvent::CAUSE_FALL:if(${${"GLOBALS"}["xqxhrfllzfq"]} instanceof EntityDamageEvent){if($cause->getFinalDamage()>2){${"GLOBALS"}["jdwwccdxykrh"]="message";${${"GLOBALS"}["jdwwccdxykrh"]}="death.fell.accident.generic";break;}}${${"GLOBALS"}["pblewqrmrsiy"]}="death.attack.fall";break;case EntityDamageEvent::CAUSE_SUFFOCATION:${${"GLOBALS"}["syglmnzy"]}="death.attack.inWall";break;case EntityDamageEvent::CAUSE_LAVA:${$vhcntytszidh}="death.attack.lava";break;case EntityDamageEvent::CAUSE_FIRE:${${"GLOBALS"}["bsltvgf"]}="death.attack.onFire";break;case EntityDamageEvent::CAUSE_FIRE_TICK:${${"GLOBALS"}["iixjsewlksc"]}="death.attack.inFire";break;case EntityDamageEvent::CAUSE_DROWNING:${$gryqfcv}="death.attack.drown";break;case EntityDamageEvent::CAUSE_CONTACT:if(${${"GLOBALS"}["xqxhrfllzfq"]} instanceof EntityDamageByBlockEvent){if($cause->getDamager()->getId()===Block::CACTUS){${"GLOBALS"}["xqsptnumvmfu"]="message";${${"GLOBALS"}["xqsptnumvmfu"]}="death.attack.cactus";}}break;case EntityDamageEvent::CAUSE_BLOCK_EXPLOSION:case EntityDamageEvent::CAUSE_ENTITY_EXPLOSION:if(${${"GLOBALS"}["xqxhrfllzfq"]} instanceof EntityDamageByEntityEvent){${"GLOBALS"}["uqrftmo"]="e";${${"GLOBALS"}["sdwjxruutsw"]}=$cause->getDamager();if(${${"GLOBALS"}["sdwjxruutsw"]} instanceof Player){${${"GLOBALS"}["vejqusgvsjmr"]}="death.attack.explosion.player";${${"GLOBALS"}["ymwdgvfhes"]}[]=$e->getDisplayName();}elseif(${${"GLOBALS"}["uqrftmo"]} instanceof Living){${${"GLOBALS"}["vejqusgvsjmr"]}="death.attack.explosion.player";${${"GLOBALS"}["ymwdgvfhes"]}[]=$e->getNameTag()!==""?$e->getNameTag():$e->getName();break;}}else{${"GLOBALS"}["uywgcqzag"]="message";${${"GLOBALS"}["uywgcqzag"]}="death.attack.explosion";}break;case EntityDamageEvent::CAUSE_MAGIC:${$sttbbks}="death.attack.magic";break;case EntityDamageEvent::CAUSE_CUSTOM:break;default:}Entity::kill();${${"GLOBALS"}["ctkgwnfl"]}=new PlayerDeathEvent($this,$this->getDrops(),new TranslationContainer(${$honcekkn},${$sfdvwpu}));$ev->setKeepInventory($this->server->keepInventory);$ev->setKeepExperience($this->server->keepExperience);$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["gnodacyuno"]});if(!$ev->getKeepInventory()){foreach($ev->getDrops()as${${"GLOBALS"}["iilrmljxz"]}){${"GLOBALS"}["fhhhpfnkl"]="item";$this->level->dropItem($this,${${"GLOBALS"}["fhhhpfnkl"]});}if($this->inventory!==null){$this->inventory->clearAll();}}if($this->server->expEnabled and!$ev->getKeepExperience()){$cetbekds="exp";${$cetbekds}=min(91,$this->getTotalXp());$this->getLevel()->spawnXPOrb($this->add(0,0.2,0),${${"GLOBALS"}["jdqqbsfkmbh"]});$this->setTotalXp(0,true);}if($ev->getDeathMessage()!=""){$this->server->broadcast($ev->getDeathMessage(),Server::BROADCAST_CHANNEL_USERS);}${${"GLOBALS"}["kozwdu"]}=$this->getSpawn();$this->setHealth(0);$ypchomkhzop="pk";${${"GLOBALS"}["wzarnypqog"]}=new RespawnPacket();$pk->x=$pos->x;$pk->y=$pos->y;$pk->z=$pos->z;$this->dataPacket(${$ypchomkhzop});}public function setHealth($amount){parent::setHealth(${${"GLOBALS"}["bsmoqyvevs"]});if($this->spawned===true){$this->foodTick=0;$this->getAttributeMap()->getAttribute(Attribute::HEALTH)->setMaxValue($this->getMaxHealth())->setValue(${${"GLOBALS"}["bsmoqyvevs"]},true);}}public function attack($damage,EntityDamageEvent$source){if(!$this->isAlive()){return;}$vneunrrhct="source";if($this->isCreative()and$source->getCause()!==EntityDamageEvent::CAUSE_MAGIC and$source->getCause()!==EntityDamageEvent::CAUSE_SUICIDE and$source->getCause()!==EntityDamageEvent::CAUSE_VOID){$source->setCancelled();}elseif($this->allowFlight and$source->getCause()===EntityDamageEvent::CAUSE_FALL){$source->setCancelled();}parent::attack(${${"GLOBALS"}["tmwhfwizvc"]},${${"GLOBALS"}["qimkoyy"]});if($source->isCancelled()){return;}elseif($this->getLastDamageCause()===${$vneunrrhct} and$this->spawned){${"GLOBALS"}["bnesqfb"]="pk";$elhxegej="pk";${$elhxegej}=new EntityEventPacket();$pk->eid=0;$pk->event=EntityEventPacket::HURT_ANIMATION;$this->dataPacket(${${"GLOBALS"}["bnesqfb"]});if($this->isSurvival()){$this->exhaust(0.3,PlayerExhaustEvent::CAUSE_DAMAGE);}}}public function sendPosition(Vector3$pos,$yaw=null,$pitch=null,$mode=0,array$targets=null){$ylollkflhle="pitch";$njoypmgg="pk";${"GLOBALS"}["vgzqgcmm"]="pitch";${"GLOBALS"}["ctopxcghh"]="yaw";${"GLOBALS"}["fjyimoropvh"]="pitch";$mtmnwcfjojy="yaw";${${"GLOBALS"}["bcolpuljld"]}=${${"GLOBALS"}["ctopxcghh"]}===null?$this->yaw:${$mtmnwcfjojy};${${"GLOBALS"}["vgzqgcmm"]}=${${"GLOBALS"}["fjyimoropvh"]}===null?$this->pitch:${$ylollkflhle};${$njoypmgg}=new MovePlayerPacket();${"GLOBALS"}["tgcrmizohf"]="pitch";$pk->eid=$this->getId();$pk->x=$pos->x;${"GLOBALS"}["dguatuv"]="targets";${"GLOBALS"}["ujwcjlhf"]="mode";$pk->y=$pos->y+$this->getEyeHeight();$pk->z=$pos->z;$pk->bodyYaw=${${"GLOBALS"}["bcolpuljld"]};$pk->pitch=${${"GLOBALS"}["tgcrmizohf"]};$pk->yaw=${${"GLOBALS"}["bcolpuljld"]};$pk->mode=${${"GLOBALS"}["ujwcjlhf"]};if(${${"GLOBALS"}["dguatuv"]}!==null){$obdhdqlyfof="pk";Server::broadcastPacket(${${"GLOBALS"}["upxiybwcgt"]},${$obdhdqlyfof});}else{${"GLOBALS"}["bwzuvnpt"]="pk";$pk->eid=0;$this->dataPacket(${${"GLOBALS"}["bwzuvnpt"]});}}protected function checkChunks(){if($this->chunk===null or($this->chunk->getX()!==($this->x>>4)or$this->chunk->getZ()!==($this->z>>4))){if($this->chunk!==null){$this->chunk->removeEntity($this);}$this->chunk=$this->level->getChunk($this->x>>4,$this->z>>4,true);if(!$this->justCreated){${"GLOBALS"}["ykkyubpdeb"]="newChunk";$tmqulxt="player";${"GLOBALS"}["nkrlbyyx"]="reload";${${"GLOBALS"}["ykkyubpdeb"]}=$this->level->getChunkPlayers($this->x>>4,$this->z>>4);unset(${${"GLOBALS"}["kdivbhwpq"]}[$this->getLoaderId()]);${${"GLOBALS"}["nkrlbyyx"]}=[];foreach($this->hasSpawned as${${"GLOBALS"}["yupjezso"]}){if(!isset(${${"GLOBALS"}["kdivbhwpq"]}[$player->getLoaderId()])){$this->despawnFrom(${${"GLOBALS"}["yupjezso"]});}else{$mvplukaiief="newChunk";$gqqimqd="player";${"GLOBALS"}["xrcgkvxpbnhv"]="reload";unset(${$mvplukaiief}[$player->getLoaderId()]);${${"GLOBALS"}["xrcgkvxpbnhv"]}[]=${$gqqimqd};}}foreach(${${"GLOBALS"}["kdivbhwpq"]} as${$tmqulxt}){$this->spawnTo(${${"GLOBALS"}["yupjezso"]});}}if($this->chunk===null){return;}$this->chunk->addEntity($this);}}protected function checkTeleportPosition(){if($this->teleportPosition!==null){${"GLOBALS"}["ounjoc"]="X";${${"GLOBALS"}["asyeeoldmud"]}=$this->teleportPosition->x>>4;$wqoqrjmo="chunkZ";${"GLOBALS"}["xcvolfhr"]="X";${$wqoqrjmo}=$this->teleportPosition->z>>4;for(${${"GLOBALS"}["oxuultwnlm"]}=-1;${${"GLOBALS"}["xcvolfhr"]}<=1;++${${"GLOBALS"}["ounjoc"]}){${"GLOBALS"}["omtlbjwvdlm"]="Z";${"GLOBALS"}["igpnowrt"]="Z";for(${${"GLOBALS"}["dcmhcbyblq"]}=-1;${${"GLOBALS"}["igpnowrt"]}<=1;++${${"GLOBALS"}["omtlbjwvdlm"]}){${"GLOBALS"}["bohnduagvqv"]="index";$thmbvwnbf="X";$tkdyxfzfehu="chunkZ";$xqtxkiw="Z";${"GLOBALS"}["juhkagg"]="chunkX";$bvxfuuyhwdp="index";if(!isset($this->usedChunks[${$bvxfuuyhwdp}=Level::chunkHash(${${"GLOBALS"}["juhkagg"]}+${$thmbvwnbf},${$tkdyxfzfehu}+${$xqtxkiw})])or$this->usedChunks[${${"GLOBALS"}["bohnduagvqv"]}]===false){return false;}}}$this->sendPosition($this,null,null,1);$this->spawnToAll();$this->forceMovement=$this->teleportPosition;$this->teleportPosition=null;return true;}return true;}public function teleport(Vector3$pos,$yaw=null,$pitch=null){${"GLOBALS"}["bnpynut"]="oldPos";$rjbptfafue="pos";if(!$this->isOnline()){return false;}${${"GLOBALS"}["bnpynut"]}=$this->getPosition();if(parent::teleport(${$rjbptfafue},${${"GLOBALS"}["bcolpuljld"]},${${"GLOBALS"}["gcbahsjfclt"]})){$gjbpdyqpd="window";foreach($this->windowIndex as${$gjbpdyqpd}){$acanwpnjnkou="window";if(${${"GLOBALS"}["axzwln"]}===$this->inventory){continue;}$this->removeWindow(${$acanwpnjnkou});}$this->teleportPosition=new Vector3($this->x,$this->y,$this->z);if(!$this->checkTeleportPosition()){${"GLOBALS"}["lgkhjyzgt"]="oldPos";$this->forceMovement=${${"GLOBALS"}["lgkhjyzgt"]};}else{$this->spawnToAll();}$this->resetFallDistance();$this->nextChunkOrderRun=0;$this->newPosition=null;$this->stopSleep();return true;}return false;}public function teleportImmediate(Vector3$pos,$yaw=null,$pitch=null){${"GLOBALS"}["gvkwochb"]="pitch";if(parent::teleport(${${"GLOBALS"}["kozwdu"]},${${"GLOBALS"}["bcolpuljld"]},${${"GLOBALS"}["gvkwochb"]})){${"GLOBALS"}["omdnxye"]="window";foreach($this->windowIndex as${${"GLOBALS"}["omdnxye"]}){$etzminlvbg="window";if(${$etzminlvbg}===$this->inventory){continue;}$this->removeWindow(${${"GLOBALS"}["axzwln"]});}$this->forceMovement=new Vector3($this->x,$this->y,$this->z);$this->sendPosition($this,$this->yaw,$this->pitch,1);$this->resetFallDistance();$this->orderChunks();$this->nextChunkOrderRun=0;$this->newPosition=null;}}public function getWindowId(Inventory$inventory):int{$rpspchxtyq="inventory";if($this->windows->contains(${$rpspchxtyq})){$htfalgujysb="inventory";return$this->windows[${$htfalgujysb}];}return-1;}public function addWindow(Inventory$inventory,$forceId=null):int{$rhgmcj="inventory";${"GLOBALS"}["ktklpwnyvo"]="inventory";$mtnhtjhyk="cnt";if($this->windows->contains(${$rhgmcj})){return$this->windows[${${"GLOBALS"}["gkfbokdkay"]}];}${"GLOBALS"}["ppebtifhsg"]="forceId";if(${${"GLOBALS"}["ppebtifhsg"]}===null){$this->windowCnt=${${"GLOBALS"}["awpifowewpqj"]}=max(2,++$this->windowCnt%99);}else{$yrotbokpw="cnt";${"GLOBALS"}["pjnnekr"]="forceId";${$yrotbokpw}=(int)${${"GLOBALS"}["pjnnekr"]};}$this->windowIndex[${${"GLOBALS"}["awpifowewpqj"]}]=${${"GLOBALS"}["ktklpwnyvo"]};$this->windows->attach(${${"GLOBALS"}["gkfbokdkay"]},${$mtnhtjhyk});if($inventory->open($this)){return${${"GLOBALS"}["awpifowewpqj"]};}else{$this->removeWindow(${${"GLOBALS"}["gkfbokdkay"]});return-1;}}public function removeWindow(Inventory$inventory){$inventory->close($this);if($this->windows->contains(${${"GLOBALS"}["gkfbokdkay"]})){$lukhsrdl="id";${"GLOBALS"}["fkybddlhdkqv"]="inventory";${${"GLOBALS"}["pjnqykgjd"]}=$this->windows[${${"GLOBALS"}["fkybddlhdkqv"]}];$this->windows->detach($this->windowIndex[${${"GLOBALS"}["pjnqykgjd"]}]);unset($this->windowIndex[${$lukhsrdl}]);}}public function setMetadata($metadataKey,MetadataValue$metadataValue){${"GLOBALS"}["brznbqexy"]="metadataValue";$this->server->getPlayerMetadata()->setMetadata($this,${${"GLOBALS"}["fwkedbmq"]},${${"GLOBALS"}["brznbqexy"]});}public function getMetadata($metadataKey){return$this->server->getPlayerMetadata()->getMetadata($this,${${"GLOBALS"}["fwkedbmq"]});}public function hasMetadata($metadataKey){${"GLOBALS"}["drrlevxni"]="metadataKey";return$this->server->getPlayerMetadata()->hasMetadata($this,${${"GLOBALS"}["drrlevxni"]});}public function removeMetadata($metadataKey,Plugin$plugin){$this->server->getPlayerMetadata()->removeMetadata($this,${${"GLOBALS"}["fwkedbmq"]},${${"GLOBALS"}["cvuktglw"]});}public function onChunkChanged(FullChunk$chunk){$this->loadQueue[Level::chunkHash($chunk->getX(),$chunk->getZ())]=abs(($this->x>>4)-$chunk->getX())+abs(($this->z>>4)-$chunk->getZ());}public function onChunkLoaded(FullChunk$chunk){}public function onChunkPopulated(FullChunk$chunk){}public function onChunkUnloaded(FullChunk$chunk){}public function onBlockChanged(Vector3$block){}public function getLoaderId(){return$this->loaderId;}public function isLoaderActive(){return$this->isConnected();}public static function getChunkCacheFromData($chunkX,$chunkZ,$payload,$ordering=FullChunkDataPacket::ORDER_COLUMNS){$byilvyiat="chunkZ";$dmbludqxyr="payload";${${"GLOBALS"}["wzarnypqog"]}=new FullChunkDataPacket();$pk->chunkX=${${"GLOBALS"}["asyeeoldmud"]};$bmdeusnjheez="ordering";$pk->chunkZ=${$byilvyiat};$pk->order=${$bmdeusnjheez};$pk->data=${$dmbludqxyr};$pk->encode();return${${"GLOBALS"}["wzarnypqog"]};}}
?>
Function Calls
None |
Stats
MD5 | 6f8a3bed84be38f9d28c012349d5a061 |
Eval Count | 0 |
Decode Time | 222 ms |