Added 1.18 support, rewrote all the attack code to be more efficient, smaller, not as buggy and easier to maintain. This resulted in a few issues that were hard to fix being fixed, the biggest was off-hand weapons using the main-hand swing cooldown, this has been corrected and off-hand weapons should always use the correct damage and cooldown. Added a blacklist for items when attacking or mining, BOW, CROSSBOW and SHIELD are on blacklisted by default. Added options to cancel the event which caused the attack and mine to take place, this does not cancel attacking or mining, only the original event, this means that off-hand axes won't strip logs and off-hand shovels won't turn grass into paths.