How to stop certain water blocks from flowing?

Discussion in 'Spigot Plugin Help' started by Bluehawk409, Jun 5, 2021.

  1. Hi. I have a plugin that creates some blocks of water, but I don't want them to flow. Normally, I would just use:
    Code (Text):
    public void onBlockFromTo(BlockFromToEvent event) {
          if(event.getBlock().getType() == Material.WATER)) {
    But this stops all water in the world from flowing, while I only want the ones set by the plugin to not flow. Any suggestions?