Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler(priority = EventPriority.HIGH, ignoreCancelled=true)
- public void onBlockBreak(BlockBreakEvent event){
- if (event.getPlayer().getItemInHand() == null) return;
- ItemStack item = event.getPlayer().getItemInHand();
- if (EnchantsPlugin.getUtils().readEnchants(item).contains("PickaxeCubed")) return; //Line 207
- if (item.hasItemMeta()){
- if (item.getItemMeta().hasDisplayName()){
- if (item.getItemMeta().getDisplayName().contains(ChatColor.RED + "Pickaxe")){
- EnchantsPlugin.getUtils().getParser().applyAllEnchants("PickaxeCubed:1", item);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment