Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (event.getBlockPlaced().getType().equals(Material.LECTERN) && event.getBlockPlaced().getState() instanceof Lectern &&
- (event.getItemInHand().getType().equals(Material.WRITTEN_BOOK) || event.getItemInHand().getType().equals(Material.WRITABLE_BOOK))) {
- Lectern lectern = (Lectern) event.getBlockPlaced().getState();
- // Do whatever with Lectern object here.
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement