Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. case 1:
  2. event.setCancelled(true);
  3. block.setType(Material.AIR);
  4. block.getWorld().dropItem(block.getLocation(), new ItemStack(Material.IRON_INGOT));
  5. break;
  6. case 2:
  7. event.setCancelled(true);
  8. block.setType(Material.AIR);
  9. block.getWorld().dropItem(block.getLocation(), new ItemStack(Material.GOLD_INGOT));
  10. break;
  11. case 3:
  12. event.setCancelled(true);
  13. block.setType(Material.AIR);
  14. block.getWorld().dropItem(block.getLocation(), new ItemStack(Material.GLASS));
  15. break;
  16. case 4:
  17. event.setCancelled(true);
  18. block.setType(Material.AIR);
  19. block.getWorld().dropItem(block.getLocation(), new ItemStack(Material.STONE));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement