Skip to content

Commit

Permalink
Update AntiLoop.java
Browse files Browse the repository at this point in the history
  • Loading branch information
windy664 authored Feb 11, 2025
1 parent 1016991 commit 0630114
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/knkiss/cn/AntiLoop.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ public void onEnable() {

@EventHandler
public void onPlaceBlock(BlockPlaceEvent e) {
log = this.getLogger();
getLogger().info("绕过权限");
if (e.getPlayer().hasPermission("AntiLoop.bypass")) return;
getLogger().info("绕过方块类型");
if (!itemID.contains(e.getBlock().getType())) return;
itemGroup.forEach(group -> {
if (group.check(e.getBlock(), e.getPlayer())) {
Expand Down

0 comments on commit 0630114

Please sign in to comment.