Worldguard, you'll be needing worldedit for that but it makes blocks unbreakable (if you flag it of course.) for those who have done bad stuff and deserve to be jailed, Minehut has a whole tutorial for worldguard and worldedit, I recommend watching that before attempting to do something with world guard and world edit, be sure to name the region jail or something rememberable!