How should I go about this?

Discussion in 'Spigot Plugin Development' started by VinexAx789, Jun 9, 2018.

  1. Hello I am wondering how I should go about this... detecting if a player is holding right click on a block for x amount of seconds? Please feel free to express how you would go about this.

    Much thanks,

    - Vine
     
  2. PlayerInteractEvent is constantly called while holding right-click on a block
     
  3. I believe that event is called just one time
     
  4. PlayerInteractEvent

    Make sure you:
    Check that you look at the same block during those X seconds.
    Disable scrolling in the hotbar
     
  5. Thank you, much appreciated.
     
    • Friendly Friendly x 1

Share This Page