Advertisement
Guest User

Untitled

a guest
Jun 29th, 2020
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.36 KB | None | 0 0
  1. if (event.getBlockPlaced().getType().equals(Material.LECTERN) && event.getBlockPlaced().getState() instanceof Lectern &&
  2.     (event.getItemInHand().getType().equals(Material.WRITTEN_BOOK) || event.getItemInHand().getType().equals(Material.WRITABLE_BOOK))) {
  3.   Lectern lectern = (Lectern) event.getBlockPlaced().getState();
  4.   // Do whatever with Lectern object here.
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement