On right click event

Discussion in 'Plugin Development' started by Dilogical, May 2, 2020.

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

    Dilogical

    Hi,

    I want to do something when blocking with a sword (1.8.9)... I have an if statement to workout when to do it, but I don't know where the if should be placed. There is no event for blocking a sword unless I am dumb?

    I need the if statement to be true, but I don't know what event it should be under... is there a way t use the listener to do this?

    Here is the small code snippet.

    [​IMG]
     
  2. Offline

    KarimAKL

    @Dilogical I think PlayerInteractEvent should work for when you start, however i'm not so sure about when you stop.
     
  3. Offline

    timtower Administrator Administrator Moderator

    @Dilogical Strings are compared with equals or equalsIgnoreCase, not with ==
     
Thread Status:
Not open for further replies.

Share This Page