Skip to content

Commit

Permalink
feat: added pointsTimeframe to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
confuser committed Sep 8, 2024
1 parent 34a06f4 commit c4a87a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: echo 'NODE_OPTIONS="--openssl-legacy-provider"' >> $GITHUB_ENV
- name: Cache Node.js modules
uses: actions/cache@v3
with:
Expand Down
5 changes: 5 additions & 0 deletions pages/docs/banmanager/configuration/config-yml.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ The main configuration file for BanManager.
- ###### `<number of points>`
- ###### `cmd` - The command to execute upon reaching the number of points, the following tokens are available: `[player]`, `[playerId]`, `[actor]`, `[reason]`, `[id]`, `[points]`.
- ###### `delay` - Optional, specify a delay in seconds of when to run the command, defaults to `0` and executes immediately.
- ###### `pointsTimeframe` - Optional, specify a [timeframe](/docs/banmanager/commands#time-format) to only trigger the command if the total accumulated points was reached within the past timeframe. For example, setting this to `30d` means the total number of points accumulated in the past 30 days must equal `<number of points>` in order for this command to trigger.

**Example**

Expand All @@ -150,6 +151,10 @@ The main configuration file for BanManager.
- cmd: ban [player] [reason]
delay: 10
- cmd: mute [player] [reason]
'6':
- cmd: ban [player] [reason]
delay: 5
pointsTimeframe: 30d
```
---

Expand Down

0 comments on commit c4a87a8

Please sign in to comment.