Configuration
Configuration
Example config:
check-update: 'true' allow-event-cancel: 'true' allow-water-in-nether: 'false' water: proof: - 55 - 75 - 76 - Torch break: - SUGAR_CANE_BLOCK world: decay: 'true' infinite: 'true' reduction: '1' tick: '5' nether: decay: 'true' infinite: 'true' reduction: '1' tick: '5' lava: proof: - 55 - 75 - 76 break: - obsidian world: decay: 'false' infinite: 'false' reduction: '2' tick: '30' nether: decay: 'false' infinite: 'false' reduction: '1' tick: '10'
[w/l] = [water/lava]
[w/n] = [world/nether]
Node | Description |
---|---|
check-update | Whether or not to check for updates |
allow-event-cancel | If set to 'false', other Plugins cannot cancel a block break caused by water of lava, they can still log it however. |
allow-water-in-nether | Whether or not to allow users to use water buckets in the nether. |
[w/l].proof [w/l].break | For both water and lava you can specify a list of blocks which will resist and a list of blocks which will break if hit by water/lava. You can either use the block IDs or the material names (where it says "Enum Constant Summary"). |
[w/l].[w/n].decay | Whether or not water/lava in the overworld/nether should disappear if the source block is removed. Default is "true" for water and "false" for lava. |
[w/l].[w/n].infinite | Whether or not you can create infinite water/lava sources in the overworld/nether. Default is "true" for water and "false" for lava. |
[w/l].[w/n].reduction | How much water/lava reduces when flowing in the overworld/nether. The higher this value is, the fewer blocks water/lava will flow. Minimum is 1, maximum is 8. Default is 2 for lava in the overworld and 1 for everything else. |
[w/l].[w/n].tick | How often water/lava should be updated in the overworld/nether. The lower this value, the faster water/lava will flow. Default is 5 for water, 10 for lava in the nether and 30 for lava in the overworld. |
Creating links
This is basically just a YAML feature, but since most people don't know about it, I think I'll explain it.
If you just install WaterProof and start your server, your config will look like this (without the comments):
check-update: 'true' allow-event-cancel: 'false' allow-water-in-nether: 'true' water: world: decay: 'true' infinite: 'true' reduction: '1' tick: '5' nether: decay: 'true' infinite: 'true' reduction: '1' tick: '5' proof: &id001 # <--- Here here here - '50' - '75' - '76' break: [] lava: world: decay: 'true' infinite: 'true' reduction: '2' tick: '5' nether: decay: 'true' infinite: 'true' reduction: '1' tick: '5' proof: *id001 # <--- And here too break: []
So, where it says "here here here", a new list is defined.
By writing "&name" you define an alias called "name".
To use that alias later (where it says "and here too"), simply write "*name".