[17.4k Lines] Added more blocking events to two factor auth

This commit is contained in:
Rainnny7 2021-02-20 20:37:27 -05:00
parent bad226c19b
commit 652988432f

@ -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<TwoFactorClient> {
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);