Sueta

Waterproof Blocks

1.0-RELEASE

Manage which blocks on your server can not be broken because of water

·Plugin

WaterproofBlocks is a plugin which lets you configure (in the config.yml ) blocks which you don't want to break due to water. This plugin is fairly lightweight since it doesn't require very much validation therefore ideal for any size server.

This is what the config.yml file looks like:

invalid-usage   :  '&cInvalid command usage  :  /waterproofredstone <toggle | reload>.'  
no-permission   :  '&cYou do not have permission to use this command.'  
config-reloaded   :  '&aThe configuration was reloaded successfully.'  
toggled-status   :  '&7You have toggled the status of the plugin to  :   %status%'   
status-on   :  '&aon'  
status-off   :  '&coff' 
 
enabled   :  true  
waterproof-blocks   : 
  - REDSTONE_WIRE

The top bit of the config is just messages which you can edit to your liking. The status-on and status-off variables are for when you enter the command /waterproofblocks toggle . If the waterproof feature is enabled and you call the toggle command, the status-off message will replace the %status% in the toggled-status message. If the waterproof feature is disabled and you call the toggle command, the status-on message will replace the %status% in the toggled-status message.

waterproof-blocks is just a list of blocks which you don't want to be broken by water. If you edit the list of blocks, just use the /waterproofblocks reload command and all changes will be saved.

Similar projects

Plugin →