Just wondering if there is a event for water movement? I would like to be able to unban buckets but so people can make pools and other cool stuff but people insist on making water falls witch causes lag /: so I been trying to think of a way to stop water/lava from flowing.
I have, I also ban ice and all buckets. but if there was a way to stop it from flowing I feel that would be better so others may use the water and not be able to make giant water falls lol
flowing water and regular water have different item I'ds right? couldn't it be possible to make a plugin that..well scans every world in the server for flowing waters I'd and sets it to air if found? or is that not possible to scan worlds like that.
You just bumped a pretty old thread lol PHP: public function onBlockUpdate(BlockUpdateEvent $event){ if($event->getBlock() instanceof Lava && $this->getConfig()->get("enable")["spread"]["lava"] === false){ $event->setCancelled(); } if($event->getBlock() instanceof Water && $this->getConfig()->get("enable")["spread"]["water"] === false){ $event->setCancelled(); } }
PHP: public function onBlockUpdate(BlockUpdateEvent $event, Block $block){ $item = $block->getId(); if($item === 8) { $event->setCancelled(true); } if($item === 9) { $event->setCancelled(true); } if($item === 10) { $event->setCancelled(true); } if($item === 11) { $event->setCancelled(true); } }