Skip to content

Commit 1cc70d8

Browse files
authored
Merge pull request #89 from ez-plugins/79-add-on-move-teleport-cancelation
docs: updated docs
2 parents 6139a95 + c6c1644 commit 1cc70d8

3 files changed

Lines changed: 15 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ Release tags use the `v` prefix (e.g. `v3.0.2`).
1212

1313
### Added
1414

15+
- **Movement-cancel during countdown**: if a player moves too far from their starting position while a countdown is running, the teleport is cancelled.
16+
- `countdown.cancel-on-move` (default `true`) — enable or disable the feature.
17+
- `countdown.cancel-distance` (default `2.0`) — distance in blocks that triggers cancellation.
18+
- `countdown.warn-distance` (default `1.0`) — distance in blocks that sends a one-time warning before cancellation. Set to `0` to disable the warning.
19+
- Two new message keys: `countdown-move-warn` and `countdown-move-cancel` (configurable in `messages/en.yml`).
20+
1521
### Changed
1622

1723
### Fixed

docs/config/rtp.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,15 @@ and per-group cost overrides go in `limits.yml`.
6161

6262
## Countdown
6363

64-
A countdown timer that shows before the teleport happens. Players who move or
65-
take damage during the countdown can have their teleport cancelled (configure
66-
that in `limits.yml`).
64+
A countdown timer that shows before the teleport happens. Players who move too
65+
far during the countdown will have their teleport cancelled.
6766

6867
| Key | Default | Description |
6968
| :--- | :--- | :--- |
7069
| `countdown-seconds` | `5` | How many seconds to count down. `0` disables the countdown entirely. |
70+
| `countdown.cancel-on-move` | `true` | Cancel the teleport if the player moves beyond `cancel-distance` during the countdown. |
71+
| `countdown.cancel-distance` | `2.0` | Distance in blocks from the starting position that triggers cancellation. |
72+
| `countdown.warn-distance` | `1.0` | Distance in blocks that sends a one-time warning before cancellation. Set to `0` to disable the warning. |
7173
| `countdown.bossbar.enabled` | `true` | Shows a bossbar with the countdown. |
7274
| `countdown.bossbar.title` | *(see below)* | MiniMessage text shown in the bossbar. `<seconds>` is replaced with the remaining time. |
7375
| `countdown.particles.enabled` | `true` | Plays a particle effect around the player during countdown. |
@@ -76,6 +78,9 @@ that in `limits.yml`).
7678
```yml
7779
countdown-seconds: 5
7880
countdown:
81+
cancel-on-move: true
82+
cancel-distance: 2.0
83+
warn-distance: 1.0
7984
bossbar:
8085
enabled: true
8186
title: "<yellow>Teleporting in <white><seconds></white> seconds...</yellow>"

docs/messages-localization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Default language file:
2020

2121
- Teleport lifecycle (`teleporting`, `teleport-success`, `teleport-failed`, fallback variants)
2222
- Queue (`queue-queued`, `queue-full`)
23-
- Countdown (`countdown-start`, `countdown-tick`)
23+
- Countdown (`countdown-start`, `countdown-tick`, `countdown-move-warn`, `countdown-move-cancel`)
2424
- Limits/cooldown (`cooldown`, `limit-daily`, `limit-weekly`)
2525
- GUI (`gui-cache-filter-info`, `gui-no-destinations`, `gui-cooldown`)
2626
- Network (`network-service-unavailable`, `network-server-offline`)

0 commit comments

Comments
 (0)