Streaks Module
Streak Mechanicsβ
- Each playerβs streak count increments by 1 upon each kill.
- When a player dies, if their streak β₯
minimum-streak-death-to-be-notified, a notification is broadcast to other players. - If
reset-streak-on-log-outis true, the streak resets to zero when the player logs out; if false, the streak persists across sessions. streaks-rewardsmappings trigger when a player reaches exactly the specified kill count, executing configured broadcast and actions.
Featuresβ
- Broadcast notifications at configurable streak thresholds
- Optional streak reset on player logout
- Define rewards (broadcast and actions) per streak count
Configuration Referenceβ
| Key | Type | Default | Description |
|---|---|---|---|
| enabled | boolean | true | Enable or disable the streaks module |
| minimum-streak-death-to-be-notified | number | 5 | Minimum streak count at death to trigger a notification |
| reset-streak-on-log-out | boolean | true | Reset streak count when a player logs out |
| streaks-rewards | object | Map of streak counts to reward definitions (broadcast, actions[]) |
Exampleβ
settings.yml
streaks:
enabled: true
minimum-streak-death-to-be-notified: 5
reset-streak-on-log-out: true
streaks-rewards:
2:
broadcast: true
actions:
- "chat: %player_name% is on a 2-kill streak!"
5:
broadcast: true
actions:
- "chat: %player_name% is on a 5-kill streak!"