1. what is operator >> I dodn´t find it. Google can´t find it. 2. how to use player->attack()? it attack another entity by this player? and source is new EntityDamageEvent($attackedEntity, $cause, $damage); ? 3. how to handle touch on button (e.g. enter boat button, fish button, dog button)? should i use onDataPacketRecieve? and which data packet is it? 4. Why when i send SetSpawnPositionPacket so it doesn´t update player´s compass?
1. $a >> $b means divide $a by two $b times. (http://php.net/manual/en/language.operators.bitwise.php) 2. I would have to look that up, I haven't used it. 3. There isn't a packet for button presses. You will have to look at other packets which result from the button press. 4. It should.
ok Thx And when i touch button it is entity damage event because when i touch it on dog it hit him but i dont know how to handle it :/