Skip to content

Commit a14323f

Browse files
committed
update
1 parent ebc6898 commit a14323f

2 files changed

Lines changed: 25 additions & 5 deletions

File tree

docs/epicachievements/configuration/03-tasks/index.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ You can find them in the table below:
3434
| `PICKUP` | Pickup an item | `items` | 1.8 |
3535
| `PLACE` | Place a block | `blocks` `crop_age` | 1.8 |
3636
| `PLAYTIME` | Play for a certain amount of time (in **seconds**) | | 1.8 |
37+
| `RAID` | Win a raid | | 1.14 |
3738
| `SHEAR` | Shear an entity | `entities` `is_hostile` | 1.8 |
3839
| `SHOOT` | Shoot a projectile with a bow/crossbow | | 1.8 |
3940
| `SLEEP` | Enter a bed | | 1.14 | |

docs/epicachievements/configuration/05-rewards.mdx

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,18 +109,37 @@ You can use the `{player}` and `{uuid}` placeholders in all rewards.
109109
| [Vault](https://www.spigotmc.org/resources/34315/) | `vault` | Give money to a player | `amount` |
110110
| [PlayerPoints](https://www.spigotmc.org/resources/80745/) | `player_points` | Give points to a player | `amount` |
111111

112-
## Customizing reward descriptions
112+
---
113113

114-
Reward descriptions displayed in menus can be customized to override the default description defined in `rewards.yml`:
115-
```yaml showLineNumbers
114+
## Optional Fields
115+
116+
### `description`
117+
Used to customize the reward description, overriding the default one defined in `rewards.yml`. <br/>
118+
The `{amount}` placeholder is available.
119+
120+
```yaml
121+
description: "&8+ &7{amount} &eCoins"
122+
```
123+
124+
### `permission`
125+
A permission required to claim the reward. Players without this permission won't see the reward in the list. <br/>
126+
**Default:** `None`
127+
```yaml
128+
permission: "group.vip"
129+
```
130+
131+
## Example Configuration
132+
133+
```yaml
116134
rewards:
117135
- type: points
118136
amount: 10
119-
# Override the default description
120-
# The {amount} placeholder is available
121137
description: "&8+ &7A nice gift!"
138+
permission: "group.vip"
122139
```
123140

141+
---
142+
124143
## The reward leveling system
125144

126145
Using the points earned by completing achievements, players can unlock rewards. <br/>

0 commit comments

Comments
 (0)