Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/main/java/ca/tweetzy/skulls/hooks/WorldGuardHook.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ public boolean isAllowedPlace(@NonNull final Player player, @NonNull final Block
if (WorldGuard.getInstance().getPlatform().getSessionManager().hasBypass(WorldGuardPlugin.inst().wrapPlayer(player), world))
return true;

return query.testState(loc, WorldGuardPlugin.inst().wrapPlayer(player), Flags.BUILD);
// BUILD and BLOCK-PLACE flags are verified
return query.testState(loc, WorldGuardPlugin.inst().wrapPlayer(player), Flags.BUILD, Flags.BLOCK_PLACE);
}

public boolean isAllowedBreak(@NonNull final Player player, @NonNull final Block block) {
Expand Down