PlayerInteractEvent#getClickedBlock returns null

Discussion in 'Plugin Development' started by Chr0mosom3, Mar 27, 2019.

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

    Chr0mosom3

    I have a problem on this line of code:
    Code:
    arena.setLocation(1, e.getClickedBlock().getLocation());
    The e.getClickedBlock().getLocation() returns null, someone pls help.

    Btw, I checked other threads and either not solved or not the same problem.
     
  2. Offline

    timtower Administrator Administrator Moderator

    @MrDaniel it also fires of you click in the air.
    You can check what kind of click kt was with getAction
     
Thread Status:
Not open for further replies.

Share This Page