Add support for InvUnload #146

Merged
mfnalex merged 2 commits from master into master 2020-07-15 22:38:38 -04:00
Showing only changes of commit d06fb2515d - Show all commits

View File

@@ -55,8 +55,8 @@ public class PlayerListener implements Listener {
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
public void onPlayerInteract(PlayerInteractEvent event) {
// Do not cancel the event if it is the InvUnloadCheckAccessEvent
if(!event.getClass().getName().equals("de.jeff_media.InvUnload.API.InvUnloadCheckAccessEvent")) {
// Do not cancel 3rd party plugins' custom events
if (!PlayerInteractEvent.class.equals(event.getClass())) {
return;
}