main/Configuration
You don't need to edit config.yml if you going to enable or disable currently supported mods. Use permissions instead. You must edit configuration only if you going to add new block-codes or edit current.
Default config file will be created after first-time plugin startup:
# SBC by fromgate, http://dev.bukkit.org/bukkit-plugins/sbc/ # You can add new block codes in this file: # Field: <BlockCodeGroup>.<BlockCodeName>.code must contain a block code # Field: <BlockCodeGroup>.<BlockCodeName>.block is set to "true" if this code # required to block mod and to "false" if this code required to allow mod schematica: printer: code: '&0&2&0&0&e&f' block: true save: code: '&0&2&1&0&e&f' block: true load: code: '&0&2&1&1&e&f' block: true cheats: zmbzcheat: code: '&f &f &2 &0 &4 &8 ' block: true zmbnoclip: code: '&f &f &4 &0 &9 &6 ' block: true cjbxray: code: '&3 &9 &2 &0 &0 &2 ' block: true reicave: code: '&0&0&1&e&f' block: false automap-ore: code: '&0&0&1&f&e' block: true automap-cave: code: '&0&0&2&f&e' block: true smart-climb: code: '&0&1&0&1&2&f&f' block: true smart-swim: code: '&0&1&3&4&f&f' block: true smart-crawl: code: '&0&1&5&f&f' block: true smart-slide: code: '&0&1&6&f&f' block: true smart-jump: code: '&0&1&8&9&a&b&f&f' block: true fly: zmbfly: code: '&f &f &1 &0 &2 &4 ' block: true cjbfly: code: '&3 &9 &2 &0 &0 &1 ' block: true smart-fly: code: '&0&1&7&f&f' block: true radar: cjbradar: code: '&3 &9 &2 &0 &0 &3 ' block: true reiradar: code: '&0&0&2&3&4&5&6&7&e&f' block: false automap-radar: code: '&0&0&3&4&5&6&7&8&f&e' block: true
Config sections is include group node (cheats, fly, radar, schematica) and permission node for single block code (zmbzcheat, zmbnoclip, cjbxray, reicave, zmbfly... etc). Parameter code of the section includes block-code. The inv parameters is defining when blockcode will be sent to player. If inv is set to true block code will be sent if player has not a permission "sbc.<group>" or "sbc.<group node>.<permission node>". If ".block" is set to true, block-code will be sent only if player has a required permission (it means that tartget block require block-code to disable the mod functionality).
Add new block-code or message
You can add new block-codes to config.yml file, and even you can use SBC to display on join message to player defined by his permission. Example of custom block-code/message:
custom: msg1: code: 'custom message No1' block: true msg2: code: 'custom message No2' block: false
If player has permission "sbc.custom" he will receive message "custom message No2". But if he has not permission "sbc.custom" he will receive message "custom message No2". Same for permissions "sbc.custom.msg1" and "sbc.custom.msg2". If player has permission "sbc.custom.msg1" he will not receive "custom message No1". If player has permission "sbc.custom.msg2" he will receive "custom message No2".
Comments