Updated Setting up the config file (markdown)

garbagemule 2016-12-29 18:32:02 +01:00
parent 4c3aed1ddb
commit adae4da017

@ -59,7 +59,7 @@ I recommended leaving the update notifications on, and disabling commands like `
## classes
The `classes`-section is slightly more complicated. It is divided into _class-branches_, where each branch denotes the _name of the class_, and each branch has mandatory nodes `items` and `armor`, as well as optional nodes `price`, `permissions`, `lobby-permissions`, `unbreakable-weapons`, and `unbreakable-armor`.
The `classes`-section is slightly more complicated. It is divided into _class-branches_, where each branch denotes the _name of the class_, and each branch has mandatory nodes `items` and `armor`, as well as optional slot-specific armor nodes and optional nodes `price`, `permissions`, `lobby-permissions`, `unbreakable-weapons`, and `unbreakable-armor`.
**Note:** YAML is picky about how you type your items. Make sure you read the short [[Item Syntax]]-page and fully understand it before you attempt to modify the config file!
@ -73,6 +73,7 @@ The `classes`-section is slightly more complicated. It is divided into _class-br
Tank:
items: iron_sword
armor: 310,311,312,313
offhand: shield
Knight:
items: '276'
armor: iron_helmet, iron_chestplate, iron_leggings, iron_boots
@ -84,6 +85,10 @@ The `classes`-section is slightly more complicated. It is divided into _class-br
armor: 302,303,304,305
price: $5
### Slot-specific armor nodes
If you want to use off-hand items, or if you just want to be explicit about which items go where in the armor slots, use the optional slot-specific armor nodes: `offhand`, `helmet`, `chestplate`, `leggings`, `boots`. In the example above, the **Tank** class gets a shield in its off-hand slot.
### Price
The optional `price` node can be used to give classes a per-session price. When a player tries to pick a class that has a price, they will only be able to if they can afford it. The money is withdrawn when the arena starts, i.e. picking different priced classes in succession will not (necessarily) result in empty player wallets. In the example above, the **Crusader** class costs `$5`.
@ -143,7 +148,8 @@ To give a class a horse mount, give it a hay block in the items-list (or place a
| **Donkey** | 2 | 10 | 18 | 26 |
| **Mule** | 3 | 11 | 19 | 27 |
| **Skeleton** | 4 | 12 | 20 | 28 |
| **Undead** | 5 | 13 | 21 | 29 |
| **Zombie** | 5 | 13 | 21 | 29 |
| **Llama** | 6 | 14 | 22 | 30 |
In the example above, every player that picks the **Crusader** class will have a white horse with gold barding upon arena start. The mounts are invincible.
<pre>