diff --git a/core/src/main/java/zone/themcgamer/core/twoFactor/TwoFactorAuthentication.java b/core/src/main/java/zone/themcgamer/core/twoFactor/TwoFactorAuthentication.java index 14019ce..56629b9 100644 --- a/core/src/main/java/zone/themcgamer/core/twoFactor/TwoFactorAuthentication.java +++ b/core/src/main/java/zone/themcgamer/core/twoFactor/TwoFactorAuthentication.java @@ -2,6 +2,7 @@ package zone.themcgamer.core.twoFactor; import com.cryptomorin.xseries.XMaterial; import com.cryptomorin.xseries.XSound; +import com.destroystokyo.paper.event.player.PlayerPickupExperienceEvent; import com.warrenstrange.googleauth.GoogleAuthenticator; import net.md_5.bungee.api.chat.ClickEvent; import net.md_5.bungee.api.chat.ComponentBuilder; @@ -210,6 +211,26 @@ public class TwoFactorAuthentication extends MiniAccount { cancelEvent((Player) entity, event); } + @EventHandler(priority = EventPriority.LOWEST) + private void onPickupItem(PlayerAttemptPickupItemEvent event) { + cancelEvent(event); + } + + @EventHandler(priority = EventPriority.LOWEST) + private void onPickupArrow(PlayerPickupArrowEvent event) { + cancelEvent(event); + } + + @EventHandler(priority = EventPriority.LOWEST) + private void onPickupExperience(PlayerPickupExperienceEvent event) { + cancelEvent(event); + } + + @EventHandler(priority = EventPriority.LOWEST) + private void onDropItem(PlayerDropItemEvent event) { + cancelEvent(event); + } + @EventHandler(priority = EventPriority.LOWEST) private void onHeldItemChange(PlayerItemHeldEvent event) { cancelEvent(event);