Wordpress 等でのPHPのマルウェア・ウィルス・改ざんコードをデコードして難読化をオンラインで解除し、
元の読みやすいコードに戻し解読できます。
<?php namespace pocketmine;${"G\x4c\x4fB\x41\x4c\x53"}["\x6d\x75b\x65\x66\x73\x68"]="e\x66\x66e\x63\x74";${"\x47\x4cO\x42\x41\x4c\x53"}["\x74\x77\x6c\x70\x77\x6a"]="\x62\x61\x74c\x68";${"G\x4cO\x42\x41L\x53"}["\x61os\x72\x6alx\x73\x64\x74"]="BA\x54\x43\x48\x5f\x54HR\x45S\x48O\x4c\x44";${"\x47\x4c\x4f\x42A\x4c\x53"}["\x74\x69\x65\x72mcn\x6f"]="m\x65ta\x64\x61\x74a\x56a\x6cue";${"\x47LO\x42\x41L\x53"}["\x77\x6a\x79p\x6b\x79\x6c"]="m\x65\x74\x61\x64\x61ta\x4b\x65y";${"\x47\x4c\x4f\x42\x41L\x53"}["rulcj\x62te"]="i\x6eve\x6e\x74o\x72\x79";${"G\x4cOB\x41\x4c\x53"}["\x67j\x66\x72vn\x77kd"]="\x63\x6et";${"\x47\x4cO\x42\x41\x4c\x53"}["\x79\x6a\x6e\x73\x65\x75\x69o"]="fo\x72c\x65\x49\x64";${"\x47LO\x42\x41\x4c\x53"}["\x74\x78\x72\x71\x64g\x66\x78"]="\x6f\x6cd\x50\x6f\x73";${"\x47\x4c\x4f\x42A\x4cS"}["\x63u\x68ts\x67\x6c\x77eg"]="r\x65l\x6f\x61d";${"G\x4cO\x42A\x4c\x53"}["\x76g\x73i\x67\x65\x68\x63\x6a\x64"]="\x6e\x65\x77C\x68\x75n\x6b";${"\x47\x4c\x4f\x42\x41L\x53"}["ky\x64h\x70\x63"]="\x74\x61rge\x74\x73";${"\x47LO\x42AL\x53"}["\x69w\x67f\x75\x7a\x79\x66\x69\x6fa\x75"]="\x6d\x6f\x64e";${"GL\x4fB\x41\x4c\x53"}["y\x62\x6b\x71req"]="\x70i\x74ch";${"\x47\x4cO\x42\x41LS"}["\x62o\x62d\x76\x72\x62\x78k\x65\x6f"]="\x64\x61\x6d\x61\x67e";${"G\x4c\x4f\x42AL\x53"}["\x72\x6f\x72\x72\x79r\x76\x6c"]="a\x6do\x75\x6et";${"\x47LO\x42\x41\x4c\x53"}["w\x67\x66\x75qy\x69"]="\x70a\x72a\x6d\x73";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6emgnr\x70\x6d\x66\x67v"]="\x65";${"G\x4cO\x42\x41\x4c\x53"}["\x73\x67\x71\x71\x76\x64\x6cmi\x68g"]="cau\x73\x65";${"GL\x4f\x42ALS"}["\x63\x66\x65\x79\x64m\x66"]="st\x61tu\x73";${"\x47\x4cOBAL\x53"}["\x6ed\x64\x6eq\x76\x6cv\x67\x73m"]="achievem\x65n\x74";${"G\x4c\x4f\x42\x41\x4cS"}["\x74\x63\x77\x63\x70\x63m\x67\x74\x66\x76\x6f"]="su\x62\x74\x69\x74l\x65";${"\x47\x4c\x4f\x42AL\x53"}["\x67o\x65\x75\x67\x67\x6f"]="\x70\x61\x72a\x6d\x65\x74\x65\x72s";${"\x47LOB\x41\x4c\x53"}["frg\x79\x77p"]="\x6d";${"GLO\x42ALS"}["v\x79\x6a\x76\x75\x70\x68"]="\x6de\x73";${"\x47L\x4f\x42A\x4c\x53"}["x\x6c\x65n\x67w\x6a\x66\x6fe"]="\x6d\x6ft\x69o\x6e";${"\x47\x4c\x4fB\x41\x4cS"}["e\x70t\x67u\x6efe\x68"]="r\x65\x61s\x6f\x6e";${"GL\x4f\x42\x41\x4c\x53"}["or\x6b\x61h\x64\x70\x6a\x67"]="\x61\x63\x68ie\x76\x65m\x65\x6et\x73";${"\x47LO\x42\x41\x4c\x53"}["\x6f\x63\x63\x6ewi\x64\x65\x78ma"]="i\x6e\x76";${"\x47L\x4fBA\x4c\x53"}["\x72\x66\x6f\x67\x66rh\x6c\x76\x70\x77\x73"]="\x74\x72\x61n\x73a\x63t\x69\x6fn";${"\x47\x4cO\x42\x41\x4c\x53"}["\x68\x67l\x73\x77\x62\x6ew\x69r"]="\x6eewI\x74e\x6d";${"G\x4cO\x42A\x4c\x53"}["\x65\x6c\x76\x65\x69\x79ib\x6c"]="\x75\x73\x65d";${"\x47L\x4f\x42AL\x53"}["\x74\x68\x69y\x79\x65\x66c"]="\x72\x65\x6do\x76e";${"G\x4c\x4fBAL\x53"}["gp\x74\x78b\x7a\x6a"]="\x6e";${"\x47L\x4f\x42\x41\x4c\x53"}["\x78\x69ls\x6f\x6c"]="\x6e\x65\x65\x64\x65\x64";${"\x47\x4cO\x42\x41LS"}["p\x74\x77\x74r\x73k"]="i\x6eg\x72e\x64\x69\x65\x6e\x74s";${"\x47\x4cO\x42\x41\x4c\x53"}["p\x75\x66fnnp\x77\x6c\x70"]="c\x61nC\x72\x61\x66\x74";${"\x47LO\x42\x41\x4c\x53"}["h\x78\x6dec\x69\x79\x62c\x68d\x76"]="i\x6eg\x72\x65\x64\x69\x65\x6e\x74";${"G\x4c\x4f\x42A\x4c\x53"}["k\x66\x64\x67h\x62qj"]="r";${"GL\x4fB\x41\x4c\x53"}["\x72b\x64\x6d\x64gf\x61\x6c\x78"]="p\x6f\x73\x73\x69\x62l\x65R\x65\x63\x69p\x65s";${"\x47\x4c\x4f\x42A\x4c\x53"}["\x79tv\x63\x6cp"]="\x72e\x63\x69\x70\x65";${"\x47\x4cO\x42\x41\x4cS"}["\x6f\x7a\x73\x6d\x6c\x69"]="a\x6e\x76\x69\x6cInv\x65nt\x6f\x72\x79";${"\x47\x4c\x4f\x42\x41LS"}["\x6fs\x6c\x65ax"]="w\x69\x6e\x64o\x77";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["vu\x6a\x76v\x62\x6f\x6f"]="\x73lo\x74";${"\x47L\x4f\x42A\x4c\x53"}["\x64x\x64v\x78x"]="\x74ho\x72\x6e\x73\x45v\x65\x6e\x74";${"\x47\x4c\x4f\x42A\x4c\x53"}["\x6f\x79\x69\x62\x6f\x64\x6dy"]="\x66\x69r\x65\x41\x73\x70\x65c\x74L";${"\x47LOB\x41\x4c\x53"}["pip\x66\x6en\x70\x6f"]="\x63\x61nc\x65\x6c\x6ced";${"GLOB\x41L\x53"}["imcim\x73\x7a\x69\x7a\x69\x78"]="\x76\x65c\x74\x6f\x72";${"GL\x4f\x42\x41L\x53"}["\x7a\x6f\x6e\x6c\x6eru"]="\x61\x72r\x6fw";${"\x47LOBA\x4c\x53"}["\x74\x68uwx\x6c\x78\x6a"]="\x62\x6fw";${"G\x4c\x4fB\x41\x4c\x53"}["\x6b\x70\x76d\x6dq\x6e\x68p"]="s\x69\x64e";${"\x47\x4cO\x42A\x4c\x53"}["\x72\x68\x76p\x67y\x63"]="\x70\x72\x6f\x6aec\x74\x69l\x65\x45\x76";${"\x47\x4c\x4f\x42\x41L\x53"}["\x66\x75\x6b\x68fz\x69\x67"]="\x74\x68r\x6f\x77n\x45\x78pB\x6f\x74\x74\x6ce";${"GL\x4f\x42AL\x53"}["\x6c\x67y\x6dfr\x7ah\x6dj"]="eg\x67";${"\x47L\x4f\x42A\x4c\x53"}["\x64vs\x6bq\x70my\x77\x62\x73"]="\x73\x6e\x6f\x77\x62\x61\x6c\x6c";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x64p\x73\x68\x6dq\x66\x6e"]="f";${"G\x4c\x4f\x42ALS"}["q\x63\x71wj\x73\x61"]="\x61i\x6d\x50\x6fs";${"\x47\x4c\x4f\x42\x41L\x53"}["\x79\x6cxx\x76\x66\x6a\x67"]="\x74\x61\x72get";${"G\x4cOBALS"}["\x6f\x76\x6e\x7axf\x6e"]="ol\x64\x49\x74e\x6d";${"\x47\x4cOB\x41\x4c\x53"}["\x79\x67\x75\x79\x75\x6f\x71\x6e\x67\x64"]="\x64\x69st";${"\x47\x4c\x4f\x42\x41L\x53"}["kmbf\x64x\x74"]="n\x65\x77P\x6fs";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x63ds\x71\x67d\x65v\x75v"]="\x63";${"\x47L\x4fBA\x4c\x53"}["\x7aj\x6fcvon\x69\x71t"]="v\x61lid";${"\x47LO\x42\x41\x4c\x53"}["i\x70gl\x61\x61e\x64"]="l\x65\x6e";${"G\x4c\x4f\x42A\x4c\x53"}["\x6d\x62m\x76\x64\x77\x71\x75tte\x78"]="\x6d\x65\x73s\x61\x67\x65";${"G\x4cOBAL\x53"}["yv\x76\x66w\x64\x65\x72\x67\x74\x6a"]="t\x69l\x65";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["e\x7a\x71\x67un\x70\x67\x77\x65"]="\x6e\x62t";${"\x47\x4cO\x42\x41\x4c\x53"}["\x78\x64\x6cp\x75\x68\x6dbt\x6bmj"]="\x64\x6f\x74";${"\x47\x4cOBA\x4cS"}["\x6bt\x70\x66\x70v\x6bh"]="\x64\x6f\x74\x31";${"G\x4c\x4fBA\x4cS"}["\x70\x6b\x74\x6c\x68ha"]="\x6d\x61xDi\x73t\x61\x6e\x63e";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x65\x6cw\x74u\x6f\x72\x62w\x68"]="e\x79e\x50o\x73";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x62\x75\x76\x6bv\x78\x65\x6ft"]="\x6a";${"\x47L\x4f\x42A\x4c\x53"}["\x6f\x68de\x6d\x74y\x6d\x65\x6d"]="\x74\x65\x6d\x70os";${"GL\x4fB\x41\x4c\x53"}["\x6efl\x61slu\x79\x62\x75\x78\x65"]="\x63u\x72\x72\x65\x6et\x54\x69\x63\x6b";${"GL\x4f\x42A\x4cS"}["b\x64\x6c\x68\x6d\x61\x71\x73\x6f\x78\x6f\x6e"]="e\x6e\x74\x72\x79";${"\x47L\x4f\x42\x41\x4c\x53"}["\x6c\x6c\x72\x76hi\x68\x74"]="e\x6e\x74ries";${"G\x4c\x4fB\x41L\x53"}["\x62\x79\x6f\x63\x62o\x77\x6c"]="\x6d\x6f\x76\x69ng";${"G\x4c\x4f\x42\x41L\x53"}["i\x75\x6a\x67\x6c\x6f"]="\x6d\x6f\x74";${"\x47\x4cOB\x41\x4c\x53"}["\x79v\x6ags\x65\x74\x73"]="\x68e\x61dYa\x77";${"\x47\x4cOB\x41\x4c\x53"}["\x74\x63\x6b\x61qot\x74t\x79\x64\x73"]="ya\x77";${"\x47\x4c\x4f\x42A\x4cS"}["\x66\x64\x72\x71e\x72\x74\x70bnj"]="\x79";${"\x47LOB\x41\x4c\x53"}["l\x70\x66\x6f\x6e\x78\x65\x75\x63"]="\x74\x6f";${"G\x4c\x4f\x42\x41L\x53"}["\x69\x74w\x66\x7a\x7a\x75"]="is\x46irst";${"\x47\x4cO\x42\x41\x4cS"}["\x6b\x6d\x74\x6f\x6dt\x6f"]="\x64e\x6c\x74\x61\x41\x6e\x67l\x65";${"G\x4c\x4f\x42\x41\x4c\x53"}["\x79\x65\x6e\x6d\x73\x75"]="\x64i\x66\x66";${"GLO\x42\x41\x4c\x53"}["l\x62\x72w\x72\x74\x65j\x71\x67e"]="d\x69\x66\x66\x59";${"\x47L\x4fB\x41\x4cS"}["\x76v\x77\x75u\x64\x79g"]="\x64\x69\x66\x66\x5a";${"G\x4c\x4f\x42\x41\x4c\x53"}["if\x6ch\x78\x61s\x69x\x6ekh"]="\x64y";${"\x47\x4c\x4f\x42\x41\x4cS"}["\x62\x6fkq\x6a\x65\x72\x65"]="d\x7a";${"\x47LO\x42\x41\x4c\x53"}["nh\x78\x75\x72\x75\x61"]="\x63h\x75\x6ek";${"\x47\x4c\x4f\x42\x41\x4cS"}["\x69\x6a\x6d\x74\x77xn\x76\x64"]="\x74i\x63kD\x69\x66\x66";${"G\x4cO\x42\x41\x4cS"}["x\x72\x6b\x69aurn\x71\x74"]="\x64\x69\x73\x74\x61\x6ece\x53\x71\x75\x61r\x65\x64";${"\x47\x4c\x4f\x42\x41\x4cS"}["\x61\x70\x6a\x6d\x71\x6eqz"]="\x72e\x76ert";${"GLOB\x41\x4cS"}["lwb\x67\x69r\x6b"]="\x61d\x64";${"\x47\x4c\x4fB\x41\x4cS"}["g\x64\x6a\x72z\x64\x66q\x73x\x61"]="\x69\x74e\x6d";${"G\x4c\x4f\x42\x41\x4c\x53"}["\x74q\x6dx\x62\x6dvuf"]="k\x65\x79";${"\x47\x4cO\x42\x41L\x53"}["\x64b\x68\x6ff\x70\x62\x66\x70\x62v\x6d"]="blo\x63\x6b";${"G\x4c\x4f\x42AL\x53"}["\x79i\x68i\x6dunzv"]="b\x6c\x6f\x63\x6b\x73\x61ro\x75\x6e\x64";${"\x47L\x4fB\x41L\x53"}["i\x66vklt\x72g\x7a"]="\x62\x62";${"\x47L\x4f\x42\x41L\x53"}["rcut\x70\x73\x79s\x6e\x66"]="m\x6f\x76Y";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["v\x75\x68c\x6en\x65"]="i\x64";${"G\x4c\x4fBA\x4c\x53"}["\x71e\x6fhv\x6c\x72\x71\x6b\x62"]="\x66lag\x73";${"G\x4cOBA\x4c\x53"}["hk\x72\x6f\x65\x78z\x62\x64\x6f\x71"]="\x67\x6d";${"\x47L\x4fBA\x4cS"}["by\x64\x66\x79\x6f\x61\x65\x6a\x66"]="\x72\x65\x71\x75\x69\x72\x65m\x65\x6et\x49\x64";${"\x47\x4c\x4fBA\x4cS"}["m\x79y\x70\x6dj\x68gy"]="p";${"GL\x4f\x42\x41\x4c\x53"}["\x77\x62\x6a\x6b\x72\x72\x68\x74\x6cf"]="\x69d\x65\x6et\x69fi\x65r";${"G\x4c\x4f\x42A\x4c\x53"}["\x73g\x76\x79\x76\x71\x78\x6e\x72i\x68"]="\x6e\x65\x65d\x41\x43\x4b";${"\x47\x4c\x4f\x42\x41L\x53"}["\x6aj\x69\x65dv\x76f\x66"]="\x70\x61\x63\x6bet";${"\x47LOB\x41\x4cS"}["wguy\x6c\x77\x71\x74g\x6a\x6b"]="\x65\x76";${"\x47\x4cO\x42\x41LS"}["\x62\x63q\x70\x6e\x6e\x68\x67\x6f"]="\x74\x69\x6d\x69\x6eg\x73";${"\x47\x4c\x4fBALS"}["\x66y\x61h\x63\x63v\x66"]="bo\x6fl";${"\x47\x4c\x4f\x42AL\x53"}["yy\x6cgjn\x65\x72f"]="\x6cay\x65\x72";${"\x47\x4cO\x42A\x4c\x53"}["\x6d\x71\x77\x6b\x78\x63l\x68k\x63\x6c"]="\x6ce\x67";${"G\x4c\x4f\x42A\x4c\x53"}["w\x77\x6d\x6b\x79\x6a\x6f\x6e\x66"]="\x63h\x75\x6e\x6bX";${"G\x4c\x4fB\x41\x4c\x53"}["pl\x6b\x6f\x63t\x62\x70\x68\x79e\x6f"]="\x63e\x6e\x74e\x72Z";${"\x47\x4c\x4f\x42\x41L\x53"}["\x62\x6ew\x62\x77wj"]="i";${"\x47L\x4f\x42\x41L\x53"}["\x64\x67u\x63\x6a\x75\x6d\x6d\x77j\x79"]="\x7a";${"\x47\x4c\x4fB\x41L\x53"}["u\x6e\x77h\x75pr\x71f"]="\x63\x65\x6e\x74\x65\x72\x58";${"GLOBA\x4c\x53"}["l\x69r\x6b\x73m\x79"]="\x6c\x61\x73tC\x68\x75\x6ek";${"GL\x4fBAL\x53"}["fyh\x69\x71\x77q"]="\x76\x69\x65w\x44\x69s\x74a\x6e\x63e";${"\x47L\x4f\x42\x41\x4c\x53"}["n\x77k\x67g\x77\x78\x72\x6dr"]="m\x73\x67";${"\x47L\x4fB\x41\x4c\x53"}["\x6f\x73\x6f\x64\x79\x77\x67\x6bfu"]="\x63\x68\x75n\x6b\x5a";${"\x47LOBA\x4cS"}["kpdu\x64\x79\x6f\x63\x79"]="\x70\x6f\x73";${"\x47\x4cOBA\x4cS"}["\x6eaoy\x6d\x76\x6etu\x6d"]="\x63\x6f\x75\x6e\x74";${"G\x4cOB\x41\x4c\x53"}["\x66\x64\x74o\x70m\x77t"]="\x64\x69\x73\x74\x61\x6e\x63\x65";${"\x47LOBA\x4c\x53"}["\x77hnk\x76v\x77\x71"]="\x78";${"\x47L\x4fBALS"}["\x71\x70qwy\x6a\x77"]="\x70\x61y\x6c\x6f\x61\x64";${"\x47L\x4f\x42\x41L\x53"}["g\x6c\x71do\x65\x68x\x68x"]="ol\x64L\x65v\x65\x6c";${"G\x4c\x4f\x42ALS"}["\x63js\x6d\x72\x6d\x65\x77\x73fr"]="\x5a";${"GL\x4fB\x41\x4cS"}["\x66y\x65\x6abm\x61u\x6fi\x62"]="\x58";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["f\x64\x79\x62\x67\x74\x63\x78\x72w"]="d";${"\x47L\x4f\x42\x41L\x53"}["\x61j\x76\x65z\x71a\x62\x68p\x7a"]="\x69\x6ed\x65\x78";${"G\x4c\x4fB\x41\x4c\x53"}["wiwgfpp\x6f\x65"]="t\x61r\x67\x65t\x4c\x65v\x65\x6c";${"\x47LO\x42\x41\x4cS"}["u\x70\x6d\x76\x6dxf\x75"]="\x73\x74\x72";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x79k\x65u\x64\x64s\x77\x71e\x77\x64"]="lis\x74";${"\x47\x4c\x4f\x42AL\x53"}["\x77hw\x62\x76c\x79\x62"]="\x61c\x68\x69\x65\x76\x65\x6d\x65\x6e\x74I\x64";${"\x47LO\x42\x41\x4c\x53"}["\x6ed\x63\x68c\x69\x73\x73\x6ccwb"]="\x63\x6c\x69\x65n\x74I\x44";${"\x47L\x4f\x42\x41\x4c\x53"}["\x78\x6a\x62f\x6e\x75oo\x68\x6d\x77i"]="\x70ort";${"G\x4c\x4f\x42A\x4c\x53"}["\x69\x66kr\x65ul"]="ip";${"\x47\x4c\x4f\x42\x41\x4cS"}["\x68\x71iwy\x70\x7a"]="i\x6et\x65r\x66\x61\x63\x65";${"GLO\x42A\x4c\x53"}["\x78e\x7anb\x70ef\x69\x6a\x6b"]="at\x74\x61\x63\x68me\x6e\x74";${"\x47L\x4fB\x41\x4cS"}["\x71\x70\x66\x79\x70\x68\x70\x63"]="\x70\x6c\x75\x67\x69n";${"GL\x4f\x42\x41\x4c\x53"}["\x6a\x68\x79\x65\x68ss\x75n\x73"]="n\x61\x6de";${"\x47\x4c\x4fBAL\x53"}["om\x73v\x77\x68\x6b"]="\x70\x6c\x61y\x65r";${"GL\x4f\x42ALS"}["m\x75\x61w\x61w\x68\x69\x6f\x64\x78g"]="\x76\x61\x6cue";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x66\x65\x72i\x65\x6a\x67f\x68lc"]="e\x78p";${"\x47\x4cO\x42AL\x53"}["\x71ka\x62\x61g\x78\x78"]="\x6c\x65\x76\x65l";${"G\x4c\x4fBAL\x53"}["n\x78\x77b\x76i\x74\x66gk\x61"]="\x70\x6b";${"GLO\x42\x41\x4cS"}["\x6b\x6e\x6ee\x76r"]="e\x6e\x74\x69\x74y";use pocketmine\block\Block;use pocketmine\block\Air;use pocketmine\block\Fire;use pocketmine\block\PressurePlate;use pocketmine\command\CommandSender;use pocketmine\entity\Animal;use pocketmine\entity\Arrow;use pocketmine\entity\Attribute;use pocketmine\entity\AttributeMap;use pocketmine\entity\Boat;use pocketmine\entity\Effect;use pocketmine\entity\Entity;use pocketmine\entity\FishingHook;use pocketmine\entity\Human;use pocketmine\entity\Item as DroppedItem;use pocketmine\entity\Living;use pocketmine\entity\Minecart;use pocketmine\entity\Projectile;use pocketmine\entity\ThrownExpBottle;use pocketmine\entity\ThrownPotion;use pocketmine\event\block\BlockBreakEvent;use pocketmine\event\block\ItemFrameDropItemEvent;use pocketmine\event\block\SignChangeEvent;use pocketmine\event\entity\EntityCombustByEntityEvent;use pocketmine\event\entity\EntityDamageByBlockEvent;use pocketmine\event\entity\EntityDamageByEntityEvent;use pocketmine\event\entity\EntityDamageEvent;use pocketmine\event\entity\EntityRegainHealthEvent;use pocketmine\event\entity\EntityShootBowEvent;use pocketmine\event\entity\ProjectileLaunchEvent;use pocketmine\event\inventory\CraftItemEvent;use pocketmine\event\inventory\InventoryCloseEvent;use pocketmine\event\inventory\InventoryPickupArrowEvent;use pocketmine\event\inventory\InventoryPickupItemEvent;use pocketmine\event\player\PlayerExhaustEvent;use pocketmine\event\player\PlayerTextPreSendEvent;use pocketmine\event\player\PlayerAchievementAwardedEvent;use pocketmine\event\player\PlayerAnimationEvent;use pocketmine\event\player\PlayerBedEnterEvent;use pocketmine\event\player\PlayerBedLeaveEvent;use pocketmine\event\player\PlayerChatEvent;use pocketmine\event\player\PlayerCommandPreprocessEvent;use pocketmine\event\player\PlayerDeathEvent;use pocketmine\event\player\PlayerDropItemEvent;use pocketmine\event\player\PlayerGameModeChangeEvent;use pocketmine\event\player\PlayerHungerChangeEvent;use pocketmine\event\player\PlayerInteractEvent;use pocketmine\event\player\PlayerItemConsumeEvent;use pocketmine\event\player\PlayerJoinEvent;use pocketmine\event\player\PlayerKickEvent;use pocketmine\event\player\PlayerLoginEvent;use pocketmine\event\player\PlayerMoveEvent;use pocketmine\event\player\PlayerPreLoginEvent;use pocketmine\event\player\PlayerQuitEvent;use pocketmine\event\player\PlayerRespawnEvent;use pocketmine\event\player\PlayerToggleSneakEvent;use pocketmine\event\player\PlayerToggleSprintEvent;use pocketmine\event\player\PlayerUseFishingRodEvent;use pocketmine\event\server\DataPacketReceiveEvent;use pocketmine\event\server\DataPacketSendEvent;use pocketmine\event\TextContainer;use pocketmine\event\Timings;use pocketmine\event\TranslationContainer;use pocketmine\inventory\AnvilInventory;use pocketmine\inventory\BaseTransaction;use pocketmine\inventory\BigShapedRecipe;use pocketmine\inventory\BigShapelessRecipe;use pocketmine\inventory\DropItemTransaction;use pocketmine\inventory\EnchantInventory;use pocketmine\inventory\FurnaceInventory;use pocketmine\inventory\Inventory;use pocketmine\inventory\InventoryHolder;use pocketmine\inventory\PlayerInventory;use pocketmine\inventory\ShapedRecipe;use pocketmine\inventory\ShapelessRecipe;use pocketmine\item\enchantment\Enchantment;use pocketmine\item\FoodSource;use pocketmine\item\Item;use pocketmine\item\Potion;use pocketmine\level\ChunkLoader;use pocketmine\level\format\FullChunk;use pocketmine\level\Level;use pocketmine\level\Location;use pocketmine\level\Position;use pocketmine\level\sound\LaunchSound;use pocketmine\level\WeakPosition;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\Network;use pocketmine\network\protocol\AdventureSettingsPacket;use pocketmine\network\protocol\AnimatePacket;use pocketmine\network\protocol\BatchPacket;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 as ProtocolInfo;use pocketmine\network\protocol\InteractPacket;use pocketmine\network\protocol\MovePlayerPacket;use pocketmine\network\protocol\PlayerActionPacket;use pocketmine\network\protocol\PlayStatusPacket;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\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=[];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;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;private$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=[];public function linkHookToPlayer(FishingHook$entity){if($entity->isAlive()){$this->setFishingHook(${${"G\x4c\x4f\x42A\x4c\x53"}["\x6bn\x6e\x65\x76\x72"]});${${"GL\x4fB\x41\x4c\x53"}["n\x78w\x62\x76i\x74f\x67\x6b\x61"]}=new EntityEventPacket();$pk->eid=$this->getFishingHook()->getId();$pk->event=EntityEventPacket::FISH_HOOK_POSITION;$this->server->broadcastPacket($this->level->getPlayers(),${${"\x47\x4c\x4f\x42\x41L\x53"}["\x6e\x78\x77b\x76\x69\x74fg\x6b\x61"]});return true;}return false;}public function unlinkHookFromPlayer(){if($this->fishingHook instanceof FishingHook){${${"\x47\x4c\x4f\x42AL\x53"}["\x6e\x78\x77\x62\x76i\x74\x66\x67\x6ba"]}=new EntityEventPacket();$pk->eid=$this->fishingHook->getId();$pk->event=EntityEventPacket::FISH_HOOK_TEASE;$this->server->broadcastPacket($this->level->getPlayers(),${${"\x47\x4c\x4f\x42\x41\x4cS"}["n\x78w\x62\x76\x69\x74\x66\x67\x6b\x61"]});$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){if(${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6b\x6e\x6e\x65\x76r"]}==null and$this->fishingHook instanceof FishingHook){$this->fishingHook->close();}$this->fishingHook=${${"GL\x4f\x42\x41\x4c\x53"}["k\x6en\x65\x76\x72"]};}public function getItemInHand(){return$this->inventory->getItemInHand();}public function getLeaveMessage(){return new TranslationContainer(TextFormat::YELLOW."%\x6d\x75l\x74\x69pl\x61\x79er.play\x65\x72\x2el\x65f\x74",[$this->getDisplayName()]);}public function setExperienceAndLevel(int$exp,int$level){trigger_error("\x54h\x69\x73\x20m\x65th\x6f\x64 i\x73 \x64\x65\x70r\x65cate\x64,\x20do\x20not\x20\x75se\x20i\x74",E_USER_DEPRECATED);$fbuwswf="ex\x70";return$this->setTotalXp(self::getTotalXpRequirement(${${"\x47\x4cO\x42\x41LS"}["\x71k\x61b\x61\x67\x78\x78"]})+${$fbuwswf});}public function setExp(int$exp){trigger_error("T\x68is\x20\x6de\x74h\x6f\x64\x20i\x73\x20\x64\x65pr\x65ca\x74ed, \x64\x6f \x6e\x6ft \x75\x73\x65 i\x74",E_USER_DEPRECATED);${"\x47LOB\x41\x4c\x53"}["tvgho\x69\x68\x6esn\x6a"]="e\x78p";return$this->setTotalXp(${${"\x47L\x4f\x42\x41\x4c\x53"}["\x74\x76g\x68\x6fi\x68ns\x6e\x6a"]});}public function setExpLevel(int$level){trigger_error("Th\x69\x73\x20me\x74\x68o\x64\x20i\x73\x20\x64e\x70\x72e\x63\x61\x74\x65d,\x20d\x6f\x20n\x6ft\x20u\x73\x65\x20\x69t",E_USER_DEPRECATED);return$this->setXpLevel(${${"G\x4cO\x42A\x4cS"}["\x71\x6b\x61\x62\x61\x67\x78\x78"]});}public function getExpectedExperience(){trigger_error("\x54\x68\x69\x73 \x6dethod\x20is \x64\x65pre\x63\x61\x74e\x64,\x20\x64\x6f not \x75\x73e\x20\x69t",E_USER_DEPRECATED);return self::getTotalXpRequirement($this->getXpLevel()+1);}public function getLevelUpExpectedExperience(){trigger_error("\x54h\x69s\x20\x6d\x65tho\x64 is\x20d\x65preca\x74e\x64, d\x6f\x20\x6eot u\x73e i\x74",E_USER_DEPRECATED);return self::getLevelXpRequirement($this->getXpLevel()+1);}public function calcExpLevel(){trigger_error("\x54\x68i\x73\x20\x6d\x65thod\x20\x69\x73 de\x70\x72\x65\x63\x61\x74e\x64, \x64\x6f\x20\x6eot \x75\x73e\x20\x69\x74",E_USER_DEPRECATED);}public function addExperience(int$exp){trigger_error("\x54h\x69\x73\x20\x6detho\x64 \x69\x73 de\x70\x72\x65ca\x74e\x64,\x20do n\x6f\x74 \x75se\x20\x69\x74",E_USER_DEPRECATED);return$this->addXp(${${"\x47LO\x42\x41L\x53"}["f\x65\x72\x69\x65\x6a\x67\x66\x68\x6c\x63"]});}public function addExpLevel(int$level){${"G\x4c\x4f\x42\x41L\x53"}["\x71\x63\x77\x74\x61\x6f\x6f\x65"]="l\x65\x76\x65l";trigger_error("\x54h\x69\x73\x20me\x74\x68od \x69s\x20\x64\x65\x70re\x63\x61t\x65\x64,\x20do not \x75\x73e \x69t",E_USER_DEPRECATED);return$this->addXpLevel(${${"G\x4cO\x42\x41\x4c\x53"}["q\x63\x77\x74\x61\x6f\x6fe"]});}public function getExp(){trigger_error("Th\x69\x73 \x6d\x65\x74h\x6fd\x20\x69\x73\x20dep\x72\x65ca\x74e\x64, \x64\x6f not \x75s\x65 \x69t",E_USER_DEPRECATED);return$this->getTotalXp();}public function getExpLevel(){trigger_error("T\x68i\x73\x20me\x74h\x6f\x64 \x69s\x20d\x65pre\x63a\x74e\x64,\x20\x64\x6f\x20n\x6f\x74 use\x20it",E_USER_DEPRECATED);return$this->getXpLevel();}public function canPickupExp():bool{trigger_error("Th\x69\x73 \x6d\x65thod \x69s d\x65\x70re\x63\x61\x74\x65d, do no\x74\x20us\x65 i\x74",E_USER_DEPRECATED);return$this->canPickupXp();}public function resetExpCooldown(){trigger_error("\x54\x68is\x20m\x65th\x6fd\x20i\x73 \x64\x65prec\x61ted, \x64\x6f\x20n\x6f\x74\x20\x75\x73\x65 \x69\x74",E_USER_DEPRECATED);$this->resetXpCooldown();}public function updateExperience(){trigger_error("Th\x69s\x20met\x68od\x20\x69\x73\x20\x64e\x70r\x65cat\x65d, d\x6f\x20no\x74\x20us\x65 i\x74",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){${"\x47L\x4fBA\x4c\x53"}["\x76\x6c\x71\x6f\x67\x64\x62b\x61p\x6b"]="\x76a\x6c\x75\x65";if(${${"\x47\x4c\x4f\x42\x41L\x53"}["\x76\x6c\x71\x6fgdbb\x61\x70\x6b"]}===true){$this->server->getNameBans()->addBan($this->getName(),null,null,null);$this->kick(TextFormat::RED."Yo\x75 \x68ave \x62\x65\x65n \x62a\x6e\x6eed");}else{$this->server->getNameBans()->remove($this->getName());}}public function isWhitelisted():bool{return$this->server->isWhitelisted(strtolower($this->getName()));}public function setWhitelisted($value){$ltehbavd="\x76\x61\x6c\x75\x65";if(${$ltehbavd}===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["fi\x72\x73\x74Pla\x79\x65d"]:null;}public function getLastPlayed(){return$this->namedtag instanceof CompoundTag?$this->namedtag["lastPl\x61yed"]:null;}public function hasPlayedBefore(){return$this->playedBefore;}public function setAllowFlight($value){${"G\x4c\x4f\x42\x41\x4c\x53"}["v\x64\x6dr\x6dx\x76b\x6d"]="\x76\x61\x6c\x75e";$this->allowFlight=(bool)${${"GL\x4fBA\x4c\x53"}["\x76\x64\x6d\x72\x6d\x78\x76\x62\x6d"]};$this->sendSettings();}public function getAllowFlight():bool{return$this->allowFlight;}public function setAutoJump($value){$this->autoJump=${${"GL\x4fB\x41L\x53"}["\x6d\x75a\x77a\x77hi\x6fd\x78g"]};$this->sendSettings();}public function hasAutoJump():bool{return$this->autoJump;}public function spawnTo(Player$player){if($this->spawned and$player->spawned and$this->isAlive()and$player->isAlive()and$player->getLevel()===$this->level and$player->canSee($this)and!$this->isSpectator()){parent::spawnTo(${${"\x47\x4c\x4f\x42\x41\x4cS"}["oms\x76\x77\x68k"]});}}public function getServer(){return$this->server;}public function getRemoveFormat(){return$this->removeFormat;}public function setRemoveFormat($remove=true){$zyvkgjdufoa="\x72\x65\x6d\x6fv\x65";$this->removeFormat=(bool)${$zyvkgjdufoa};}public function canSee(Player$player):bool{return!isset($this->hiddenPlayers[$player->getRawUniqueId()]);}public function hidePlayer(Player$player){$mnbwvmrvthk="\x70\x6c\x61\x79\x65r";$kyuptmhbxt="\x70\x6c\x61y\x65\x72";if(${$mnbwvmrvthk}===$this){return;}$this->hiddenPlayers[$player->getRawUniqueId()]=${$kyuptmhbxt};$player->despawnFrom($this);}public function showPlayer(Player$player){$hwsbhxw="\x70\x6c\x61\x79\x65r";if(${$hwsbhxw}===$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){${"\x47LO\x42\x41\x4c\x53"}["\x78\x63dl\x72c\x69vu\x6d\x6c\x74"]="\x76a\x6c\x75\x65";$oopqwolie="\x76a\x6cu\x65";if(${${"\x47L\x4fB\x41\x4c\x53"}["x\x63\x64l\x72\x63\x69\x76\x75\x6d\x6c\x74"]}===$this->isOp()){return;}if(${$oopqwolie}===true){$this->server->addOp($this->getName());}else{$this->server->removeOp($this->getName());}$this->recalculatePermissions();}public function isPermissionSet($name){return$this->perm->isPermissionSet(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6a\x68\x79\x65\x68\x73su\x6es"]});}public function hasPermission($name):bool{if($this->perm==null)return false;else return$this->perm->hasPermission(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["jhy\x65\x68s\x73uns"]});}public function addAttachment(Plugin$plugin,$name=null,$value=null){${"\x47\x4c\x4fB\x41\x4cS"}["\x67\x63\x69ld\x6a\x61g\x6f\x61\x72"]="v\x61l\x75\x65";if($this->perm==null)return false;return$this->perm->addAttachment(${${"\x47\x4cOB\x41\x4c\x53"}["qp\x66\x79\x70\x68p\x63"]},${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6a\x68y\x65\x68s\x73\x75\x6e\x73"]},${${"\x47L\x4fBA\x4cS"}["\x67cild\x6a\x61g\x6fa\x72"]});}public function removeAttachment(PermissionAttachment$attachment){if($this->perm==null){return false;}$this->perm->removeAttachment(${${"\x47\x4c\x4f\x42\x41L\x53"}["\x78\x65z\x6e\x62\x70efij\x6b"]});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=${${"G\x4cO\x42\x41\x4c\x53"}["h\x71\x69\x77y\x70\x7a"]};$this->windows=new\SplObjectStorage();$this->perm=new PermissibleBase($this);$this->namedtag=new CompoundTag();$this->server=Server::getInstance();$this->lastBreak=PHP_INT_MAX;$this->ip=${${"\x47\x4c\x4f\x42\x41L\x53"}["\x69\x66kre\x75l"]};$this->port=${${"\x47\x4c\x4fBAL\x53"}["\x78j\x62\x66nuo\x6f\x68mw\x69"]};$this->clientID=${${"\x47\x4c\x4f\x42A\x4c\x53"}["nd\x63\x68\x63is\x73l\x63\x77b"]};$this->loaderId=Level::generateChunkLoaderId($this);$this->chunksPerTick=(int)$this->server->getProperty("c\x68un\x6b-sending\x2e\x70\x65r-\x74i\x63k",4);$this->spawnThreshold=(int)$this->server->getProperty("\x63\x68\x75nk-\x73\x65\x6ed\x69\x6e\x67\x2e\x73\x70a\x77n-\x74h\x72e\x73h\x6f\x6cd",56);$this->spawnPosition=null;$this->gamemode=$this->server->getGamemode();$this->setLevel($this->server->getDefaultLevel());$this->viewDistance=$this->server->getViewDistance();$this->newPosition=new Vector3(0,0,0);$this->boundingBox=new AxisAlignedBB(0,0,0,0,0,0);$this->uuid=null;$this->rawUUID=null;$this->creationTime=microtime(true);$this->exp=0;$this->expLevel=0;$this->food=20;Entity::setHealth(20);}public function removeAchievement($achievementId){if($this->hasAchievement(${${"\x47LO\x42\x41\x4c\x53"}["w\x68w\x62v\x63yb"]})){${"G\x4c\x4fBA\x4c\x53"}["\x78\x6b\x69\x62pny"]="\x61\x63\x68\x69e\x76\x65\x6d\x65\x6et\x49\x64";$this->achievements[${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["x\x6b\x69\x62\x70n\x79"]}]=false;}}public function hasAchievement($achievementId):bool{${"\x47LO\x42\x41L\x53"}["\x62j\x79\x64\x79w\x77\x71\x62"]="a\x63\x68\x69e\x76e\x6d\x65\x6e\x74\x49\x64";if(!isset(Achievement::${${"\x47\x4c\x4f\x42A\x4cS"}["\x79\x6b\x65\x75dd\x73wq\x65\x77\x64"]}[${${"\x47\x4c\x4fB\x41L\x53"}["bjy\x64\x79\x77w\x71\x62"]}])or!isset($this->achievements)){$this->achievements=[];return false;}return isset($this->achievements[${${"\x47\x4c\x4fBA\x4c\x53"}["wh\x77\x62\x76\x63\x79b"]}])and$this->achievements[${${"\x47L\x4f\x42ALS"}["w\x68w\x62\x76c\x79b"]}]!=false;}public function isConnected():bool{return$this->connected===true;}public function getDisplayName(){return$this->displayName;}public function setDisplayName($name){${"GLOB\x41\x4c\x53"}["\x6c\x66\x6dva\x62\x69c"]="\x6e\x61\x6d\x65";$this->displayName=${${"GL\x4f\x42A\x4c\x53"}["lfm\x76\x61\x62\x69\x63"]};if($this->spawned){$this->server->updatePlayerListData($this->getUniqueId(),$this->getId(),$this->getDisplayName(),$this->getSkinId(),$this->getSkinData());}}public function setSkin($str,$skinId){$bosueur="ski\x6e\x49d";${"GL\x4f\x42\x41\x4c\x53"}["\x64d\x78\x6d\x75c\x6b\x66"]="str";parent::setSkin(${${"G\x4cO\x42\x41\x4c\x53"}["\x64d\x78muc\x6b\x66"]},${$bosueur});if($this->spawned){$stdgyebv="s\x6b\x69\x6e\x49d";$this->server->updatePlayerListData($this->getUniqueId(),$this->getId(),$this->getDisplayName(),${$stdgyebv},${${"\x47LOB\x41L\x53"}["u\x70\x6d\x76\x6dxf\x75"]});}}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){${"G\x4c\x4f\x42\x41\x4cS"}["\x74d\x77\x65n\x6b"]="\x6fl\x64Le\x76\x65\x6c";${${"\x47\x4c\x4f\x42\x41LS"}["\x74\x64\x77e\x6e\x6b"]}=$this->level;if(parent::switchLevel(${${"GL\x4f\x42\x41\x4cS"}["w\x69\x77\x67\x66pp\x6fe"]})){foreach($this->usedChunks as${${"\x47\x4cOB\x41LS"}["\x61\x6a\x76\x65\x7a\x71\x61b\x68\x70\x7a"]}=>${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x66\x64y\x62\x67t\x63\x78rw"]}){$mdfdecec="X";$gzwdzhf="\x5a";$kkvnmjuuwz="i\x6edex";Level::getXZ(${$kkvnmjuuwz},${$mdfdecec},${$gzwdzhf});$this->unloadChunk(${${"\x47\x4cO\x42\x41L\x53"}["\x66\x79ej\x62m\x61\x75\x6f\x69b"]},${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x63\x6a\x73mrm\x65\x77sf\x72"]},${${"\x47\x4cOB\x41L\x53"}["\x67l\x71\x64oe\x68x\x68\x78"]});}$this->usedChunks=[];${${"\x47\x4cOB\x41\x4c\x53"}["n\x78w\x62\x76i\x74fg\x6ba"]}=new SetTimePacket();$pk->time=$this->level->getTime();${"\x47L\x4f\x42\x41\x4cS"}["pe\x71g\x73\x70"]="\x70\x6b";$pk->started=$this->level->stopTime==false;$this->dataPacket(${${"GL\x4f\x42\x41\x4c\x53"}["p\x65qg\x73\x70"]});if($targetLevel->getDimension()!=$oldLevel->getDimension()){$teyfdinl="p\x6b";${$teyfdinl}=new ChangeDimensionPacket();$pk->dimension=$targetLevel->getDimension();$pk->x=$this->x;$qgcrdiq="p\x6b";$pk->y=$this->y;$pk->z=$this->z;$this->dataPacket(${$qgcrdiq});$this->shouldSendStatus=true;}$targetLevel->getWeather()->sendWeather($this);if($this->spawned){$this->spawnToAll();}}}private function unloadChunk($x,$z,Level$level=null){${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x78\x74\x73er\x78\x6c\x65\x76\x65"]="z";${"G\x4cO\x42\x41LS"}["bl\x70y\x76\x69\x65\x61\x79\x6f"]="\x69\x6ed\x65\x78";$qkxqcdfvv="x";${"GL\x4f\x42\x41L\x53"}["\x66\x72\x75\x6dc\x76\x75"]="\x69n\x64\x65\x78";$pkpuztjzyf="z";${${"\x47\x4c\x4f\x42\x41L\x53"}["\x71k\x61\x62\x61g\x78\x78"]}=${${"\x47L\x4f\x42\x41\x4c\x53"}["\x71\x6b\x61\x62\x61\x67\x78\x78"]}===null?$this->level:${${"\x47LO\x42\x41\x4c\x53"}["\x71\x6b\x61\x62\x61gx\x78"]};${${"\x47L\x4fB\x41\x4c\x53"}["\x62\x6c\x70yvi\x65\x61\x79o"]}=Level::chunkHash(${$qkxqcdfvv},${$pkpuztjzyf});${"\x47\x4cO\x42\x41LS"}["\x72o\x75\x77\x76\x75\x6c\x69\x63x\x73"]="\x78";if(isset($this->usedChunks[${${"\x47\x4cO\x42\x41\x4c\x53"}["\x66\x72u\x6d\x63v\x75"]}])){${"\x47L\x4f\x42ALS"}["eb\x70\x6c\x68\x64sb\x78\x6e"]="z";$zrrchl="\x65\x6e\x74\x69\x74\x79";${"\x47\x4cO\x42\x41LS"}["p\x6a\x62\x78\x65l\x65k\x6a"]="\x78";$ijjvluhcjzp="\x69\x6ed\x65x";foreach($level->getChunkEntities(${${"G\x4c\x4f\x42\x41\x4cS"}["\x70\x6a\x62\x78\x65lekj"]},${${"\x47\x4cOB\x41\x4cS"}["\x65\x62\x70lh\x64\x73\x62x\x6e"]})as${$zrrchl}){$bomfgybtv="\x65n\x74it\x79";if(${$bomfgybtv}!==$this){$entity->despawnFrom($this);}}unset($this->usedChunks[${$ijjvluhcjzp}]);}$level->unregisterChunkLoader($this,${${"\x47L\x4f\x42\x41\x4c\x53"}["\x72o\x75\x77v\x75\x6ci\x63\x78s"]},${${"\x47\x4c\x4f\x42\x41L\x53"}["\x78t\x73e\x72\x78\x6ce\x76\x65"]});unset($this->loadQueue[${${"GL\x4f\x42\x41L\x53"}["\x61j\x76\x65\x7aq\x61\x62\x68\x70\x7a"]}]);}public function getSpawn():Position{if($this->spawnPosition instanceof Position and$this->spawnPosition->getLevel()instanceof Level){return$this->spawnPosition;}else{$lnjzrhmso="\x6ce\x76\x65\x6c";${$lnjzrhmso}=$this->server->getDefaultLevel();return$level->getSafeSpawn();}}public function sendChunk($x,$z,$payload,$ordering=FullChunkDataPacket::ORDER_COLUMNS){${"G\x4c\x4fBA\x4c\x53"}["\x62r\x78\x6b\x74\x72\x71\x6ar\x66\x7a\x70"]="\x78";$ymogttbmgfw="\x70\x61\x79\x6co\x61d";${"GLO\x42\x41\x4cS"}["\x66\x63\x77\x6b\x6f\x6f\x69\x6c\x76"]="z";if($this->connected===false){return;}$this->usedChunks[Level::chunkHash(${${"\x47\x4cOB\x41LS"}["\x62\x72\x78\x6b\x74\x72\x71\x6a\x72\x66\x7a\x70"]},${${"G\x4c\x4f\x42AL\x53"}["\x66\x63wkoo\x69l\x76"]})]=true;$this->chunkLoadCount++;if(${$ymogttbmgfw} instanceof DataPacket){$clusjgqmtht="p\x61\x79\x6c\x6f\x61\x64";$this->dataPacket(${$clusjgqmtht});}else{${"\x47\x4c\x4f\x42\x41L\x53"}["\x69\x76ik\x70f\x73"]="x";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x67eu\x63\x65mxg\x62\x6bd"]="\x70\x6b";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x73\x72\x67\x65w\x79\x75"]="\x6f\x72\x64e\x72\x69\x6e\x67";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x67e\x75\x63\x65mx\x67b\x6b\x64"]}=new FullChunkDataPacket();$pk->chunkX=${${"G\x4cO\x42\x41L\x53"}["ivikpfs"]};$agmybe="z";$pk->chunkZ=${$agmybe};$pk->order=${${"\x47LO\x42\x41\x4c\x53"}["\x73\x72\x67e\x77yu"]};$pk->data=${${"\x47\x4c\x4fB\x41\x4cS"}["\x71p\x71\x77y\x6a\x77"]};$this->batchDataPacket(${${"\x47LOB\x41\x4cS"}["\x6e\x78\x77\x62\x76itf\x67\x6b\x61"]});}if($this->spawned){$omgykykmkojz="e\x6e\x74i\x74\x79";$ajhbqbx="\x7a";foreach($this->level->getChunkEntities(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x77\x68\x6e\x6b\x76v\x77\x71"]},${$ajhbqbx})as${$omgykykmkojz}){$yowvbik="ent\x69\x74\x79";if(${$yowvbik}!==$this and!$entity->closed and$entity->isAlive()){$entity->spawnTo($this);}}}}protected function sendNextChunk(){if($this->connected===false){return;}Timings::$playerChunkSendTimer->startTiming();${"\x47LO\x42\x41L\x53"}["\x77\x63pb\x6a\x73\x77\x73"]="\x63\x6funt";${${"G\x4c\x4f\x42\x41L\x53"}["\x77c\x70\x62\x6asw\x73"]}=0;foreach($this->loadQueue as${${"\x47LO\x42\x41\x4cS"}["\x61j\x76\x65\x7aqab\x68\x70z"]}=>${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x66\x64\x74o\x70mw\x74"]}){${"G\x4c\x4fBA\x4cS"}["oe\x6b\x74\x78\x64\x69"]="Z";${"\x47\x4c\x4fB\x41LS"}["\x74\x65d\x6d\x6c\x67ky\x6a\x62\x7a\x6b"]="X";$xujjfsimkahg="\x58";if(${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6e\x61oym\x76\x6e\x74u\x6d"]}>=$this->chunksPerTick){break;}${"GL\x4f\x42A\x4c\x53"}["\x70\x6crr\x65\x65\x74"]="Z";${"\x47\x4c\x4fB\x41L\x53"}["\x69\x69\x65s\x6ed\x67\x6bx\x67k"]="\x58";${"\x47\x4cO\x42A\x4c\x53"}["w\x6c\x6ao\x73ic\x6b"]="\x5a";${$xujjfsimkahg}=null;$rhbaeshaitt="X";$lmotfbpox="X";$pnrmxfibrsrp="\x69n\x64\x65x";${${"\x47\x4c\x4fB\x41\x4c\x53"}["pl\x72r\x65\x65\x74"]}=null;Level::getXZ(${${"GL\x4f\x42\x41\x4cS"}["\x61\x6av\x65\x7a\x71ab\x68\x70z"]},${${"GL\x4fB\x41L\x53"}["\x69\x69\x65s\x6ed\x67\x6b\x78\x67\x6b"]},${${"GLO\x42A\x4c\x53"}["\x6fek\x74x\x64\x69"]});$uywrouyb="\x63\x6f\x75\x6et";++${$uywrouyb};$xwnspsmxkgib="\x69\x6edex";$this->usedChunks[${$xwnspsmxkgib}]=false;$this->level->registerChunkLoader($this,${$lmotfbpox},${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x63\x6a\x73m\x72\x6dew\x73fr"]},true);if(!$this->level->populateChunk(${$rhbaeshaitt},${${"\x47\x4c\x4fBA\x4c\x53"}["\x63\x6as\x6dr\x6dew\x73f\x72"]})){if($this->spawned and$this->teleportPosition===null){continue;}else{break;}}unset($this->loadQueue[${$pnrmxfibrsrp}]);$this->level->requestChunk(${${"\x47\x4cO\x42\x41\x4c\x53"}["\x74\x65\x64\x6d\x6c\x67k\x79\x6ab\x7a\x6b"]},${${"\x47\x4c\x4fBA\x4cS"}["\x77\x6c\x6aos\x69\x63\x6b"]},$this);if((count($this->loadQueue)==0)and$this->shouldSendStatus){$this->shouldSendStatus=false;${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6ex\x77\x62v\x69\x74\x66gk\x61"]}=new PlayStatusPacket();$pk->status=PlayStatusPacket::PLAYER_SPAWN;$this->dataPacket(${${"G\x4c\x4f\x42\x41L\x53"}["n\x78w\x62\x76\x69t\x66\x67\x6b\x61"]});}}if($this->chunkLoadCount>=$this->spawnThreshold and$this->spawned===false and$this->teleportPosition===null){$this->doFirstSpawn();}Timings::$playerChunkSendTimer->stopTiming();}protected function doFirstSpawn(){${"GL\x4f\x42A\x4c\x53"}["pp\x68\x6eyq\x6a\x7a\x67\x70d\x72"]="p\x6b";$mwboxyu="\x70\x6b";$this->spawned=true;$dnvgcjrgbc="c";$this->sendPotionEffects($this);$this->sendData($this);${${"\x47\x4c\x4fBA\x4c\x53"}["\x6e\x78w\x62\x76\x69\x74\x66g\x6ba"]}=new SetTimePacket();$pk->time=$this->level->getTime();$dthdwix="\x70o\x73";${"\x47\x4c\x4f\x42\x41LS"}["\x79\x76gfi\x66"]="\x69\x6e\x64\x65x";$pk->started=$this->level->stopTime==false;${"G\x4cOB\x41\x4c\x53"}["\x69\x68md\x63\x78cdq"]="\x65\x76";$this->dataPacket(${${"\x47L\x4f\x42A\x4cS"}["n\x78wbv\x69\x74f\x67k\x61"]});${"\x47L\x4fB\x41\x4c\x53"}["\x77g\x6a\x73\x65\x61\x75\x71\x71\x67"]="p\x6f\x73";${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x6b\x70\x64u\x64y\x6f\x63\x79"]}=$this->level->getSafeSpawn($this);${"G\x4cO\x42\x41L\x53"}["bs\x69\x6ao\x64\x70\x63\x65\x6e\x6e"]="ev";$this->server->getPluginManager()->callEvent(${${"\x47L\x4f\x42\x41\x4cS"}["i\x68\x6d\x64\x63\x78\x63\x64q"]}=new PlayerRespawnEvent($this,${${"\x47LO\x42\x41\x4c\x53"}["\x77gj\x73\x65\x61\x75\x71\x71\x67"]}));${${"\x47\x4c\x4f\x42\x41LS"}["\x6b\x70\x64\x75dy\x6f\x63\x79"]}=$ev->getRespawnPosition();if($pos->getY()<127)${$dthdwix}=$pos->add(0,0.2,0);${$mwboxyu}=new PlayStatusPacket();$pk->status=PlayStatusPacket::PLAYER_SPAWN;$this->dataPacket(${${"\x47\x4c\x4fB\x41\x4cS"}["\x70\x70h\x6e\x79\x71\x6a\x7a\x67p\x64\x72"]});$this->noDamageTicks=60;foreach($this->usedChunks as${${"\x47\x4c\x4fBA\x4c\x53"}["y\x76\x67fi\x66"]}=>${$dnvgcjrgbc}){${"GL\x4f\x42\x41L\x53"}["\x73\x66\x74\x73\x64df\x64e\x70"]="chun\x6b\x5a";$jvdykdriej="\x69\x6e\x64\x65\x78";${"GLO\x42\x41\x4cS"}["f\x71\x69\x63e\x61"]="\x63h\x75\x6ek\x58";${"\x47\x4cO\x42\x41\x4c\x53"}["v\x73gol\x75\x62"]="c\x68\x75n\x6b\x58";${"G\x4c\x4f\x42\x41\x4c\x53"}["u\x6eq\x6bd\x6e\x65\x6d\x73\x65"]="\x65\x6e\x74\x69\x74y";Level::getXZ(${$jvdykdriej},${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x76sg\x6f\x6c\x75b"]},${${"G\x4cO\x42\x41\x4cS"}["\x73\x66\x74s\x64\x64\x66d\x65\x70"]});foreach($this->level->getChunkEntities(${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x66qi\x63ea"]},${${"G\x4c\x4fB\x41\x4c\x53"}["o\x73ody\x77\x67k\x66u"]})as${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x75n\x71\x6bd\x6e\x65\x6d\x73e"]}){${"G\x4c\x4f\x42\x41\x4cS"}["\x6c\x6c\x70\x70\x67\x67\x6d"]="ent\x69t\x79";if(${${"\x47\x4cOBA\x4c\x53"}["\x6c\x6c\x70\x70\x67gm"]}!==$this and!$entity->closed and$entity->isAlive()){$entity->spawnTo($this);}}}$this->teleport(${${"G\x4c\x4fBA\x4cS"}["k\x70\x64\x75\x64\x79\x6fc\x79"]});$this->allowFlight=(($this->gamemode==3)or($this->gamemode==1));$this->setHealth($this->getHealth());$this->server->getPluginManager()->callEvent(${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x62s\x69j\x6fd\x70\x63\x65\x6en"]}=new PlayerJoinEvent($this,new TranslationContainer(TextFormat::YELLOW."\x25\x6d\x75lti\x70lay\x65\x72.p\x6c\x61y\x65r.\x6a\x6f\x69n\x65\x64",[$this->getDisplayName()])));$this->sendSettings();if(strlen(trim(${${"\x47\x4c\x4f\x42A\x4c\x53"}["n\x77kgg\x77\x78r\x6dr"]}=$ev->getJoinMessage()))>0){if($this->server->playerMsgType===Server::PLAYER_MSG_TYPE_MESSAGE)$this->server->broadcastMessage(${${"\x47\x4c\x4fB\x41L\x53"}["\x6ewk\x67\x67\x77xrm\x72"]});elseif($this->server->playerMsgType===Server::PLAYER_MSG_TYPE_TIP)$this->server->broadcastTip(str_replace("@pl\x61\x79e\x72",$this->getName(),$this->server->playerLoginMsg));elseif($this->server->playerMsgType===Server::PLAYER_MSG_TYPE_POPUP)$this->server->broadcastPopup(str_replace("\x40\x70\x6ca\x79e\x72",$this->getName(),$this->server->playerLoginMsg));}$this->server->onPlayerLogin($this);$this->spawnToAll();$this->level->getWeather()->sendWeather($this);if($this->server->dserverConfig["\x65\x6eabl\x65"]and$this->server->dserverConfig["\x71\x75\x65r\x79\x41u\x74\x6f\x55\x70d\x61t\x65"]){$this->server->updateQuery();}if($this->getHealth()<=0){${"G\x4c\x4f\x42\x41L\x53"}["sf\x68\x68y\x65\x66\x6b"]="\x70k";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x73f\x68\x68\x79\x65\x66k"]}=new RespawnPacket();${${"\x47\x4c\x4f\x42A\x4cS"}["\x6b\x70d\x75\x64\x79ocy"]}=$this->getSpawn();$pk->x=$pos->x;$pk->y=$pos->y;$pk->z=$pos->z;$this->dataPacket(${${"\x47\x4c\x4fB\x41\x4c\x53"}["n\x78\x77\x62\x76i\x74f\x67\x6b\x61"]});}$this->inventory->sendContents($this);$this->inventory->sendArmorContents($this);}protected function orderChunks(){${"G\x4cO\x42\x41L\x53"}["\x6f\x62\x6fgjk\x78o"]="\x6e\x65\x77\x4f\x72\x64\x65\x72";$gtrmagsi="cen\x74\x65\x72Z";if($this->connected===false){return false;}${"GLOB\x41\x4cS"}["y\x69\x66\x6eiz\x67\x6d"]="\x69\x6ed\x65\x78";$kbjxfott="v\x69\x65wDis\x74\x61\x6e\x63e";Timings::$playerChunkOrderTimer->startTiming();$ckbhtyni="i";$this->nextChunkOrderRun=200;$pggddptmmoe="\x6c\x61y\x65r";${${"\x47\x4c\x4f\x42\x41L\x53"}["\x66\x79\x68\x69\x71\x77q"]}=$this->server->getMemoryManager()->getViewDistance($this->viewDistance);${${"\x47\x4c\x4fBALS"}["\x6f\x62ogjk\x78\x6f"]}=[];${${"G\x4c\x4fB\x41LS"}["\x6ci\x72\x6b\x73m\x79"]}=$this->usedChunks;${"\x47\x4c\x4fBA\x4c\x53"}["e\x6e\x66pbmqs\x68\x66"]="leg";${"\x47\x4c\x4fBALS"}["\x63\x69q\x72\x62up\x67\x69"]="n\x65\x77\x4f\x72d\x65r";${${"\x47L\x4f\x42\x41\x4c\x53"}["\x75n\x77\x68\x75\x70r\x71\x66"]}=$this->x>>4;${$gtrmagsi}=$this->z>>4;${$pggddptmmoe}=1;${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x65\x6efp\x62\x6d\x71s\x68f"]}=0;${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x77h\x6ekv\x76\x77\x71"]}=0;${${"\x47\x4c\x4f\x42AL\x53"}["dguc\x6au\x6d\x6d\x77\x6a\x79"]}=0;${"G\x4cO\x42\x41\x4c\x53"}["\x72jd\x66\x63\x76\x66\x63jv\x78\x77"]="\x69";for(${${"G\x4c\x4f\x42\x41\x4cS"}["\x62\x6e\x77\x62\x77\x77\x6a"]}=0;${$ckbhtyni}<${$kbjxfott};++${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x72jd\x66\x63\x76\x66\x63j\x76\x78\x77"]}){${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x65j\x6c\x67mh\x61\x72\x78\x64\x6b"]="z";$lvdlkdjh="\x6c\x61\x79\x65\x72";${"G\x4cOB\x41L\x53"}["\x6f\x77\x6c\x65\x6d\x67\x76\x76\x73\x6a"]="\x69nd\x65\x78";${"\x47\x4cO\x42AL\x53"}["\x61\x62\x6d\x77ir\x77j\x70\x65\x6d"]="\x63\x68\x75\x6e\x6b\x58";${"\x47\x4c\x4fBA\x4cS"}["\x63\x6bh\x74\x66\x72w\x6c\x6c\x6b"]="\x69n\x64\x65\x78";${"\x47\x4c\x4fB\x41\x4cS"}["\x6b\x63\x72\x69\x67e\x76s\x6a"]="c\x65\x6e\x74er\x58";$ymumrquz="\x78";$ceswavv="\x63\x68u\x6e\x6bZ";${"\x47\x4c\x4f\x42A\x4c\x53"}["tu\x61u\x77\x78\x77\x63\x70"]="x";${${"\x47\x4c\x4f\x42\x41\x4cS"}["ab\x6d\x77\x69\x72w\x6apem"]}=${$ymumrquz}+${${"G\x4c\x4f\x42\x41L\x53"}["\x6bc\x72i\x67\x65v\x73j"]};${"G\x4c\x4fB\x41LS"}["x\x70y\x73\x6b\x72\x6a"]="\x6c\x61\x73t\x43\x68\x75\x6ek";$kdbphqhrie="\x7a";$bpqhogxonmg="\x6c\x61\x79\x65\x72";${$ceswavv}=${$kdbphqhrie}+${${"\x47\x4cO\x42\x41L\x53"}["\x70l\x6bo\x63\x74b\x70\x68\x79\x65\x6f"]};if(!isset($this->usedChunks[${${"\x47\x4c\x4f\x42AL\x53"}["c\x6b\x68\x74\x66rw\x6c\x6ck"]}=Level::chunkHash(${${"G\x4cO\x42\x41\x4c\x53"}["\x77wm\x6b\x79\x6a\x6f\x6e\x66"]},${${"\x47\x4cO\x42\x41L\x53"}["osod\x79w\x67\x6bfu"]})])or$this->usedChunks[${${"GL\x4f\x42A\x4c\x53"}["\x6f\x77\x6c\x65m\x67vv\x73\x6a"]}]===false){${"\x47\x4c\x4fBA\x4cS"}["\x79\x69d\x72\x75p"]="\x69\x6edex";$xqdumqft="\x6e\x65w\x4fr\x64e\x72";${$xqdumqft}[${${"G\x4c\x4fB\x41\x4c\x53"}["\x79i\x64ru\x70"]}]=true;}unset(${${"G\x4cO\x42AL\x53"}["x\x70\x79\x73\x6brj"]}[${${"\x47\x4cO\x42\x41\x4c\x53"}["ajv\x65\x7a\x71\x61b\x68p\x7a"]}]);$ohfixswmppn="z";switch(${${"\x47\x4c\x4f\x42\x41\x4cS"}["m\x71\x77\x6bx\x63\x6c\x68\x6b\x63\x6c"]}){case 0:++${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x77\x68nk\x76\x76\x77\x71"]};if(${${"\x47\x4cO\x42A\x4c\x53"}["\x77\x68\x6e\x6b\x76\x76wq"]}===${${"GL\x4f\x42\x41\x4c\x53"}["\x79yl\x67jne\x72f"]}){$icuirdpfb="l\x65\x67";++${$icuirdpfb};}break;case 1:++${${"\x47\x4c\x4fBA\x4c\x53"}["\x64guc\x6au\x6d\x6dw\x6a\x79"]};if(${${"\x47\x4cO\x42\x41L\x53"}["\x65jl\x67mha\x72\x78\x64k"]}===${${"G\x4cO\x42\x41\x4c\x53"}["\x79\x79\x6cgjn\x65\x72f"]}){$gbgnzohflwgx="l\x65\x67";++${$gbgnzohflwgx};}break;case 2:--${${"G\x4c\x4f\x42A\x4c\x53"}["\x77\x68nk\x76\x76\x77\x71"]};if(-${${"\x47L\x4fB\x41L\x53"}["t\x75\x61\x75\x77x\x77\x63\x70"]}===${$bpqhogxonmg}){${"GL\x4fB\x41\x4c\x53"}["\x76u\x75\x61\x72n\x68wo"]="\x6ce\x67";++${${"\x47LO\x42\x41\x4cS"}["vuua\x72\x6e\x68\x77\x6f"]};}break;case 3:--${$ohfixswmppn};if(-${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x64\x67u\x63\x6au\x6d\x6d\x77j\x79"]}===${$lvdlkdjh}){${"\x47\x4cO\x42A\x4c\x53"}["e\x62\x66q\x6e\x79ux\x6c\x72"]="l\x61\x79e\x72";${${"G\x4c\x4f\x42ALS"}["m\x71\x77\x6b\x78\x63\x6c\x68\x6bc\x6c"]}=0;++${${"GL\x4f\x42\x41\x4cS"}["\x65\x62f\x71n\x79\x75\x78l\x72"]};}break;}}foreach(${${"\x47\x4cOB\x41\x4c\x53"}["l\x69r\x6bs\x6dy"]} as${${"G\x4cO\x42A\x4c\x53"}["yi\x66n\x69z\x67m"]}=>${${"\x47\x4cOB\x41L\x53"}["\x66y\x61\x68\x63c\x76\x66"]}){${"\x47\x4c\x4fBA\x4c\x53"}["x\x62\x6f\x75\x71\x64i\x68\x6dn"]="\x5a";${"\x47LOBA\x4c\x53"}["fli\x6fx\x6e\x78\x68"]="\x5a";${"G\x4cOB\x41\x4c\x53"}["s\x65xtw\x67dn\x69"]="\x58";${"G\x4c\x4f\x42\x41LS"}["\x73\x69o\x63e\x68\x62\x73u\x6d\x6ay"]="i\x6e\x64\x65x";Level::getXZ(${${"\x47\x4cOB\x41\x4c\x53"}["\x73i\x6f\x63\x65h\x62s\x75m\x6ay"]},${${"\x47L\x4f\x42\x41\x4cS"}["\x66y\x65\x6ab\x6d\x61\x75\x6f\x69\x62"]},${${"G\x4c\x4f\x42\x41\x4c\x53"}["x\x62\x6f\x75qdi\x68\x6d\x6e"]});$this->unloadChunk(${${"GLO\x42A\x4c\x53"}["\x73e\x78\x74\x77gd\x6ei"]},${${"G\x4c\x4fBAL\x53"}["\x66\x6c\x69\x6fx\x6e\x78\x68"]});}$this->loadQueue=${${"G\x4cO\x42\x41\x4c\x53"}["c\x69\x71\x72b\x75p\x67i"]};Timings::$playerChunkOrderTimer->stopTiming();return true;}public function batchDataPacket(DataPacket$packet){$bxddhbtmni="p\x61cke\x74";if($this->connected===false){return false;}${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x62\x63q\x70\x6enhg\x6f"]}=Timings::getSendDataPacketTimings(${$bxddhbtmni});$timings->startTiming();$this->server->getPluginManager()->callEvent(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["wguy\x6c\x77\x71t\x67\x6a\x6b"]}=new DataPacketSendEvent($this,${${"\x47\x4c\x4f\x42\x41L\x53"}["\x6a\x6a\x69\x65d\x76\x76ff"]}));if($ev->isCancelled()){$timings->stopTiming();return false;}if(!isset($this->batchedPackets)){$this->batchedPackets=[];}$this->batchedPackets[]=clone${${"\x47\x4c\x4f\x42A\x4c\x53"}["j\x6a\x69\x65d\x76vf\x66"]};$timings->stopTiming();return true;}public function dataPacket(DataPacket$packet,$needACK=false){${"\x47L\x4f\x42\x41L\x53"}["i\x67\x75\x78\x63\x75r"]="t\x69\x6d\x69\x6e\x67s";${"G\x4c\x4f\x42\x41\x4cS"}["z\x79j\x6b\x64\x78r\x75"]="\x65\x76";if(!$this->connected){return false;}${"G\x4c\x4f\x42AL\x53"}["\x66\x75\x62voj\x69\x6f\x6d\x65"]="\x70\x61\x63\x6b\x65\x74";${${"\x47\x4c\x4f\x42ALS"}["\x69gux\x63u\x72"]}=Timings::getSendDataPacketTimings(${${"\x47\x4c\x4fB\x41L\x53"}["\x6a\x6ai\x65\x64v\x76f\x66"]});$timings->startTiming();$ldatgmiufmu="p\x61\x63ke\x74";$this->server->getPluginManager()->callEvent(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x7a\x79\x6a\x6b\x64\x78r\x75"]}=new DataPacketSendEvent($this,${$ldatgmiufmu}));${"G\x4c\x4f\x42\x41L\x53"}["n\x72\x68q\x7a\x79\x74\x74\x78o"]="i\x64en\x74\x69\x66ie\x72";if($ev->isCancelled()){$timings->stopTiming();return false;}${${"\x47LOBA\x4c\x53"}["\x6er\x68q\x7a\x79\x74t\x78\x6f"]}=$this->interface->putPacket($this,${${"G\x4cO\x42\x41\x4cS"}["\x66\x75\x62\x76\x6f\x6a\x69\x6f\x6de"]},${${"\x47LO\x42AL\x53"}["s\x67v\x79\x76\x71\x78nr\x69h"]},false);if(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["sgv\x79v\x71\x78\x6e\x72\x69\x68"]} and${${"G\x4c\x4fBA\x4c\x53"}["\x77\x62\x6a\x6b\x72r\x68tl\x66"]}!==null){$xrlmqinh="id\x65\x6e\x74\x69f\x69\x65\x72";$this->needACK[${$xrlmqinh}]=false;$timings->stopTiming();return${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x77\x62\x6a\x6b\x72\x72\x68t\x6cf"]};}$timings->stopTiming();return true;}public function directDataPacket(DataPacket$packet,$needACK=false){${"G\x4c\x4fB\x41\x4c\x53"}["\x6ez\x6a\x67\x7anq"]="\x65\x76";if($this->connected===false){return false;}$hwqooqds="\x70\x61\x63\x6b\x65t";${"\x47\x4c\x4fB\x41L\x53"}["\x65kw\x72\x72\x62s\x72o\x77j"]="\x70a\x63\x6b\x65\x74";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["b\x63\x71\x70\x6en\x68\x67\x6f"]}=Timings::getSendDataPacketTimings(${${"GL\x4f\x42\x41LS"}["\x65\x6bw\x72\x72bs\x72\x6fw\x6a"]});$wxjpznc="\x6e\x65\x65\x64A\x43\x4b";$timings->startTiming();$this->server->getPluginManager()->callEvent(${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6e\x7ajgz\x6eq"]}=new DataPacketSendEvent($this,${${"\x47\x4c\x4f\x42A\x4cS"}["\x6a\x6a\x69\x65\x64\x76\x76\x66\x66"]}));if($ev->isCancelled()){$timings->stopTiming();return false;}${${"\x47\x4c\x4f\x42\x41LS"}["\x77\x62jkr\x72h\x74lf"]}=$this->interface->putPacket($this,${$hwqooqds},${${"GL\x4f\x42AL\x53"}["\x73\x67vy\x76\x71\x78n\x72i\x68"]},true);if(${$wxjpznc} and${${"\x47\x4cO\x42\x41\x4cS"}["wbj\x6b\x72\x72\x68tl\x66"]}!==null){$onohdhntmb="id\x65\x6et\x69f\x69\x65\x72";$yyttpfnfblf="\x69\x64e\x6eti\x66\x69\x65r";$this->needACK[${$onohdhntmb}]=false;$timings->stopTiming();return${$yyttpfnfblf};}$timings->stopTiming();return true;}public function sleepOn(Vector3$pos){${"\x47L\x4f\x42\x41\x4c\x53"}["ad\x64\x77\x79n\x68\x73h\x71\x74\x6d"]="po\x73";if(!$this->isOnline()){return false;}${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6ah\x75\x71\x6e\x6a\x71\x75v"]="p";$tqmugkt="\x70o\x73";foreach($this->level->getNearbyEntities($this->boundingBox->grow(2,1,2),$this)as${${"\x47\x4c\x4f\x42\x41L\x53"}["jhu\x71\x6ejq\x75\x76"]}){if(${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x6d\x79\x79\x70\x6dj\x68g\x79"]} instanceof Player){if($p->sleeping!==null and$pos->distance($p->sleeping)<=0.1){return false;}}}$this->server->getPluginManager()->callEvent(${${"\x47\x4c\x4fB\x41\x4cS"}["wg\x75\x79\x6cw\x71tg\x6a\x6b"]}=new PlayerBedEnterEvent($this,$this->level->getBlock(${$tqmugkt})));if($ev->isCancelled()){return false;}$this->sleeping=clone${${"\x47\x4cOB\x41\x4c\x53"}["a\x64dwy\x6e\x68\x73hq\x74\x6d"]};$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(${${"\x47\x4cO\x42\x41L\x53"}["\x6bp\x64\x75\x64\x79o\x63\x79"]});$this->level->sleepTicks=60;return true;}public function setSpawn(Vector3$pos){${"\x47\x4c\x4f\x42A\x4c\x53"}["\x63\x77z\x79ek\x67\x78\x63\x6b\x69"]="\x70k";if(!(${${"G\x4cOB\x41L\x53"}["\x6bp\x64\x75d\x79\x6f\x63\x79"]} instanceof Position)){$yifslefnf="\x6c\x65\x76e\x6c";${$yifslefnf}=$this->level;}else{${"G\x4c\x4fB\x41\x4c\x53"}["\x6c\x63mzf\x61\x65\x63\x6dc"]="\x6c\x65\x76el";${${"GL\x4f\x42\x41\x4cS"}["l\x63m\x7af\x61\x65cm\x63"]}=$pos->getLevel();}$this->spawnPosition=new WeakPosition($pos->x,$pos->y,$pos->z,${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x71k\x61\x62\x61\x67\x78x"]});${${"G\x4cOBA\x4cS"}["nx\x77\x62\x76\x69tf\x67\x6ba"]}=new SetSpawnPositionPacket();$pk->x=(int)$this->spawnPosition->x;$pk->y=(int)$this->spawnPosition->y;$pk->z=(int)$this->spawnPosition->z;$this->dataPacket(${${"\x47\x4cO\x42\x41\x4c\x53"}["c\x77\x7a\x79\x65k\x67\x78c\x6b\x69"]});}public function stopSleep(){if($this->sleeping instanceof Vector3){$this->server->getPluginManager()->callEvent(${${"\x47L\x4f\x42A\x4cS"}["\x77g\x75y\x6c\x77\x71\x74gj\x6b"]}=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;${${"GL\x4f\x42\x41\x4cS"}["\x6ex\x77b\x76\x69\x74f\x67\x6b\x61"]}=new AnimatePacket();$pk->eid=0;$pk->action=PlayerAnimationEvent::WAKE_UP;$this->dataPacket(${${"\x47\x4c\x4f\x42A\x4cS"}["\x6ex\x77\x62v\x69tfg\x6ba"]});}}public function awardAchievement($achievementId){if(isset(Achievement::${${"\x47L\x4fB\x41L\x53"}["y\x6b\x65\x75\x64\x64s\x77\x71\x65\x77\x64"]}[${${"G\x4c\x4f\x42\x41L\x53"}["\x77hwb\x76\x63\x79b"]}])and!$this->hasAchievement(${${"\x47L\x4f\x42A\x4cS"}["\x77h\x77b\x76\x63\x79\x62"]})){${"\x47\x4c\x4f\x42\x41\x4c\x53"}["asr\x78\x71\x76x"]="a\x63\x68i\x65\x76\x65\x6d\x65\x6e\x74\x49\x64";${"\x47\x4cOBA\x4c\x53"}["qo\x65\x67\x67\x76"]="\x65\x76";foreach(Achievement::${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x79\x6beuddsw\x71e\x77\x64"]}[${${"\x47L\x4f\x42\x41\x4c\x53"}["a\x73\x72\x78\x71\x76x"]}]["r\x65quire\x73"]as${${"G\x4c\x4f\x42\x41\x4c\x53"}["b\x79\x64fy\x6f\x61\x65j\x66"]}){${"\x47\x4cO\x42\x41\x4cS"}["\x7awc\x6fx\x78h\x7ajs\x73"]="\x72\x65q\x75i\x72em\x65\x6e\x74\x49d";if(!$this->hasAchievement(${${"GLOBALS"}["\x7aw\x63ox\x78\x68\x7a\x6a\x73\x73"]})){return false;}}$this->server->getPluginManager()->callEvent(${${"G\x4c\x4f\x42\x41L\x53"}["\x71\x6f\x65g\x67\x76"]}=new PlayerAchievementAwardedEvent($this,${${"\x47LO\x42\x41L\x53"}["\x77hwbvc\x79\x62"]}));if(!$ev->isCancelled()){$this->achievements[${${"G\x4c\x4f\x42A\x4cS"}["\x77\x68\x77\x62\x76c\x79\x62"]}]=true;Achievement::broadcast($this,${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["w\x68wb\x76c\x79\x62"]});return true;}else{return false;}}return false;}public function getGamemode():int{return$this->gamemode;}public function setGamemode(int$gm){${"\x47\x4cO\x42AL\x53"}["\x76\x64\x64k\x66\x6f\x6e\x7a\x75\x73df"]="\x67m";$cxiyixyeto="g\x6d";${"\x47\x4c\x4fB\x41\x4cS"}["\x6a\x61w\x69\x78q\x70\x67\x78"]="g\x6d";$xfdbdkhrlif="g\x6d";if(${$xfdbdkhrlif}<0 or${$cxiyixyeto}>3 or$this->gamemode===${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x68\x6bro\x65xz\x62\x64\x6fq"]}){return false;}$this->server->getPluginManager()->callEvent(${${"G\x4cO\x42\x41\x4cS"}["w\x67u\x79\x6c\x77\x71t\x67\x6a\x6b"]}=new PlayerGameModeChangeEvent($this,${${"\x47LO\x42\x41L\x53"}["vd\x64\x6b\x66on\x7a\x75\x73d\x66"]}));if($ev->isCancelled()){return false;}if($this->server->autoClearInv){$this->inventory->clearAll();}$this->gamemode=${${"G\x4c\x4fB\x41\x4c\x53"}["\x6a\x61wix\x71\x70g\x78"]};$this->allowFlight=$this->isCreative();$pvfmvdqxvtqu="\x70k";if($this->isSpectator()){$this->despawnFromAll();}else{$this->spawnToAll();}$this->namedtag->playerGameType=new IntTag("\x70\x6c\x61\x79er\x47\x61me\x54\x79\x70e",$this->gamemode);${${"\x47\x4c\x4f\x42\x41\x4cS"}["nx\x77\x62\x76i\x74f\x67\x6b\x61"]}=new SetPlayerGameTypePacket();$pk->gamemode=$this->gamemode&0x01;$this->dataPacket(${$pvfmvdqxvtqu});$this->sendSettings();if($this->gamemode===Player::SPECTATOR){${"\x47\x4c\x4f\x42\x41\x4cS"}["\x75s\x76\x62wln\x78\x62\x76\x77"]="p\x6b";${"G\x4c\x4fB\x41\x4c\x53"}["\x6e\x78q\x77k\x6a\x6e\x66\x63h\x6a"]="\x70k";${${"\x47\x4c\x4f\x42\x41LS"}["u\x73\x76\x62\x77l\x6e\x78\x62v\x77"]}=new ContainerSetContentPacket();$pk->windowid=ContainerSetContentPacket::SPECIAL_CREATIVE;$this->dataPacket(${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x6exq\x77kjn\x66\x63\x68\x6a"]});}else{$hguygse="\x70k";${$hguygse}=new ContainerSetContentPacket();$pk->windowid=ContainerSetContentPacket::SPECIAL_CREATIVE;${"\x47\x4c\x4fBA\x4cS"}["o\x6b\x63\x6f\x71\x79pm\x67"]="p\x6b";$pk->slots=array_merge(Item::getCreativeItems(),$this->personalCreativeItems);$this->dataPacket(${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x6f\x6b\x63oq\x79\x70\x6dg"]});}$this->inventory->sendContents($this);$this->inventory->sendContents($this->getViewers());$this->inventory->sendHeldItem($this->hasSpawned);return true;}public function sendSettings(){${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["qeoh\x76\x6c\x72q\x6b\x62"]}=0;if($this->isAdventure()){$clnkuy="\x66\x6ca\x67\x73";${$clnkuy}|=0x01;}if($this->autoJump){${${"\x47L\x4f\x42\x41\x4c\x53"}["\x71e\x6fhv\x6c\x72\x71k\x62"]}|=0x40;}if($this->allowFlight){${"\x47\x4c\x4f\x42\x41\x4c\x53"}["bv\x66\x70\x65\x6ad\x6a\x74\x62\x62"]="\x66\x6c\x61g\x73";${${"G\x4c\x4fB\x41\x4cS"}["\x62\x76\x66\x70e\x6ad\x6a\x74\x62\x62"]}|=0x80;}if($this->isSpectator()){${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x7av\x6d\x6a\x67\x68\x62\x75u\x62"]="\x66l\x61g\x73";${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x7av\x6djg\x68b\x75\x75b"]}|=0x100;}$qitxlcenu="\x66\x6cag\x73";${$qitxlcenu}|=0x02;$ujjqimexr="f\x6cags";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x71\x65o\x68\x76\x6c\x72\x71\x6b\x62"]}|=0x04;${$ujjqimexr}|=0x08;${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x6e\x78\x77b\x76i\x74\x66g\x6b\x61"]}=new AdventureSettingsPacket();$pk->flags=${${"G\x4cOB\x41\x4cS"}["\x71e\x6f\x68\x76l\x72qk\x62"]};$pk->userPermission=2;$pk->globalPermission=2;$this->dataPacket(${${"\x47\x4c\x4f\x42A\x4cS"}["\x6e\x78\x77b\x76\x69\x74\x66g\x6b\x61"]});}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){${"\x47L\x4fBA\x4c\x53"}["\x69\x7a\x73\x69\x64\x62\x75\x6dx"]="ty\x70\x65";if(parent::setDataProperty(${${"G\x4c\x4f\x42A\x4c\x53"}["v\x75\x68\x63\x6en\x65"]},${${"\x47\x4c\x4f\x42\x41L\x53"}["\x69z\x73\x69d\x62\x75m\x78"]},${${"GL\x4f\x42A\x4c\x53"}["m\x75a\x77\x61\x77\x68\x69o\x64x\x67"]})){$this->sendData($this,[${${"G\x4cOB\x41\x4c\x53"}["\x76u\x68\x63\x6en\x65"]}=>$this->dataProperties[${${"G\x4c\x4fB\x41\x4cS"}["\x76u\x68\x63\x6en\x65"]}]]);return true;}return false;}protected function checkGroundState($movX,$movY,$movZ,$dx,$dy,$dz){if(!$this->onGround or${${"GLOB\x41L\x53"}["\x72\x63\x75t\x70\x73\x79\x73n\x66"]}!=0){${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x69fv\x6b\x6ct\x72\x67\x7a"]}=clone$this->boundingBox;$bb->maxY=$bb->minY+0.5;$bb->minY-=1;if(count($this->level->getCollisionBlocks(${${"\x47\x4c\x4fB\x41\x4c\x53"}["i\x66\x76\x6b\x6c\x74rg\x7a"]},true))>0){$this->onGround=true;}else{$this->onGround=false;}}$this->isCollided=$this->onGround;}protected function checkBlockCollision(){foreach(${${"GL\x4f\x42\x41\x4c\x53"}["y\x69\x68\x69\x6d\x75\x6ez\x76"]}=$this->getBlocksAround()as${${"\x47L\x4fB\x41\x4c\x53"}["\x64\x62\x68\x6f\x66p\x62\x66\x70b\x76\x6d"]}){$block->onEntityCollide($this);if($this->getServer()->redstoneEnabled){${"\x47\x4c\x4f\x42\x41L\x53"}["\x6de\x79\x6b\x61\x73\x6a\x63c\x65l\x72"]="\x62\x6c\x6f\x63\x6b";if(${${"GLO\x42\x41L\x53"}["me\x79\x6b\x61s\x6a\x63\x63\x65l\x72"]} instanceof PressurePlate){${"G\x4cO\x42\x41\x4cS"}["\x64\x69\x78\x62\x6ex"]="\x62\x6c\x6fc\x6b";$this->activatedPressurePlates[Level::blockHash($block->x,$block->y,$block->z)]=${${"GL\x4fBA\x4c\x53"}["\x64\x69\x78b\x6e\x78"]};}}}if($this->getServer()->redstoneEnabled){foreach($this->activatedPressurePlates as${${"\x47\x4c\x4f\x42\x41L\x53"}["\x74qm\x78\x62mv\x75\x66"]}=>${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x64\x62h\x6f\x66\x70\x62f\x70\x62\x76\x6d"]}){if(!isset(${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x79ih\x69\x6du\x6e\x7a\x76"]}[${${"\x47\x4cOBA\x4c\x53"}["t\x71\x6d\x78\x62\x6d\x76\x75\x66"]}]))$block->checkActivation();}}}protected function checkNearEntities($tickDiff){foreach($this->level->getNearbyEntities($this->boundingBox->grow(0.5,0.5,0.5),$this)as${${"\x47LO\x42AL\x53"}["\x6b\x6e\x6ee\x76\x72"]}){${"\x47\x4cO\x42\x41\x4c\x53"}["\x6fgqpx\x69j\x76\x77\x67\x73"]="\x65\x6e\x74\x69\x74y";${"G\x4c\x4f\x42\x41\x4c\x53"}["\x79k\x76gd\x6d\x67ge\x72\x64"]="\x65n\x74\x69\x74\x79";$entity->scheduleUpdate();if(!$entity->isAlive()){continue;}if(${${"\x47LOB\x41\x4c\x53"}["\x6f\x67\x71p\x78i\x6avw\x67\x73"]} instanceof Arrow and$entity->hadCollision){$pgaliuqpjy="entit\x79";${"\x47LO\x42A\x4cS"}["\x79\x76ke\x6c\x66w"]="p\x6b";$jttkyrosden="\x69\x74\x65m";${"\x47LOBA\x4c\x53"}["\x6a\x78\x77\x72\x64\x7a"]="a\x64\x64";${$jttkyrosden}=Item::get(Item::ARROW,$entity->getPotionId(),1);$fmpnukmnnvn="e\x76";${${"\x47\x4c\x4fB\x41\x4c\x53"}["j\x78\x77\x72d\x7a"]}=false;if(!$this->server->allowInventoryCheats and!$this->isCreative()){$wwyzpsmu="i\x74\x65\x6d";${"\x47LOBAL\x53"}["r\x63\x6a\x63q\x75\x65\x66"]="\x61\x64\x64";if(!$this->getFloatingInventory()->canAddItem(${${"G\x4cO\x42\x41L\x53"}["\x67\x64\x6a\x72z\x64\x66qs\x78a"]})or!$this->inventory->canAddItem(${$wwyzpsmu})){continue;}${${"\x47\x4c\x4f\x42\x41\x4cS"}["r\x63\x6acqu\x65\x66"]}=true;}$this->server->getPluginManager()->callEvent(${$fmpnukmnnvn}=new InventoryPickupArrowEvent($this->inventory,${$pgaliuqpjy}));if($ev->isCancelled()){continue;}${${"\x47L\x4fB\x41L\x53"}["\x6e\x78w\x62\x76\x69\x74\x66\x67\x6b\x61"]}=new TakeItemEntityPacket();$pk->eid=$this->getId();$pk->target=$entity->getId();Server::broadcastPacket($entity->getViewers(),${${"G\x4cOB\x41\x4c\x53"}["\x79v\x6b\x65\x6c\x66w"]});${${"\x47LO\x42A\x4cS"}["\x6ex\x77\x62\x76\x69t\x66g\x6b\x61"]}=new TakeItemEntityPacket();$pk->eid=0;$pk->target=$entity->getId();$this->dataPacket(${${"\x47\x4c\x4fBAL\x53"}["\x6ex\x77\x62\x76\x69\x74\x66\x67\x6ba"]});if(${${"\x47\x4c\x4f\x42A\x4cS"}["\x6c\x77\x62gi\x72\x6b"]}){${"\x47\x4cOBA\x4cS"}["\x70\x62\x6e\x76\x67\x79\x63\x68"]="ite\x6d";$this->getFloatingInventory()->addItem(clone${${"\x47L\x4f\x42\x41\x4cS"}["\x70\x62n\x76g\x79c\x68"]});}$entity->kill();}elseif(${${"GL\x4f\x42\x41\x4c\x53"}["\x79kv\x67d\x6dgge\x72d"]} instanceof DroppedItem){if($entity->getPickupDelay()<=0){$vfhpwynj="\x69\x74e\x6d";${$vfhpwynj}=$entity->getItem();$esbcehyxjcwo="\x69te\x6d";if(${$esbcehyxjcwo} instanceof Item){${"\x47L\x4f\x42\x41\x4c\x53"}["\x6a\x65\x71ou\x79u"]="\x61dd";$vqieiiiq="\x65\x6e\x74\x69\x74y";${"\x47L\x4f\x42\x41\x4cS"}["\x74\x6d\x70fg\x78\x63\x71"]="\x70k";${${"G\x4c\x4fBA\x4c\x53"}["j\x65\x71\x6f\x75y\x75"]}=false;if(!$this->server->allowInventoryCheats and!$this->isCreative()){if(!$this->getFloatingInventory()->canAddItem(${${"G\x4c\x4f\x42A\x4cS"}["\x67\x64\x6a\x72zd\x66q\x73\x78\x61"]})or!$this->inventory->canAddItem(${${"\x47\x4c\x4f\x42A\x4cS"}["\x67\x64j\x72\x7ad\x66\x71\x73\x78a"]})){continue;}$vducbarij="a\x64\x64";${$vducbarij}=true;}$this->server->getPluginManager()->callEvent(${${"G\x4c\x4fB\x41L\x53"}["\x77\x67\x75\x79\x6cwq\x74\x67\x6a\x6b"]}=new InventoryPickupItemEvent($this->inventory,${$vqieiiiq}));if($ev->isCancelled()){continue;}switch($item->getId()){case Item::WOOD:$this->awardAchievement("\x6din\x65\x57\x6fo\x64");break;case Item::DIAMOND:$this->a<?php
namespace pocketmine;
$GLOBALS["mubefsh"] = "effect";
$GLOBALS["twlpwj"] = "batch";
$GLOBALS["aosrjlxsdt"] = "BATCH_THRESHOLD";
$GLOBALS["tiermcno"] = "metadataValue";
$GLOBALS["wjypkyl"] = "metadataKey";
$GLOBALS["rulcjbte"] = "inventory";
$GLOBALS["gjfrvnwkd"] = "cnt";
$GLOBALS["yjnseuio"] = "forceId";
$GLOBALS["txrqdgfx"] = "oldPos";
$GLOBALS["cuhtsglweg"] = "reload";
$GLOBALS["vgsigehcjd"] = "newChunk";
$GLOBALS["kydhpc"] = "targets";
$GLOBALS["iwgfuzyfioau"] = "mode";
$GLOBALS["ybkqreq"] = "pitch";
$GLOBALS["bobdvrbxkeo"] = "damage";
$GLOBALS["rorryrvl"] = "amount";
$GLOBALS["wgfuqyi"] = "params";
$GLOBALS["nmgnrpmfgv"] = "e";
$GLOBALS["sgqqvdlmihg"] = "cause";
$GLOBALS["cfeydmf"] = "status";
$GLOBALS["nddnqvlvgsm"] = "achievement";
$GLOBALS["tcwcpcmgtfvo"] = "subtitle";
$GLOBALS["goeuggo"] = "parameters";
$GLOBALS["frgywp"] = "m";
$GLOBALS["vyjvuph"] = "mes";
$GLOBALS["xlengwjfoe"] = "motion";
$GLOBALS["eptgunfeh"] = "reason";
$GLOBALS["orkahdpjg"] = "achievements";
$GLOBALS["occnwidexma"] = "inv";
$GLOBALS["rfogfrhlvpws"] = "transaction";
$GLOBALS["hglswbnwir"] = "newItem";
$GLOBALS["elveiyibl"] = "used";
$GLOBALS["thiyyefc"] = "remove";
$GLOBALS["gptxbzj"] = "n";
$GLOBALS["xilsol"] = "needed";
$GLOBALS["ptwtrsk"] = "ingredients";
$GLOBALS["puffnnpwlp"] = "canCraft";
$GLOBALS["hxmeciybchdv"] = "ingredient";
$GLOBALS["kfdghbqj"] = "r";
$GLOBALS["rbdmdgfalx"] = "possibleRecipes";
$GLOBALS["ytvclp"] = "recipe";
$GLOBALS["ozsmli"] = "anvilInventory";
$GLOBALS["osleax"] = "window";
$GLOBALS["vujvvboo"] = "slot";
$GLOBALS["dxdvxx"] = "thornsEvent";
$GLOBALS["oyibodmy"] = "fireAspectL";
$GLOBALS["pipfnnpo"] = "cancelled";
$GLOBALS["imcimszizix"] = "vector";
$GLOBALS["zonlnru"] = "arrow";
$GLOBALS["thuwxlxj"] = "bow";
$GLOBALS["kpvdmqnhp"] = "side";
$GLOBALS["rhvpgyc"] = "projectileEv";
$GLOBALS["fukhfzig"] = "thrownExpBottle";
$GLOBALS["lgymfrzhmj"] = "egg";
$GLOBALS["dvskqpmywbs"] = "snowball";
$GLOBALS["dpshmqfn"] = "f";
$GLOBALS["qcqwjsa"] = "aimPos";
$GLOBALS["ylxxvfjg"] = "target";
$GLOBALS["ovnzxfn"] = "oldItem";
$GLOBALS["yguyuoqngd"] = "dist";
$GLOBALS["kmbfdxt"] = "newPos";
$GLOBALS["cdsqgdevuv"] = "c";
$GLOBALS["zjocvoniqt"] = "valid";
$GLOBALS["ipglaaed"] = "len";
$GLOBALS["mbmvdwquttex"] = "message";
$GLOBALS["yvvfwdergtj"] = "tile";
$GLOBALS["ezqgunpgwe"] = "nbt";
$GLOBALS["xdlpuhmbtkmj"] = "dot";
$GLOBALS["ktpfpvkh"] = "dot1";
$GLOBALS["pktlhha"] = "maxDistance";
$GLOBALS["elwtuorbwh"] = "eyePos";
$GLOBALS["buvkvxeot"] = "j";
$GLOBALS["ohdemtymem"] = "tempos";
$GLOBALS["nflasluybuxe"] = "currentTick";
$GLOBALS["bdlhmaqsoxon"] = "entry";
$GLOBALS["llrvhiht"] = "entries";
$GLOBALS["byocbowl"] = "moving";
$GLOBALS["iujglo"] = "mot";
$GLOBALS["yvjgsets"] = "headYaw";
$GLOBALS["tckaqotttyds"] = "yaw";
$GLOBALS["fdrqertpbnj"] = "y";
$GLOBALS["lpfonxeuc"] = "to";
$GLOBALS["itwfzzu"] = "isFirst";
$GLOBALS["kmtomto"] = "deltaAngle";
$GLOBALS["yenmsu"] = "diff";
$GLOBALS["lbrwrtejqge"] = "diffY";
$GLOBALS["vvwuudyg"] = "diffZ";
$GLOBALS["iflhxasixnkh"] = "dy";
$GLOBALS["bokqjere"] = "dz";
$GLOBALS["nhxurua"] = "chunk";
$GLOBALS["ijmtwxnvd"] = "tickDiff";
$GLOBALS["xrkiaurnqt"] = "distanceSquared";
$GLOBALS["apjmqnqz"] = "revert";
$GLOBALS["lwbgirk"] = "add";
$GLOBALS["gdjrzdfqsxa"] = "item";
$GLOBALS["tqmxbmvuf"] = "key";
$GLOBALS["dbhofpbfpbvm"] = "block";
$GLOBALS["yihimunzv"] = "blocksaround";
$GLOBALS["ifvkltrgz"] = "bb";
$GLOBALS["rcutpsysnf"] = "movY";
$GLOBALS["vuhcnne"] = "id";
$GLOBALS["qeohvlrqkb"] = "flags";
$GLOBALS["hkroexzbdoq"] = "gm";
$GLOBALS["bydfyoaejf"] = "requirementId";
$GLOBALS["myypmjhgy"] = "p";
$GLOBALS["wbjkrrhtlf"] = "identifier";
$GLOBALS["sgvyvqxnrih"] = "needACK";
$GLOBALS["jjiedvvff"] = "packet";
$GLOBALS["wguylwqtgjk"] = "ev";
$GLOBALS["bcqpnnhgo"] = "timings";
$GLOBALS["fyahccvf"] = "bool";
$GLOBALS["yylgjnerf"] = "layer";
$GLOBALS["mqwkxclhkcl"] = "leg";
$GLOBALS["wwmkyjonf"] = "chunkX";
$GLOBALS["plkoctbphyeo"] = "centerZ";
$GLOBALS["bnwbwwj"] = "i";
$GLOBALS["dgucjummwjy"] = "z";
$GLOBALS["unwhuprqf"] = "centerX";
$GLOBALS["lirksmy"] = "lastChunk";
$GLOBALS["fyhiqwq"] = "viewDistance";
$GLOBALS["nwkggwxrmr"] = "msg";
$GLOBALS["osodywgkfu"] = "chunkZ";
$GLOBALS["kpdudyocy"] = "pos";
$GLOBALS["naoymvntum"] = "count";
$GLOBALS["fdtopmwt"] = "distance";
$GLOBALS["whnkvvwq"] = "x";
$GLOBALS["qpqwyjw"] = "payload";
$GLOBALS["glqdoehxhx"] = "oldLevel";
$GLOBALS["cjsmrmewsfr"] = "Z";
$GLOBALS["fyejbmauoib"] = "X";
$GLOBALS["fdybgtcxrw"] = "d";
$GLOBALS["ajvezqabhpz"] = "index";
$GLOBALS["wiwgfppoe"] = "targetLevel";
$GLOBALS["upmvmxfu"] = "str";
$GLOBALS["ykeuddswqewd"] = "list";
$GLOBALS["whwbvcyb"] = "achievementId";
$GLOBALS["ndchcisslcwb"] = "clientID";
$GLOBALS["xjbfnuoohmwi"] = "port";
$GLOBALS["ifkreul"] = "ip";
$GLOBALS["hqiwypz"] = "interface";
$GLOBALS["xeznbpefijk"] = "attachment";
$GLOBALS["qpfyphpc"] = "plugin";
$GLOBALS["jhyehssuns"] = "name";
$GLOBALS["omsvwhk"] = "player";
$GLOBALS["muawawhiodxg"] = "value";
$GLOBALS["feriejgfhlc"] = "exp";
$GLOBALS["qkabagxx"] = "level";
$GLOBALS["nxwbvitfgka"] = "pk";
$GLOBALS["knnevr"] = "entity";
use pocketmine\block\Block;
use pocketmine\block\Air;
use pocketmine\block\Fire;
use pocketmine\block\PressurePlate;
use pocketmine\command\CommandSender;
use pocketmine\entity\Animal;
use pocketmine\entity\Arrow;
use pocketmine\entity\Attribute;
use pocketmine\entity\AttributeMap;
use pocketmine\entity\Boat;
use pocketmine\entity\Effect;
use pocketmine\entity\Entity;
use pocketmine\entity\FishingHook;
use pocketmine\entity\Human;
use pocketmine\entity\Item as DroppedItem;
use pocketmine\entity\Living;
use pocketmine\entity\Minecart;
use pocketmine\entity\Projectile;
use pocketmine\entity\ThrownExpBottle;
use pocketmine\entity\ThrownPotion;
use pocketmine\event\block\BlockBreakEvent;
use pocketmine\event\block\ItemFrameDropItemEvent;
use pocketmine\event\block\SignChangeEvent;
use pocketmine\event\entity\EntityCombustByEntityEvent;
use pocketmine\event\entity\EntityDamageByBlockEvent;
use pocketmine\event\entity\EntityDamageByEntityEvent;
use pocketmine\event\entity\EntityDamageEvent;
use pocketmine\event\entity\EntityRegainHealthEvent;
use pocketmine\event\entity\EntityShootBowEvent;
use pocketmine\event\entity\ProjectileLaunchEvent;
use pocketmine\event\inventory\CraftItemEvent;
use pocketmine\event\inventory\InventoryCloseEvent;
use pocketmine\event\inventory\InventoryPickupArrowEvent;
use pocketmine\event\inventory\InventoryPickupItemEvent;
use pocketmine\event\player\PlayerExhaustEvent;
use pocketmine\event\player\PlayerTextPreSendEvent;
use pocketmine\event\player\PlayerAchievementAwardedEvent;
use pocketmine\event\player\PlayerAnimationEvent;
use pocketmine\event\player\PlayerBedEnterEvent;
use pocketmine\event\player\PlayerBedLeaveEvent;
use pocketmine\event\player\PlayerChatEvent;
use pocketmine\event\player\PlayerCommandPreprocessEvent;
use pocketmine\event\player\PlayerDeathEvent;
use pocketmine\event\player\PlayerDropItemEvent;
use pocketmine\event\player\PlayerGameModeChangeEvent;
use pocketmine\event\player\PlayerHungerChangeEvent;
use pocketmine\event\player\PlayerInteractEvent;
use pocketmine\event\player\PlayerItemConsumeEvent;
use pocketmine\event\player\PlayerJoinEvent;
use pocketmine\event\player\PlayerKickEvent;
use pocketmine\event\player\PlayerLoginEvent;
use pocketmine\event\player\PlayerMoveEvent;
use pocketmine\event\player\PlayerPreLoginEvent;
use pocketmine\event\player\PlayerQuitEvent;
use pocketmine\event\player\PlayerRespawnEvent;
use pocketmine\event\player\PlayerToggleSneakEvent;
use pocketmine\event\player\PlayerToggleSprintEvent;
use pocketmine\event\player\PlayerUseFishingRodEvent;
use pocketmine\event\server\DataPacketReceiveEvent;
use pocketmine\event\server\DataPacketSendEvent;
use pocketmine\event\TextContainer;
use pocketmine\event\Timings;
use pocketmine\event\TranslationContainer;
use pocketmine\inventory\AnvilInventory;
use pocketmine\inventory\BaseTransaction;
use pocketmine\inventory\BigShapedRecipe;
use pocketmine\inventory\BigShapelessRecipe;
use pocketmine\inventory\DropItemTransaction;
use pocketmine\inventory\EnchantInventory;
use pocketmine\inventory\FurnaceInventory;
use pocketmine\inventory\Inventory;
use pocketmine\inventory\InventoryHolder;
use pocketmine\inventory\PlayerInventory;
use pocketmine\inventory\ShapedRecipe;
use pocketmine\inventory\ShapelessRecipe;
use pocketmine\item\enchantment\Enchantment;
use pocketmine\item\FoodSource;
use pocketmine\item\Item;
use pocketmine\item\Potion;
use pocketmine\level\ChunkLoader;
use pocketmine\level\format\FullChunk;
use pocketmine\level\Level;
use pocketmine\level\Location;
use pocketmine\level\Position;
use pocketmine\level\sound\LaunchSound;
use pocketmine\level\WeakPosition;
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\Network;
use pocketmine\network\protocol\AdventureSettingsPacket;
use pocketmine\network\protocol\AnimatePacket;
use pocketmine\network\protocol\BatchPacket;
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 as ProtocolInfo;
use pocketmine\network\protocol\InteractPacket;
use pocketmine\network\protocol\MovePlayerPacket;
use pocketmine\network\protocol\PlayerActionPacket;
use pocketmine\network\protocol\PlayStatusPacket;
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\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 = array();
protected $messageCounter = 2;
protected $sendIndex = 0;
private $clientSecret;
public $speed = null;
public $blocked = false;
public $achievements = array();
public $lastCorrect;
public $craftingType = self::CRAFTING_SMALL;
protected $isCrafting = false;
public $creationTime = 0;
protected $randomClientId;
protected $protocol;
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 = array();
protected $chunkLoadCount = 0;
protected $loadQueue = array();
protected $nextChunkOrderRun = 5;
protected $hiddenPlayers = array();
protected $newPosition;
protected $viewDistance;
protected $chunksPerTick;
protected $spawnThreshold;
private $spawnPosition = null;
protected $inAirTicks = 0;
protected $startAirTicks = 5;
protected $autoJump = true;
protected $allowFlight = false;
private $needACK = array();
private $batchedPackets = array();
private $perm = null;
public $weatherData = array(0, 0, 0);
public $fromPos = null;
private $portalTime = 0;
protected $shouldSendStatus = false;
private $shouldResPos;
public $fishingHook = null;
public $selectedPos = array();
public $selectedLev = array();
protected $personalCreativeItems = array();
public function linkHookToPlayer(FishingHook $entity)
{
if ($entity->isAlive()) {
$this->setFishingHook($entity);
$pk = new EntityEventPacket();
$pk->eid = $this->getFishingHook()->getId();
$pk->event = EntityEventPacket::FISH_HOOK_POSITION;
$this->server->broadcastPacket($this->level->getPlayers(), $pk);
return true;
}
return false;
}
public function unlinkHookFromPlayer()
{
if ($this->fishingHook instanceof FishingHook) {
$pk = new EntityEventPacket();
$pk->eid = $this->fishingHook->getId();
$pk->event = EntityEventPacket::FISH_HOOK_TEASE;
$this->server->broadcastPacket($this->level->getPlayers(), $pk);
$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)
{
if ($entity == null and $this->fishingHook instanceof FishingHook) {
$this->fishingHook->close();
}
$this->fishingHook = $entity;
}
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);
$fbuwswf = "exp";
return $this->setTotalXp(self::getTotalXpRequirement($level) + $exp);
}
public function setExp(int $exp)
{
trigger_error("This method is deprecated, do not use it", E_USER_DEPRECATED);
$GLOBALS["tvghoihnsnj"] = "exp";
return $this->setTotalXp($exp);
}
public function setExpLevel(int $level)
{
trigger_error("This method is deprecated, do not use it", E_USER_DEPRECATED);
return $this->setXpLevel($level);
}
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)
{
trigger_error("This method is deprecated, do not use it", E_USER_DEPRECATED);
return $this->addXp($exp);
}
public function addExpLevel(int $level)
{
$GLOBALS["qcwtaooe"] = "level";
trigger_error("This method is deprecated, do not use it", E_USER_DEPRECATED);
return $this->addXpLevel($level);
}
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["vlqogdbbapk"] = "value";
if ($value === 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)
{
$ltehbavd = "value";
if ($value === true) {
$this->server->addWhitelist(strtolower($this->getName()));
} else {
$this->server->removeWhitelist(strtolower($this->getName()));
}
}
public function getPlayer()
{
return $this;
}
public function getFirstPlayed()
{
return $this->namedtag instanceof CompoundTag ? $this->namedtag["firstPlayed"] : null;
}
public function getLastPlayed()
{
return $this->namedtag instanceof CompoundTag ? $this->namedtag["lastPlayed"] : null;
}
public function hasPlayedBefore()
{
return $this->playedBefore;
}
public function setAllowFlight($value)
{
$GLOBALS["vdmrmxvbm"] = "value";
$this->allowFlight = (bool) $value;
$this->sendSettings();
}
public function getAllowFlight() : bool
{
return $this->allowFlight;
}
public function setAutoJump($value)
{
$this->autoJump = $value;
$this->sendSettings();
}
public function hasAutoJump() : bool
{
return $this->autoJump;
}
public function spawnTo(Player $player)
{
if ($this->spawned and $player->spawned and $this->isAlive() and $player->isAlive() and $player->getLevel() === $this->level and $player->canSee($this) and !$this->isSpectator()) {
parent::spawnTo($player);
}
}
public function getServer()
{
return $this->server;
}
public function getRemoveFormat()
{
return $this->removeFormat;
}
public function setRemoveFormat($remove = true)
{
$zyvkgjdufoa = "remove";
$this->removeFormat = (bool) $remove;
}
public function canSee(Player $player) : bool
{
return !isset($this->hiddenPlayers[$player->getRawUniqueId()]);
}
public function hidePlayer(Player $player)
{
$mnbwvmrvthk = "player";
$kyuptmhbxt = "player";
if ($player === $this) {
return;
}
$this->hiddenPlayers[$player->getRawUniqueId()] = ${$kyuptmhbxt};
$player->despawnFrom($this);
}
public function showPlayer(Player $player)
{
$hwsbhxw = "player";
if ($player === $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)
{
$GLOBALS["xcdlrcivumlt"] = "value";
$oopqwolie = "value";
if ($value === $this->isOp()) {
return;
}
if (${$oopqwolie} === true) {
$this->server->addOp($this->getName());
} else {
$this->server->removeOp($this->getName());
}
$this->recalculatePermissions();
}
public function isPermissionSet($name)
{
return $this->perm->isPermissionSet($name);
}
public function hasPermission($name) : bool
{
if ($this->perm == null) {
return false;
} else {
return $this->perm->hasPermission($name);
}
}
public function addAttachment(Plugin $plugin, $name = null, $value = null)
{
$GLOBALS["gcildjagoar"] = "value";
if ($this->perm == null) {
return false;
}
return $this->perm->addAttachment($plugin, $name, $value);
}
public function removeAttachment(PermissionAttachment $attachment)
{
if ($this->perm == null) {
return false;
}
$this->perm->removeAttachment($attachment);
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 = $interface;
$this->windows = new \SplObjectStorage();
$this->perm = new PermissibleBase($this);
$this->namedtag = new CompoundTag();
$this->server = Server::getInstance();
$this->lastBreak = PHP_INT_MAX;
$this->ip = $ip;
$this->port = $port;
$this->clientID = $clientID;
$this->loaderId = Level::generateChunkLoaderId($this);
$this->chunksPerTick = (int) $this->server->getProperty("chunk-sending.per-tick", 4);
$this->spawnThreshold = (int) $this->server->getProperty("chunk-sending.spawn-threshold", 56);
$this->spawnPosition = null;
$this->gamemode = $this->server->getGamemode();
$this->setLevel($this->server->getDefaultLevel());
$this->viewDistance = $this->server->getViewDistance();
$this->newPosition = new Vector3(0, 0, 0);
$this->boundingBox = new AxisAlignedBB(0, 0, 0, 0, 0, 0);
$this->uuid = null;
$this->rawUUID = null;
$this->creationTime = microtime(true);
$this->exp = 0;
$this->expLevel = 0;
$this->food = 20;
Entity::setHealth(20);
}
public function removeAchievement($achievementId)
{
if ($this->hasAchievement($achievementId)) {
$GLOBALS["xkibpny"] = "achievementId";
$this->achievements[$achievementId] = false;
}
}
public function hasAchievement($achievementId) : bool
{
$GLOBALS["bjydywwqb"] = "achievementId";
if (!isset(Achievement::${$GLOBALS["ykeuddswqewd"]}[$achievementId]) or !isset($this->achievements)) {
$this->achievements = [];
return false;
}
return isset($this->achievements[$achievementId]) and $this->achievements[$achievementId] != false;
}
public function isConnected() : bool
{
return $this->connected === true;
}
public function getDisplayName()
{
return $this->displayName;
}
public function setDisplayName($name)
{
$GLOBALS["lfmvabic"] = "name";
$this->displayName = $name;
if ($this->spawned) {
$this->server->updatePlayerListData($this->getUniqueId(), $this->getId(), $this->getDisplayName(), $this->getSkinId(), $this->getSkinData());
}
}
public function setSkin($str, $skinId)
{
$bosueur = "skinId";
$GLOBALS["ddxmuckf"] = "str";
parent::setSkin($str, $skinId);
if ($this->spawned) {
$stdgyebv = "skinId";
$this->server->updatePlayerListData($this->getUniqueId(), $this->getId(), $this->getDisplayName(), $skinId, $str);
}
}
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["tdwenk"] = "oldLevel";
$oldLevel = $this->level;
if (parent::switchLevel($targetLevel)) {
foreach ($this->usedChunks as $index => $d) {
$mdfdecec = "X";
$gzwdzhf = "Z";
$kkvnmjuuwz = "index";
Level::getXZ($index, $X, $Z);
$this->unloadChunk($X, $Z, $oldLevel);
}
$this->usedChunks = [];
$pk = new SetTimePacket();
$pk->time = $this->level->getTime();
$GLOBALS["peqgsp"] = "pk";
$pk->started = $this->level->stopTime == false;
$this->dataPacket($pk);
if ($targetLevel->getDimension() != $oldLevel->getDimension()) {
$teyfdinl = "pk";
$pk = new ChangeDimensionPacket();
$pk->dimension = $targetLevel->getDimension();
$pk->x = $this->x;
$qgcrdiq = "pk";
$pk->y = $this->y;
$pk->z = $this->z;
$this->dataPacket($pk);
$this->shouldSendStatus = true;
}
$targetLevel->getWeather()->sendWeather($this);
if ($this->spawned) {
$this->spawnToAll();
}
}
}
private function unloadChunk($x, $z, Level $level = null)
{
$GLOBALS["xtserxleve"] = "z";
$GLOBALS["blpyvieayo"] = "index";
$qkxqcdfvv = "x";
$GLOBALS["frumcvu"] = "index";
$pkpuztjzyf = "z";
$level = $level === null ? $this->level : $level;
$index = Level::chunkHash($x, $z);
$GLOBALS["rouwvulicxs"] = "x";
if (isset($this->usedChunks[$index])) {
$GLOBALS["ebplhdsbxn"] = "z";
$zrrchl = "entity";
$GLOBALS["pjbxelekj"] = "x";
$ijjvluhcjzp = "index";
foreach ($level->getChunkEntities($x, $z) as $entity) {
$bomfgybtv = "entity";
if ($entity !== $this) {
$entity->despawnFrom($this);
}
}
unset($this->usedChunks[${$ijjvluhcjzp}]);
}
$level->unregisterChunkLoader($this, $x, $z);
unset($this->loadQueue[$index]);
}
public function getSpawn() : Position
{
if ($this->spawnPosition instanceof Position and $this->spawnPosition->getLevel() instanceof Level) {
return $this->spawnPosition;
} else {
$lnjzrhmso = "level";
$level = $this->server->getDefaultLevel();
return $level->getSafeSpawn();
}
}
public function sendChunk($x, $z, $payload, $ordering = FullChunkDataPacket::ORDER_COLUMNS)
{
$GLOBALS["brxktrqjrfzp"] = "x";
$ymogttbmgfw = "payload";
$GLOBALS["fcwkooilv"] = "z";
if ($this->connected === false) {
return;
}
$this->usedChunks[Level::chunkHash($x, $z)] = true;
$this->chunkLoadCount++;
if (${$ymogttbmgfw} instanceof DataPacket) {
$clusjgqmtht = "payload";
$this->dataPacket($payload);
} else {
$GLOBALS["ivikpfs"] = "x";
$GLOBALS["geucemxgbkd"] = "pk";
$GLOBALS["srgewyu"] = "ordering";
$pk = new FullChunkDataPacket();
$pk->chunkX = $x;
$agmybe = "z";
$pk->chunkZ = $z;
$pk->order = $ordering;
$pk->data = $payload;
$this->batchDataPacket($pk);
}
if ($this->spawned) {
$omgykykmkojz = "entity";
$ajhbqbx = "z";
foreach ($this->level->getChunkEntities($x, $z) as $entity) {
$yowvbik = "entity";
if ($entity !== $this and !$entity->closed and $entity->isAlive()) {
$entity->spawnTo($this);
}
}
}
}
protected function sendNextChunk()
{
if ($this->connected === false) {
return;
}
Timings::$playerChunkSendTimer->startTiming();
$GLOBALS["wcpbjsws"] = "count";
$count = 0;
foreach ($this->loadQueue as $index => $distance) {
$GLOBALS["oektxdi"] = "Z";
$GLOBALS["tedmlgkyjbzk"] = "X";
$xujjfsimkahg = "X";
if ($count >= $this->chunksPerTick) {
break;
}
$GLOBALS["plrreet"] = "Z";
$GLOBALS["iiesndgkxgk"] = "X";
$GLOBALS["wljosick"] = "Z";
${$xujjfsimkahg} = null;
$rhbaeshaitt = "X";
$lmotfbpox = "X";
$pnrmxfibrsrp = "index";
$Z = null;
Level::getXZ($index, $X, $Z);
$uywrouyb = "count";
++$count;
$xwnspsmxkgib = "index";
$this->usedChunks[$index] = false;
$this->level->registerChunkLoader($this, $X, $Z, true);
if (!$this->level->populateChunk($X, $Z)) {
if ($this->spawned and $this->teleportPosition === null) {
continue;
} else {
break;
}
}
unset($this->loadQueue[${$pnrmxfibrsrp}]);
$this->level->requestChunk($X, $Z, $this);
if (count($this->loadQueue) == 0 and $this->shouldSendStatus) {
$this->shouldSendStatus = false;
$pk = new PlayStatusPacket();
$pk->status = PlayStatusPacket::PLAYER_SPAWN;
$this->dataPacket($pk);
}
}
if ($this->chunkLoadCount >= $this->spawnThreshold and $this->spawned === false and $this->teleportPosition === null) {
$this->doFirstSpawn();
}
Timings::$playerChunkSendTimer->stopTiming();
}
protected function doFirstSpawn()
{
$GLOBALS["pphnyqjzgpdr"] = "pk";
$mwboxyu = "pk";
$this->spawned = true;
$dnvgcjrgbc = "c";
$this->sendPotionEffects($this);
$this->sendData($this);
$pk = new SetTimePacket();
$pk->time = $this->level->getTime();
$dthdwix = "pos";
$GLOBALS["yvgfif"] = "index";
$pk->started = $this->level->stopTime == false;
$GLOBALS["ihmdcxcdq"] = "ev";
$this->dataPacket($pk);
$GLOBALS["wgjseauqqg"] = "pos";
$pos = $this->level->getSafeSpawn($this);
$GLOBALS["bsijodpcenn"] = "ev";
$this->server->getPluginManager()->callEvent($ev = new PlayerRespawnEvent($this, $pos));
$pos = $ev->getRespawnPosition();
if ($pos->getY() < 127) {
$pos = $pos->add(0, 0.2, 0);
}
${$mwboxyu} = new PlayStatusPacket();
$pk->status = PlayStatusPacket::PLAYER_SPAWN;
$this->dataPacket($pk);
$this->noDamageTicks = 60;
foreach ($this->usedChunks as $index => ${$dnvgcjrgbc}) {
$GLOBALS["sftsddfdep"] = "chunkZ";
$jvdykdriej = "index";
$GLOBALS["fqicea"] = "chunkX";
$GLOBALS["vsgolub"] = "chunkX";
$GLOBALS["unqkdnemse"] = "entity";
Level::getXZ($index, $chunkX, $chunkZ);
foreach ($this->level->getChunkEntities($chunkX, $chunkZ) as $entity) {
$GLOBALS["llppggm"] = "entity";
if ($entity !== $this and !$entity->closed and $entity->isAlive()) {
$entity->spawnTo($this);
}
}
}
$this->teleport($pos);
$this->allowFlight = ($this->gamemode == 3 or $this->gamemode == 1);
$this->setHealth($this->getHealth());
$this->server->getPluginManager()->callEvent($ev = new PlayerJoinEvent($this, new TranslationContainer(TextFormat::YELLOW . "%multiplayer.player.joined", [$this->getDisplayName()])));
$this->sendSettings();
if (strlen(trim($msg = $ev->getJoinMessage())) > 0) {
if ($this->server->playerMsgType === Server::PLAYER_MSG_TYPE_MESSAGE) {
$this->server->broadcastMessage($msg);
} elseif ($this->server->playerMsgType === Server::PLAYER_MSG_TYPE_TIP) {
$this->server->broadcastTip(str_replace("@player", $this->getName(), $this->server->playerLoginMsg));
} elseif ($this->server->playerMsgType === Server::PLAYER_MSG_TYPE_POPUP) {
$this->server->broadcastPopup(str_replace("@player", $this->getName(), $this->server->playerLoginMsg));
}
}
$this->server->onPlayerLogin($this);
$this->spawnToAll();
$this->level->getWeather()->sendWeather($this);
if ($this->server->dserverConfig["enable"] and $this->server->dserverConfig["queryAutoUpdate"]) {
$this->server->updateQuery();
}
if ($this->getHealth() <= 0) {
$GLOBALS["sfhhyefk"] = "pk";
$pk = new RespawnPacket();
$pos = $this->getSpawn();
$pk->x = $pos->x;
$pk->y = $pos->y;
$pk->z = $pos->z;
$this->dataPacket($pk);
}
$this->inventory->sendContents($this);
$this->inventory->sendArmorContents($this);
}
protected function orderChunks()
{
$GLOBALS["obogjkxo"] = "newOrder";
$gtrmagsi = "centerZ";
if ($this->connected === false) {
return false;
}
$GLOBALS["yifnizgm"] = "index";
$kbjxfott = "viewDistance";
Timings::$playerChunkOrderTimer->startTiming();
$ckbhtyni = "i";
$this->nextChunkOrderRun = 200;
$pggddptmmoe = "layer";
$viewDistance = $this->server->getMemoryManager()->getViewDistance($this->viewDistance);
$newOrder = [];
$lastChunk = $this->usedChunks;
$GLOBALS["enfpbmqshf"] = "leg";
$GLOBALS["ciqrbupgi"] = "newOrder";
$centerX = $this->x >> 4;
${$gtrmagsi} = $this->z >> 4;
${$pggddptmmoe} = 1;
$leg = 0;
$x = 0;
$z = 0;
$GLOBALS["rjdfcvfcjvxw"] = "i";
for ($i = 0; ${$ckbhtyni} < ${$kbjxfott}; ++$i) {
$GLOBALS["ejlgmharxdk"] = "z";
$lvdlkdjh = "layer";
$GLOBALS["owlemgvvsj"] = "index";
$GLOBALS["abmwirwjpem"] = "chunkX";
$GLOBALS["ckhtfrwllk"] = "index";
$GLOBALS["kcrigevsj"] = "centerX";
$ymumrquz = "x";
$ceswavv = "chunkZ";
$GLOBALS["tuauwxwcp"] = "x";
$chunkX = $x + $centerX;
$GLOBALS["xpyskrj"] = "lastChunk";
$kdbphqhrie = "z";
$bpqhogxonmg = "layer";
$chunkZ = $z + $centerZ;
if (!isset($this->usedChunks[$index = Level::chunkHash($chunkX, $chunkZ)]) or $this->usedChunks[$index] === false) {
$GLOBALS["yidrup"] = "index";
$xqdumqft = "newOrder";
$newOrder[$index] = true;
}
unset($lastChunk[$index]);
$ohfixswmppn = "z";
switch ($leg) {
case 0:
++$x;
if ($x === $layer) {
$icuirdpfb = "leg";
++$leg;
}
break;
case 1:
++$z;
if ($z === $layer) {
$gbgnzohflwgx = "leg";
++$leg;
}
break;
case 2:
--$x;
if (-$x === ${$bpqhogxonmg}) {
$GLOBALS["vuuarnhwo"] = "leg";
++$leg;
}
break;
case 3:
--${$ohfixswmppn};
if (-$z === ${$lvdlkdjh}) {
$GLOBALS["ebfqnyuxlr"] = "layer";
$leg = 0;
++$layer;
}
break;
}
}
foreach ($lastChunk as $index => $bool) {
$GLOBALS["xbouqdihmn"] = "Z";
$GLOBALS["flioxnxh"] = "Z";
$GLOBALS["sextwgdni"] = "X";
$GLOBALS["siocehbsumjy"] = "index";
Level::getXZ($index, $X, $Z);
$this->unloadChunk($X, $Z);
}
$this->loadQueue = $newOrder;
Timings::$playerChunkOrderTimer->stopTiming();
return true;
}
public function batchDataPacket(DataPacket $packet)
{
$bxddhbtmni = "packet";
if ($this->connected === false) {
return false;
}
$timings = Timings::getSendDataPacketTimings(${$bxddhbtmni});
$timings->startTiming();
$this->server->getPluginManager()->callEvent($ev = new DataPacketSendEvent($this, $packet));
if ($ev->isCancelled()) {
$timings->stopTiming();
return false;
}
if (!isset($this->batchedPackets)) {
$this->batchedPackets = [];
}
$this->batchedPackets[] = clone $packet;
$timings->stopTiming();
return true;
}
public function dataPacket(DataPacket $packet, $needACK = false)
{
$GLOBALS["iguxcur"] = "timings";
$GLOBALS["zyjkdxru"] = "ev";
if (!$this->connected) {
return false;
}
$GLOBALS["fubvojiome"] = "packet";
$timings = Timings::getSendDataPacketTimings($packet);
$timings->startTiming();
$ldatgmiufmu = "packet";
$this->server->getPluginManager()->callEvent($ev = new DataPacketSendEvent($this, $packet));
$GLOBALS["nrhqzyttxo"] = "identifier";
if ($ev->isCancelled()) {
$timings->stopTiming();
return false;
}
$identifier = $this->interface->putPacket($this, $packet, $needACK, false);
if ($needACK and $identifier !== null) {
$xrlmqinh = "identifier";
$this->needACK[$identifier] = false;
$timings->stopTiming();
return $identifier;
}
$timings->stopTiming();
return true;
}
public function directDataPacket(DataPacket $packet, $needACK = false)
{
$GLOBALS["nzjgznq"] = "ev";
if ($this->connected === false) {
return false;
}
$hwqooqds = "packet";
$GLOBALS["ekwrrbsrowj"] = "packet";
$timings = Timings::getSendDataPacketTimings($packet);
$wxjpznc = "needACK";
$timings->startTiming();
$this->server->getPluginManager()->callEvent($ev = new DataPacketSendEvent($this, $packet));
if ($ev->isCancelled()) {
$timings->stopTiming();
return false;
}
$identifier = $this->interface->putPacket($this, ${$hwqooqds}, $needACK, true);
if (${$wxjpznc} and $identifier !== null) {
$onohdhntmb = "identifier";
$yyttpfnfblf = "identifier";
$this->needACK[$identifier] = false;
$timings->stopTiming();
return $identifier;
}
$timings->stopTiming();
return true;
}
public function sleepOn(Vector3 $pos)
{
$GLOBALS["addwynhshqtm"] = "pos";
if (!$this->isOnline()) {
return false;
}
$GLOBALS["jhuqnjquv"] = "p";
$tqmugkt = "pos";
foreach ($this->level->getNearbyEntities($this->boundingBox->grow(2, 1, 2), $this) as $p) {
if ($p instanceof Player) {
if ($p->sleeping !== null and $pos->distance($p->sleeping) <= 0.1) {
return false;
}
}
}
$this->server->getPluginManager()->callEvent($ev = new PlayerBedEnterEvent($this, $this->level->getBlock(${$tqmugkt})));
if ($ev->isCancelled()) {
return false;
}
$this->sleeping = clone $pos;
$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($pos);
$this->level->sleepTicks = 60;
return true;
}
public function setSpawn(Vector3 $pos)
{
$GLOBALS["cwzyekgxcki"] = "pk";
if (!$pos instanceof Position) {
$yifslefnf = "level";
$level = $this->level;
} else {
$GLOBALS["lcmzfaecmc"] = "level";
$level = $pos->getLevel();
}
$this->spawnPosition = new WeakPosition($pos->x, $pos->y, $pos->z, $level);
$pk = new SetSpawnPositionPacket();
$pk->x = (int) $this->spawnPosition->x;
$pk->y = (int) $this->spawnPosition->y;
$pk->z = (int) $this->spawnPosition->z;
$this->dataPacket($pk);
}
public function stopSleep()
{
if ($this->sleeping instanceof Vector3) {
$this->server->getPluginManager()->callEvent($ev = 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;
$pk = new AnimatePacket();
$pk->eid = 0;
$pk->action = PlayerAnimationEvent::WAKE_UP;
$this->dataPacket($pk);
}
}
public function awardAchievement($achievementId)
{
if (isset(Achievement::${$GLOBALS["ykeuddswqewd"]}[$achievementId]) and !$this->hasAchievement($achievementId)) {
$GLOBALS["asrxqvx"] = "achievementId";
$GLOBALS["qoeggv"] = "ev";
foreach (Achievement::${$GLOBALS["ykeuddswqewd"]}[$achievementId]["requires"] as $requirementId) {
$GLOBALS["zwcoxxhzjss"] = "requirementId";
if (!$this->hasAchievement($requirementId)) {
return false;
}
}
$this->server->getPluginManager()->callEvent($ev = new PlayerAchievementAwardedEvent($this, $achievementId));
if (!$ev->isCancelled()) {
$this->achievements[$achievementId] = true;
Achievement::broadcast($this, $achievementId);
return true;
} else {
return false;
}
}
return false;
}
public function getGamemode() : int
{
return $this->gamemode;
}
public function setGamemode(int $gm)
{
$GLOBALS["vddkfonzusdf"] = "gm";
$cxiyixyeto = "gm";
$GLOBALS["jawixqpgx"] = "gm";
$xfdbdkhrlif = "gm";
if ($gm < 0 or $gm > 3 or $this->gamemode === $gm) {
return false;
}
$this->server->getPluginManager()->callEvent($ev = new PlayerGameModeChangeEvent($this, $gm));
if ($ev->isCancelled()) {
return false;
}
if ($this->server->autoClearInv) {
$this->inventory->clearAll();
}
$this->gamemode = $gm;
$this->allowFlight = $this->isCreative();
$pvfmvdqxvtqu = "pk";
if ($this->isSpectator()) {
$this->despawnFromAll();
} else {
$this->spawnToAll();
}
$this->namedtag->playerGameType = new IntTag("playerGameType", $this->gamemode);
$pk = new SetPlayerGameTypePacket();
$pk->gamemode = $this->gamemode & 0x1;
$this->dataPacket(${$pvfmvdqxvtqu});
$this->sendSettings();
if ($this->gamemode === Player::SPECTATOR) {
$GLOBALS["usvbwlnxbvw"] = "pk";
$GLOBALS["nxqwkjnfchj"] = "pk";
$pk = new ContainerSetContentPacket();
$pk->windowid = ContainerSetContentPacket::SPECIAL_CREATIVE;
$this->dataPacket($pk);
} else {
$hguygse = "pk";
$pk = new ContainerSetContentPacket();
$pk->windowid = ContainerSetContentPacket::SPECIAL_CREATIVE;
$GLOBALS["okcoqypmg"] = "pk";
$pk->slots = array_merge(Item::getCreativeItems(), $this->personalCreativeItems);
$this->dataPacket($pk);
}
$this->inventory->sendContents($this);
$this->inventory->sendContents($this->getViewers());
$this->inventory->sendHeldItem($this->hasSpawned);
return true;
}
public function sendSettings()
{
$flags = 0;
if ($this->isAdventure()) {
$clnkuy = "flags";
$flags = 1;
}
if ($this->autoJump) {
$flags |= 0x40;
}
if ($this->allowFlight) {
$GLOBALS["bvfpejdjtbb"] = "flags";
$flags |= 0x80;
}
if ($this->isSpectator()) {
$GLOBALS["zvmjghbuub"] = "flags";
$flags |= 0x100;
}
$qitxlcenu = "flags";
$flags |= 0x2;
$ujjqimexr = "flags";
$flags |= 0x4;
$flags |= 0x8;
$pk = new AdventureSettingsPacket();
$pk->flags = $flags;
$pk->userPermission = 2;
$pk->globalPermission = 2;
$this->dataPacket($pk);
}
public function isSurvival() : bool
{
return ($this->gamemode & 0x1) === 0;
}
public function isCreative() : bool
{
return ($this->gamemode & 0x1) > 0;
}
public function isSpectator() : bool
{
return $this->gamemode === 3;
}
public function isAdventure() : bool
{
return ($this->gamemode & 0x2) > 0;
}
public function getDrops() : array
{
if (!$this->isCreative()) {
return parent::getDrops();
}
return [];
}
public function setDataProperty($id, $type, $value)
{
$GLOBALS["izsidbumx"] = "type";
if (parent::setDataProperty($id, $type, $value)) {
$this->sendData($this, [$id => $this->dataProperties[$id]]);
return true;
}
return false;
}
protected function checkGroundState($movX, $movY, $movZ, $dx, $dy, $dz)
{
if (!$this->onGround or $movY != 0) {
$bb = clone $this->boundingBox;
$bb->maxY = $bb->minY + 0.5;
$bb->minY -= 1;
if (count($this->level->getCollisionBlocks($bb, true)) > 0) {
$this->onGround = true;
} else {
$this->onGround = false;
}
}
$this->isCollided = $this->onGround;
}
protected function checkBlockCollision()
{
foreach ($blocksaround = $this->getBlocksAround() as $block) {
$block->onEntityCollide($this);
if ($this->getServer()->redstoneEnabled) {
$GLOBALS["meykasjccelr"] = "block";
if ($block instanceof PressurePlate) {
$GLOBALS["dixbnx"] = "block";
$this->activatedPressurePlates[Level::blockHash($block->x, $block->y, $block->z)] = $block;
}
}
}
if ($this->getServer()->redstoneEnabled) {
foreach ($this->activatedPressurePlates as $key => $block) {
if (!isset($blocksaround[$key])) {
$block->checkActivation();
}
}
}
}
protected function checkNearEntities($tickDiff)
{
foreach ($this->level->getNearbyEntities($this->boundingBox->grow(0.5, 0.5, 0.5), $this) as $entity) {
$GLOBALS["ogqpxijvwgs"] = "entity";
$GLOBALS["ykvgdmggerd"] = "entity";
$entity->scheduleUpdate();
if (!$entity->isAlive()) {
continue;
}
if ($entity instanceof Arrow and $entity->hadCollision) {
$pgaliuqpjy = "entity";
$GLOBALS["yvkelfw"] = "pk";
$jttkyrosden = "item";
$GLOBALS["jxwrdz"] = "add";
$item = Item::get(Item::ARROW, $entity->getPotionId(), 1);
$fmpnukmnnvn = "ev";
$add = false;
if (!$this->server->allowInventoryCheats and !$this->isCreative()) {
$wwyzpsmu = "item";
$GLOBALS["rcjcquef"] = "add";
if (!$this->getFloatingInventory()->canAddItem($item) or !$this->inventory->canAddItem($item)) {
continue;
}
$add = true;
}
$this->server->getPluginManager()->callEvent(${$fmpnukmnnvn} = new InventoryPickupArrowEvent($this->inventory, ${$pgaliuqpjy}));
if ($ev->isCancelled()) {
continue;
}
$pk = new TakeItemEntityPacket();
$pk->eid = $this->getId();
$pk->target = $entity->getId();
Server::broadcastPacket($entity->getViewers(), $pk);
$pk = new TakeItemEntityPacket();
$pk->eid = 0;
$pk->target = $entity->getId();
$this->dataPacket($pk);
if ($add) {
$GLOBALS["pbnvgych"] = "item";
$this->getFloatingInventory()->addItem(clone $item);
}
$entity->kill();
} elseif ($entity instanceof DroppedItem) {
if ($entity->getPickupDelay() <= 0) {
$vfhpwynj = "item";
$item = $entity->getItem();
$esbcehyxjcwo = "item";
if ($item instanceof Item) {
$GLOBALS["jeqouyu"] = "add";
$vqieiiiq = "entity";
$GLOBALS["tmpfgxcq"] = "pk";
$add = false;
if (!$this->server->allowInventoryCheats and !$this->isCreative()) {
if (!$this->getFloatingInventory()->canAddItem($item) or !$this->inventory->canAddItem($item)) {
continue;
}
$vducbarij = "add";
$add = true;
}
$this->server->getPluginManager()->callEvent($ev = new InventoryPickupItemEvent($this->inventory, ${$vqieiiiq}));
if ($ev->isCancelled()) {
continue;
}
switch ($item->getId()) {
case Item::WOOD:
$this->awardAchievement("mineWood");
break;
case Item::DIAMOND:
$this->awardAchievement("diamond");
break;
}
$nlptinx = "pk";
$pk = new TakeItemEntityPacket();
$pk->eid = $this->getId();
$pk->target = $entity->getId();
Server::broadcastPacket($entity->getViewers(), $pk);
$pk = new TakeItemEntityPacket();
$pk->eid = 0;
$pk->target = $entity->getId();
$this->dataPacket($pk);
if ($add) {
$GLOBALS["fwhmjuw"] = "item";
$this->getFloatingInventory()->addItem(clone $item);
}
$entity->kill();
}
}
}
}
}
protected function processMovement($tickDiff)
{
$GLOBALS["nzdnuaorz"] = "delta";
$GLOBALS["rqacujde"] = "revert";
$akebjmal = "from";
$GLOBALS["ogtnrqtvvh"] = "distanceSquared";
$bkalvfmufb = "newPos";
$GLOBALS["imqutraqkxsl"] = "delta";
if (!$this->isAlive() or !$this->spawned or $this->newPosition === null or $this->teleportPosition !== null) {
$this->setMoving(false);
return;
}
${$bkalvfmufb} = $this->newPosition;
$sdnevpvat = "distanceSquared";
$distanceSquared = $newPos->distanceSquared($this);
$baojekhi = "to";
$GLOBALS["wwvygtgzgd"] = "revert";
$revert = false;
if ($this->server->checkMovement) {
if ($distanceSquared / $tickDiff ** 2 > 200) {
$revert = true;
} else {
if ($this->chunk === null or !$this->chunk->isGenerated()) {
$GLOBALS["rkvtskjv"] = "chunk";
$chunk = $this->level->getChunk($newPos->x >> 4, $newPos->z >> 4, false);
if ($chunk === null or !$chunk->isGenerated()) {
$revert = true;
$this->nextChunkOrderRun = 0;
} else {
if ($this->chunk !== null) {
$this->chunk->removeEntity($this);
}
$vkhkufj = "chunk";
$this->chunk = $chunk;
}
}
}
} else {
if ($this->chunk === null or !$this->chunk->isGenerated()) {
$ezappmjogvh = "chunk";
$chunk = $this->level->getChunk($newPos->x >> 4, $newPos->z >> 4, false);
if ($chunk === null or !$chunk->isGenerated()) {
$revert = true;
$this->nextChunkOrderRun = 0;
} else {
if ($this->chunk !== null) {
$this->chunk->removeEntity($this);
}
$this->chunk = $chunk;
}
}
}
if (!$revert and $distanceSquared != 0) {
$bnpirj = "dy";
$GLOBALS["bvymqeeng"] = "diffX";
$GLOBALS["fbpjli"] = "dx";
$dx = $newPos->x - $this->x;
$xjjfoov = "diffY";
$qceqsd = "diffY";
$GLOBALS["gcwflacyxi"] = "diffY";
$prvnes = "dx";
$GLOBALS["ivxttgxdym"] = "yS";
$dy = $newPos->y - $this->y;
$GLOBALS["iesphuxr"] = "yS";
$foxkur = "dz";
$dz = $newPos->z - $this->z;
$this->move($dx, $dy, $dz);
$diffX = $this->x - $newPos->x;
$GLOBALS["yqtzltdm"] = "tickDiff";
$diffY = $this->y - $newPos->y;
$diffZ = $this->z - $newPos->z;
$krjvliihc = "diffX";
$yS = 0.5 + $this->ySize;
$qcoqteb = "yS";
if ($diffY >= -$yS or $diffY <= $yS) {
$diffY = 0;
}
$diff = (${$krjvliihc} ** 2 + $diffY ** 2 + $diffZ ** 2) / $tickDiff ** 2;
}
${$akebjmal} = new Location($this->lastX, $this->lastY, $this->lastZ, $this->lastYaw, $this->lastPitch, $this->level);
${$baojekhi} = $this->getLocation();
$delta = pow($this->lastX - $to->x, 2) + pow($this->lastY - $to->y, 2) + pow($this->lastZ - $to->z, 2);
$deltaAngle = abs($this->lastYaw - $to->yaw) + abs($this->lastPitch - $to->pitch);
if (!$revert and ($delta > 0.0625 or $deltaAngle > 10)) {
$tboxrfhn = "isFirst";
$isFirst = ($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 (!$isFirst) {
$vcvxywqa = "from";
$GLOBALS["yiniqejivqfy"] = "ev";
$ltgvobrxtccb = "to";
$ev = new PlayerMoveEvent($this, $from, $to);
$sknweernrbp = "revert";
$this->setMoving(true);
$this->server->getPluginManager()->callEvent($ev);
if (!($revert = $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()) {
$hfykqrl = "tickDiff";
$this->checkNearEntities($tickDiff);
}
$this->speed = $from->subtract($to);
} elseif ($distanceSquared == 0) {
$this->speed = new Vector3(0, 0, 0);
$this->setMoving(false);
}
if ($revert && !$this->isSpectator()) {
$this->lastX = $from->x;
$this->lastY = $from->y;
$GLOBALS["pxdolox"] = "from";
$this->lastZ = $from->z;
$this->lastYaw = $from->yaw;
$this->lastPitch = $from->pitch;
$this->sendPosition($from, $from->yaw, $from->pitch, 1);
$this->forceMovement = new Vector3($from->x, $from->y, $from->z);
} else {
$this->forceMovement = null;
if ($distanceSquared != 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) {
$GLOBALS["kuhlwoolmuz"] = "headYaw";
$ndowxkomueq = "pitch";
$this->level->addPlayerMovement($this->chunk->getX(), $this->chunk->getZ(), $this->id, $x, $y, $z, $yaw, $pitch, $this->onGround, $headYaw === null ? $yaw : $headYaw);
}
}
public function setMotion(Vector3 $mot)
{
if (parent::setMotion($mot)) {
if ($this->chunk !== null) {
$GLOBALS["qvadjqhutn"] = "pk";
$this->level->addEntityMotion($this->chunk->getX(), $this->chunk->getZ(), $this->getId(), $this->motionX, $this->motionY, $this->motionZ);
$pk = new SetEntityMotionPacket();
$pk->entities[] = [0, $mot->x, $mot->y, $mot->z];
$this->dataPacket($pk);
}
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 = $moving;
}
public function isMoving() : bool
{
return $this->moving;
}
public function sendAttributes()
{
$entries = $this->attributeMap->needSend();
$qirbzi = "entries";
if (count($entries) > 0) {
$rgwemlr = "pk";
$pk = new UpdateAttributesPacket();
$pk->entityId = 0;
$pk->entries = $entries;
$this->dataPacket($pk);
foreach ($entries as $entry) {
$entry->markSynchronized();
}
}
}
public function onUpdate($currentTick)
{
$ebckhrp = "currentTick";
if (!$this->loggedIn) {
return false;
}
$GLOBALS["vszprvcni"] = "tickDiff";
$rsioakw = "tickDiff";
$tickDiff = $currentTick - $this->lastUpdate;
if ($tickDiff <= 0) {
return true;
}
$this->messageCounter = 2;
$this->lastUpdate = ${$ebckhrp};
$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) {
if (!$this->getLevel()->isChunkLoaded($this->fromPos->x, $this->fromPos->z)) {
$this->getLevel()->loadChunk($this->fromPos->x, $this->fromPos->z);
}
$GLOBALS["dgpheyi"] = "add";
$add = [1, 0, 1, 0, 0, 1, 0, 1];
$tempos = null;
$bykccuoqze = "tempos";
for ($j = 2; $j < 5; $j++) {
$rvkycmwepdl = "i";
$rswophxk = "tempos";
$xerbbjkuovu = "i";
$tkqpchem = "i";
for ($i = 0; ${$rvkycmwepdl} < 4; ${$xerbbjkuovu}++) {
$GLOBALS["cmbjctro"] = "i";
$guikxgdc = "add";
$ddnyejjduiz = "j";
if ($this->fromPos->getLevel()->getBlock($this->temporalVector->fromObjectAdd($this->fromPos, $add[$i] * $j, 0, $add[$i + 4] * $j))->getId() === Block::AIR) {
■【無料】ワードプレス:マルウェアスキャン&セキュリティープラグイン [マルウェア・ウィルス検出と駆除]
■WordPress のマルウェア駆除、セキュリティー対策 カスタマイズや修正、引っ越し・復旧のご依頼承ります
(C)2019 ワードプレス ドクター All rights reserved.