How to stop the flow of liquid?

How to stop the flow of liquid?

You’ll want to listen for a ChangeBlockEvent.Place where the cause contains a LocatableBlock of liquid. Then you can cancel the event.

EDIT: I just tried that, and apparently it doesn’t actually work.