|
| 1 | +# SimpleSkills - Configuration Guide |
| 2 | + |
| 3 | +This document provides detailed information about all configuration options available in SimpleSkills. |
| 4 | + |
| 5 | +## Table of Contents |
| 6 | + |
| 7 | +- [config.yml](#configyml) |
| 8 | + - [General Settings](#general-settings) |
| 9 | + - [Alert Settings](#alert-settings) |
| 10 | + - [Skill Activation](#skill-activation) |
| 11 | +- [message.yml](#messageyml) |
| 12 | + |
| 13 | +--- |
| 14 | + |
| 15 | +## config.yml |
| 16 | + |
| 17 | +The `config.yml` file is located in `plugins/SimpleSkills/config.yml` on your server. |
| 18 | + |
| 19 | +### General Settings |
| 20 | + |
| 21 | +#### `config-version` |
| 22 | + |
| 23 | +**Type:** String |
| 24 | +**Default:** `0.1` |
| 25 | +**Description:** Internal version identifier for the config file. Do not modify this manually. If this does not match the expected version, you will see an error in the server console prompting you to update your config. |
| 26 | + |
| 27 | +--- |
| 28 | + |
| 29 | +#### `debugMode` |
| 30 | + |
| 31 | +**Type:** Boolean |
| 32 | +**Default:** `false` |
| 33 | +**Description:** When `true`, enables additional debug logging to help diagnose issues. |
| 34 | + |
| 35 | +--- |
| 36 | + |
| 37 | +#### `defaultMaxLevel` |
| 38 | + |
| 39 | +**Type:** Integer |
| 40 | +**Default:** `100` |
| 41 | +**Description:** The maximum level a skill can reach. |
| 42 | +**Range:** Any positive integer |
| 43 | + |
| 44 | +--- |
| 45 | + |
| 46 | +#### `defaultBaseExperienceRequirement` |
| 47 | + |
| 48 | +**Type:** Integer |
| 49 | +**Default:** `10` |
| 50 | +**Description:** The amount of experience required to reach level 2. Each subsequent level requires more experience based on the `defaultExperienceIncreaseFactor`. |
| 51 | +**Range:** Any positive integer |
| 52 | + |
| 53 | +--- |
| 54 | + |
| 55 | +#### `defaultExperienceIncreaseFactor` |
| 56 | + |
| 57 | +**Type:** Float |
| 58 | +**Default:** `1.2` |
| 59 | +**Description:** The multiplier applied to the experience requirement at each level. For example, with a base requirement of 10 and a factor of 1.2, level 2 requires 10 XP, level 3 requires 12 XP, level 4 requires ~14.4 XP, and so on. |
| 60 | +**Range:** Any value greater than 1.0 |
| 61 | + |
| 62 | +--- |
| 63 | + |
| 64 | +### Alert Settings |
| 65 | + |
| 66 | +#### `levelUpAlert` |
| 67 | + |
| 68 | +**Type:** Boolean |
| 69 | +**Default:** `true` |
| 70 | +**Description:** When `true`, players receive a chat message when they level up a skill. |
| 71 | + |
| 72 | +--- |
| 73 | + |
| 74 | +#### `benefitAlert` |
| 75 | + |
| 76 | +**Type:** Boolean |
| 77 | +**Default:** `true` |
| 78 | +**Description:** When `true`, players receive a chat message when a skill benefit triggers. |
| 79 | + |
| 80 | +--- |
| 81 | + |
| 82 | +### Skill Activation |
| 83 | + |
| 84 | +Each skill can be individually activated or deactivated. Skills that are deactivated will not grant experience and will not trigger their benefits. |
| 85 | + |
| 86 | +Skill activation states are stored under the `skills` key in `config.yml`: |
| 87 | + |
| 88 | +```yaml |
| 89 | +skills: |
| 90 | + Mining: |
| 91 | + active: true |
| 92 | + Farming: |
| 93 | + active: false |
| 94 | +``` |
| 95 | +
|
| 96 | +**Available skills and their config keys:** |
| 97 | +
|
| 98 | +| Skill | Config Key | |
| 99 | +|---|---| |
| 100 | +| Athlete | `skills.Athlete.active` | |
| 101 | +| Boating | `skills.Boating.active` | |
| 102 | +| Breeding | `skills.Breeding.active` | |
| 103 | +| Cardio | `skills.Cardio.active` | |
| 104 | +| Crafting | `skills.Crafting.active` | |
| 105 | +| Digging | `skills.Digging.active` | |
| 106 | +| Dueling | `skills.Dueling.active` | |
| 107 | +| Enchanting | `skills.Enchanting.active` | |
| 108 | +| Farming | `skills.Farming.active` | |
| 109 | +| Fishing | `skills.Fishing.active` | |
| 110 | +| Floriculture | `skills.Floriculture.active` | |
| 111 | +| Gliding | `skills.Gliding.active` | |
| 112 | +| Hardiness | `skills.Hardiness.active` | |
| 113 | +| Mining | `skills.Mining.active` | |
| 114 | +| Monster Hunting | `skills.Monster Hunting.active` | |
| 115 | +| Pyromaniac | `skills.Pyromaniac.active` | |
| 116 | +| Quarrying | `skills.Quarrying.active` | |
| 117 | +| Riding | `skills.Riding.active` | |
| 118 | +| Strength | `skills.Strength.active` | |
| 119 | +| Woodcutting | `skills.Lumberjack.active` | |
| 120 | + |
| 121 | +> **Note:** Skill names with spaces (e.g., Monster Hunting) must be quoted as YAML keys, but the config path used by the plugin does **not** include quotes: |
| 122 | +> ```yaml |
| 123 | +> skills: |
| 124 | +> "Monster Hunting": |
| 125 | +> active: false |
| 126 | +> ``` |
| 127 | + |
| 128 | +> **Note:** The Woodcutting skill uses `Lumberjack` as its internal config key. Use `Lumberjack` when referencing it in `config.yml`. The `/ss force activate` and `/ss force deactivate` commands currently only accept single-word skill keys (e.g., `Lumberjack`, `Mining`) and cannot target skills whose names contain spaces such as `Monster Hunting`; toggle those via `config.yml` instead. |
| 129 | + |
| 130 | +Skills can also be toggled at runtime using the admin commands `/ss force activate <skillName>` and `/ss force deactivate <skillName>` without restarting the server. |
| 131 | + |
| 132 | +--- |
| 133 | + |
| 134 | +## message.yml |
| 135 | + |
| 136 | +The `message.yml` file is located in `plugins/SimpleSkills/message.yml` on your server. It controls all user-facing messages displayed by the plugin. |
| 137 | + |
| 138 | +### `message-version` |
| 139 | + |
| 140 | +**Type:** String |
| 141 | +**Default:** `0.2` |
| 142 | +**Description:** Internal version identifier for the message file. Do not modify this manually. |
| 143 | + |
| 144 | +--- |
| 145 | + |
| 146 | +### Message Keys |
| 147 | + |
| 148 | +All message strings support Minecraft color codes using the `&` prefix (e.g., `&a` for green, `&b` for aqua, `&c` for red). |
| 149 | + |
| 150 | +The following placeholders are available in specific messages: |
| 151 | + |
| 152 | +| Placeholder | Used In | Description | |
| 153 | +|---|---|---| |
| 154 | +| `%version%` | `Default-Command` | The plugin version | |
| 155 | +| `%author%` | `Default-Command` | The plugin author | |
| 156 | +| `%nos%` | `Stats` | Number of skills | |
| 157 | +| `%nopr%` | `Stats` | Number of player records | |
| 158 | +| `%uns%` | `Stats` | Number of unknown skills | |
| 159 | +| `%skill%` | `NoTop`, `Top-Header` | Skill name | |
| 160 | +| `%rank%` | `Top-Body` | Player rank position | |
| 161 | +| `%player%` | `Top-Body`, `SendInfo-Header` | Player name | |
| 162 | +| `%top%` | `Top-Body` | Top player's level | |
| 163 | +| `%skill%` | `SendInfo-Body` | Skill name | |
| 164 | +| `%level%` | `SendInfo-Body`, `LevelUp` | Current skill level | |
| 165 | +| `%min%` | `SendInfo-Body` | Current experience | |
| 166 | +| `%max%` | `SendInfo-Body` | Experience required for next level | |
| 167 | +| `%skillname%` | `Skill-Info` | Skill name | |
| 168 | +| `%active%` | `Skill-Info` | Whether the skill is active | |
| 169 | +| `%mlevel%` | `Skill-Info` | Max level of the skill | |
| 170 | +| `%ber%` | `Skill-Info` | Base experience requirement | |
| 171 | +| `%eif%` | `Skill-Info` | Experience increase factor | |
0 commit comments