This will check if the PlayerInteractEvent is an instance of InvUnload's custom event extending the PlayerInteractEvent. If yes, the listener immediately exists, because it doesn't have to do anything.
This is checked by using Event#getClass#getName, so that no dependencies need to be added. It has no downsides at all, so it would be nice if you could consider merging this PR.
This will not cancel 3rd party plugins' events that extend PlayerInteractEvent.
This will check if the PlayerInteractEvent is an instance of InvUnload's custom event extending the PlayerInteractEvent. If yes, the listener immediately exists, because it doesn't have to do anything.This is checked by using Event#getClass#getName, so that no dependencies need to be added. It has no downsides at all, so it would be nice if you could consider merging this PR.This will not cancel 3rd party plugins' events that extend PlayerInteractEvent.
This fixes #144