Advertisement
Guest User

Untitled

a guest
Aug 20th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. drops.add(new ItemStack(Material.NETHER_WARTS));
  2.  
  3. @EventHandler
  4. public void onBreakLiscie(final BlockBreakEvent e) {
  5. final Player p = e.getPlayer();
  6. final Block b = e.getBlock();
  7. if (e.getBlock().equals(Material.LEAVES) && e.getBlock().equals(Material.LEAVES_2) && RandomUtil.getChance(80.0)) {
  8. ChatUtil.sendMessage(p, "&7Wylosowales jablko!");
  9. ChatUtil.giveItems(p, new ItemStack(Material.APPLE));
  10. return;
  11. //code by esvalde //hycore.pl
  12. }
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement