Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void onBlockBreak(BlockBreakEvent event)
- {
- if(event.getBlock().getType() == Material.GLASS)
- {
- event.getBlock().getWorld().dropItemNaturally(event.getBlock().getLocation(), new ItemStack(event.getBlock().getType(), 1));
- }
- }
Add Comment
Please, Sign In to add comment