If you want to accomplish this with your own plugin, then you would listen to the event
BlockFromToEvent
, and then you could check if the block had moved was a liquid, and if so, cancel the event.
If you want to just set a world guard flag, select the relevant region, and set the region flags
water-flow
and
lava-flow
to
false
.
Hope that helps.