My bad, realized I missed that as soon as I posted that. I made a handler and set it to disable damage when the source was lightning. The problem is that it disables the damage for everybody, how can I make it just disable it when my custom item is being held?
Here (https://mcforge.readthedocs.io/en/latest/events/intro/#canceling) it says to call Event#setCanceled to cancel an event, but how do I check it first? Also, where should I be calling it? Every tick?