Templates and tokens
A template is a copy of a config with {{tokens}} where the brand goes. It sits in templates/ at the same path as the real file, and is written over the real file on every apply:
templates/plugins/TAB/config.yml -> plugins/TAB/config.yml| Token | Gives |
|---|---|
{{server.name}} | any brand key |
{{c.primary}} | a color: #RRGGBB |
{{c.primary|mm}} | <#RRGGBB> |
{{c.primary|amp}} | &#RRGGBB |
{{c.primary|legacy}} | &x&R&R&G&G&B&B |
{{grad:primary:accent}} | a MiniMessage gradient |
{{server.name|upper}} | also lower and smallcaps |
{{#if features.store}} ... {{/if}} | keep the lines when the switch is on |
{{#unless features.store}} ... {{/unless}} | keep the lines when it is off |
motd: "{{grad:primary:accent}}<b>{{server.name|upper}}</b></gradient>"
discord: "{{c.muted|mm}}Join us: {{server.discord}}"
{{#if features.store}}
store: "&7Store: {{c.accent|amp}}{{server.store}}"
{{/if}}