From f0901800838306dc59a74a3633795b37a3902d96 Mon Sep 17 00:00:00 2001 From: Liel Date: Wed, 9 Mar 2022 00:18:41 +0200 Subject: [PATCH] Fixed a bug in death event --- .../com/lielamar/auth/bukkit/listeners/DisabledEvents.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/lielamar/auth/bukkit/listeners/DisabledEvents.java b/src/main/java/com/lielamar/auth/bukkit/listeners/DisabledEvents.java index 207b7fe..e7aa034 100644 --- a/src/main/java/com/lielamar/auth/bukkit/listeners/DisabledEvents.java +++ b/src/main/java/com/lielamar/auth/bukkit/listeners/DisabledEvents.java @@ -189,11 +189,11 @@ public void onItemFrameInteract(PlayerInteractEntityEvent event) { @EventHandler (priority = EventPriority.HIGHEST) public void onDeath(PlayerDeathEvent event) { - if(!this.main.getConfigHandler().getDisabledEvents().getOrDefault(event.getClass(), true)) return; + if(!this.plugin.getConfigHandler().getDisabledEvents().getOrDefault(event.getClass(), true)) return; - if(!this.main.getAuthHandler().needsToAuthenticate(event.getEntity().getUniqueId())) return; + if(!this.plugin.getAuthHandler().needsToAuthenticate(event.getEntity().getUniqueId())) return; // Don't drop the QR Code item if the player needs to authenticate. - event.getDrops().removeIf(item -> this.main.getAuthHandler().isQRCodeItem(item)); + event.getDrops().removeIf(item -> this.plugin.getAuthHandler().isQRCodeItem(item)); } } \ No newline at end of file