Nerfstick
This plugin allows server owners to further customize when and where debug sticks can be used. With this plugin, debug sticks can be safely given to players in survival. This plugin prevents players from using debug sticks in protections where the member isn't allowed to build such as worldguard regions and griefprevention claims. You can also customize exactly what properties can be modified on each block.
Setup for Luckperms
Here's what I use on my server and it's a good starting point. LuckPerms works with regex and that's what the r= means in the permissions below, but some permission plugins might not support this, so if you're not using Luckperms, look into that some more.
Set minecraft.debugstick.always to true to allow players to use the debug stick outside of creative mode.
Set r=nerfstick.use.minecraft.*.waterlogged to false in context of dimension-type the_nether. This is to prevent waterlogging blocks in the nether.
Set these permissions to true. It's a whitelist of blocks that could be modified with the stick.
- nerfstick.use.minecraft.barrel.*
- nerfstick.use.minecraft.bell.*
- nerfstick.use.minecraft.furnace.*
- nerfstick.use.minecraft.ladder.*
- nerfstick.use.minecraft.lectern.*
- nerfstick.use.minecraft.lever.*
- nerfstick.use.minecraft.lightning_rod.*
- nerfstick.use.minecraft.note_block.*
- nerfstick.use.minecraft.observer.*
- nerfstick.use.minecraft.rail.*
- nerfstick.use.minecraft.redstone_comparator.*
- nerfstick.use.minecraft.tripwire_hook.*
- nerfstick.use.minecraft.redstone_lamp.*
- nerfstick.use.minecraft.ender_chest.*
- nerfstick.use.minecraft.dispenser.facing
- nerfstick.use.minecraft.dropper.facing
- nerfstick.use.minecraft.piston.facing
- nerfstick.use.minecraft.sticky_piston.facing
- r=nerfstick.use.minecraft.*_chest.*
- r=nerfstick.use.minecraft.*_fence.*
- r=nerfstick.use.minecraft.*_gate.*
- r=nerfstick.use.minecraft.*_glazed_terracotta.*
- r=nerfstick.use.minecraft.*_lantern.*
- r=nerfstick.use.minecraft.*_leaves.*
- r=nerfstick.use.minecraft.*_log.*
- r=nerfstick.use.minecraft.*_rail.*
- r=nerfstick.use.minecraft.*_repeater.*
- r=nerfstick.use.minecraft.*_sign.*
- r=nerfstick.use.minecraft.*_stairs.*
- r=nerfstick.use.minecraft.*_trapdoor.*
- r=nerfstick.use.minecraft.*_wall.*