SHARE
TWEET

Untitled

a guest Jul 22nd, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.     @EventHandler
  3.     public void onbreak(BlockBreakEvent e) {
  4.         if(e.getBlock().getType().equals(Material.SUGAR_CANE_BLOCK)) {
  5.             if(ReflexTools.isHarvesterTool(e.getPlayer().getItemInHand())) {
  6.                 if(EnchantH.hasEnchant("Token", e.getPlayer().getItemInHand())) {
  7.                     this.payToken(e.getPlayer());  
  8.                 }
  9.                 else {
  10.                     return;
  11.                 }
  12.  
  13.             }
  14.         }
  15.         else if(e.getBlock().getType().equals(Material.PUMPKIN) || e.getBlock().getType().equals(Material.MELON)) {
  16.  
  17.             if(ReflexTools.isMelonTool(e.getPlayer().getItemInHand())|| ReflexTools.isMelonTool(e.getPlayer().getItemInHand())) {
  18.                 if(EnchantH.hasEnchant("Token", e.getPlayer().getItemInHand())) {
  19.                     this.payToken(e.getPlayer());  
  20.                 }
  21.                 else {
  22.                     return;
  23.                 }
  24.             }
  25.             else {
  26.                 return;
  27.             }
  28.  
  29.         }
  30.         else {
  31.             return;
  32.         }
  33.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top