Advertisement
Guest User

Untitled

a guest
Dec 21st, 2014
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     @EventHandler(priority = EventPriority.HIGHEST)
  2.     public void onBlockFromToEvent(BlockFromToEvent event){
  3.         // should not need to check for stationary water..
  4.         if (event.getToBlock().getType().equals(Material.WATER))
  5.         {
  6.             event.setCancelled(true);
  7.             logger.info("Water flowed");
  8.         }
  9.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement