How to detect a book being read

Discussion in 'Plugin Development' started by iTidez, Jan 21, 2015.

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

    iTidez

    So I have been working a plugin that gives a player a written book, but I only want the book to be able to be read once. How can I detect if a book has been opened or read? Not sure which event to check or if its even possible.
     
  2. Offline

    mythbusterma

    @iTidez

    You can listen for the PlayerInteractEvent, seeing if they right click a block or the air, then check what is in their hand.
     
Thread Status:
Not open for further replies.

Share This Page