Custom Player Block Event Code

Discussion in 'Plugin Development' started by Cloaking_Ocean, Aug 15, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    Cloaking_Ocean

    So I was thinking about how I could listen for Player Blocking and I learned about how events could be made. I don't have a lot of time so I was wondering if some other devs could give there best PlayerBlockEvent so that i could use it in my plugin. Yes this is kinda just trying to get code but i could use some help, thanks in advance.
     
  2. Offline

    DinosParkour

    Cloaking_Ocean
    Player Blocking? as in Sword Block?
    Just listen for PlayerInteractEvent, if action is right click (air || block) and if helditem is a sword
     
    Cloaking_Ocean likes this.
  3. Offline

    Cloaking_Ocean

    DinosParkour Omg i can't believe how stupid I am xD time to turn in my "smart" degree. Thanks a lot
     
Thread Status:
Not open for further replies.

Share This Page