diff --git a/external/src/main/java/de/epiceric/shopchest/external/worldguard/WGCreateHook.java b/external/src/main/java/de/epiceric/shopchest/external/worldguard/WGCreateHook.java index bea2a41..66dc4b5 100644 --- a/external/src/main/java/de/epiceric/shopchest/external/worldguard/WGCreateHook.java +++ b/external/src/main/java/de/epiceric/shopchest/external/worldguard/WGCreateHook.java @@ -3,6 +3,7 @@ package de.epiceric.shopchest.external.worldguard; import com.sk89q.worldedit.bukkit.BukkitAdapter; import com.sk89q.worldedit.util.Location; import com.sk89q.worldedit.world.World; +import com.sk89q.worldguard.protection.flags.Flags; import de.epiceric.shopchest.hook.CreateShopHook; import de.epiceric.shopchest.hook.ExtendShopHook; import org.bukkit.block.Block; @@ -28,7 +29,7 @@ public class WGCreateHook extends WGHook implements CreateShopHook, ExtendShopHo final World world = BukkitAdapter.adapt(newestBlock.getWorld()); final List locations = getLocations(world, currentShopBlocks); locations.add(getLocation(world, newestBlock)); - return test(locations, null, registry.getCreate().get()); + return test(locations, player, Flags.CHEST_ACCESS, registry.getCreate().get()); } }