Hey guys, i currently have this skript:
on block damage:
if event-block is barrier:
if player's tool is pickaxe:
set event-block to air
make console execute command "/give %player% barrier 1"
issue is, with this current method, it bypasses worldguard - meaning a player could break, in this case, barriers in places they're not permitted to. How could this be rewritten to disallow this?