title: Bukkit - Detect Right click
body: <p>How would I detect if a player has right clicked a book after they run a specific command?
  I have</p>
  
  <pre><code> if (playere.getItemInHand().getType() != Material.AIR &amp;&amp; (event.getAction() == Action.RIGHT_CLICK_BLOCK ||  event.getAction() == Action.RIGHT_CLICK_AIR)) {
  </code></pre>
  
  <p>but I don't know where to put it.</p>