Guest User

Untitled

a guest
Apr 24th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.24 KB | None | 0 0
  1. public void onBlockBreak(BlockBreakEvent event)
  2. {
  3.     if(event.getBlock().getType() == Material.GLASS)
  4.     {
  5.         event.getBlock().getWorld().dropItemNaturally(event.getBlock().getLocation(), new ItemStack(event.getBlock().getType(), 1));
  6.     }
  7. }
Add Comment
Please, Sign In to add comment