public static boolean canAccess(Player player, Block block) {
return canAccess(player, block, false);
}
public static boolean canAccess(Player player, Block block, boolean ignoreDefaultProtection) {
ProtectionCheckEvent event = new ProtectionCheckEvent(block, player, ignoreDefaultProtection);
ChestShop.callEvent(event);
return event.getResult() != Event.Result.DENY;
}