LiquidProtect
LiquidProtect
Features
LiquidProtect is a simple plugin that prevents people from placing water or lava if they don't have the permissions.
Permissions
- water.use - lets the user place water.
- lava.use - lets the user place lava.
Example situation
An example of how you could use this plugins is that you could make it so that your default rank or builder rank doesn't have the permissions, but when you are promoted to trusted, you get the permissions to place liquids because the server trusts you.
Known bugs
- This only works for water/lava blocks, not buckets (having a little trouble fixing this.)
Credits
- garrett2smart87 - author
ItemStack stack = event.getPlayer().getItemInHand()
not
event.getItem()
@th3controller
Thank you very much. I will work on it in a bit...
Just a developer note, lava/water buckets are considered items not blocks. So in this code I setup a little example for you.
By the way don't copy and paste that code, that's an example. So you should be able to build on that. Anything above 256 is a item and anything below 256 is a block. Blocks and items are not always treated the same way.