Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
xGinko committed Jan 1, 2025
1 parent cf5dfc8 commit f1031c6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package me.xginko.aef.modules.illegals.items;

import com.destroystokyo.paper.event.inventory.PrepareResultEvent;
import me.xginko.aef.utils.permissions.AEFPermission;
import me.xginko.aef.AnarchyExploitFixes;
import me.xginko.aef.utils.enums.IllegalHandling;
import me.xginko.aef.utils.enums.ItemLegality;
import me.xginko.aef.utils.permissions.BukkitPermissionHandler;
import me.xginko.aef.utils.permissions.AEFPermission;
import net.kyori.adventure.text.serializer.plain.PlainTextComponentSerializer;
import org.bukkit.Material;
import org.bukkit.event.EventHandler;
Expand Down Expand Up @@ -61,7 +61,7 @@ public BannedItemNames() {
optionalListeners.add(new Listener() {
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
private void onPrepareResult(PrepareResultEvent event) {
if (BukkitPermissionHandler.permissionValue(bypassPermission, event.getView().getPlayer())) return;
if (AnarchyExploitFixes.permissions().permissionValue(event.getView().getPlayer(), bypassPermission.node()).toBoolean()) return;

ItemStack resultItem = event.getResult();
if (legalityOf(resultItem) == ItemLegality.ILLEGAL) {
Expand Down

0 comments on commit f1031c6

Please sign in to comment.