Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

some questions

Comments in 'Plugin Development' started by ahoj_truhliku, Jul 11, 2015.

  1. ahoj_truhliku
    Offline

    ahoj_truhliku Banned

    Joined:
    Jul 9, 2015
    Posts:
    89
    Minecraft User:
    Creeperface001
    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?
    Last edited: Jul 11, 2015
  2. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,706
    Plugins:
    22
    Minecraft User:
    Falkirknh
    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.
    EvolSoft and PEMapModder like this.
  3. ahoj_truhliku
    Offline

    ahoj_truhliku Banned

    Joined:
    Jul 9, 2015
    Posts:
    89
    Minecraft User:
    Creeperface001
    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 :/

Share This Page

Advertisement