@Deathlysteve- I'd rather not. But if you'd give me an example for the reason, and how I should try and detect the areas/regions..
If you wanted to add one more line of code, you could make it so there is no drowning only if the player is wearing a certain helmet. i.e. if(event.getPlayer().getInventory().getHelmet().equals(Item.DIAMOND_HELMET)){ event.setCanceled(true); }
Thanks a ton, this is exactly what I wanted, no BS about helmets or anything, and unfortunately, no, Gills didn't do what I was trying to make it do by default, but hopefully this will do what we need. I appreciate the time you took to program this. Everyone on my server is happy to be able to build in that giant crater we made and not drown or fly up for air. :V
Would you mind if I expanded on this plugin or helped you create a new more advanced version? I would give you credit of course.
Huh, I don't think you need to give credit for something that just disables damage from drowning. That's ONE line of code.
No this is great! Lightweight and simple is the way to go. I agree with WindTag. No additional features needed. There are other plugins if that's what folks want. Please keep it current with the Bukkit releases.
This code will NEVER need to be updated. Ignore the "recommended/tested" build because this shouldn't ever break. (ever)