Random Teleport
Safe random teleport with claim and unsafe-block avoidance.
/rtp sends a player to a random spot within a configurable radius. The plugin scans for a safe Y position, skips claimed land and retries up to MaxTries times before giving up.
Configuration
| Key | Description |
|---|---|
World | Target world |
MinRadius / MaxRadius | Annulus around (CenterX, CenterZ) |
Cooldown | Per-player cooldown in seconds. Applies to operators too. |
MaxTries | How many candidate locations are scanned per /rtp. |
RetryDelayTicks | Tick delay between candidate scans. Keeps the main thread responsive. |
Why it's tuned this way
The retry loop schedules each scan with runTaskLater instead of recursing immediately, and reuses the already-loaded async chunk for safety checks. Combined with a low MaxTries, this keeps /rtp from triggering excessive distant chunk loads. Servers on hosts with strict thread or chunk-load limits ran into crashes before this rewrite.
Commands
Permissions
| Node | Grants |
|---|---|
muteessentials.rtp | Use /rtp |
muteessentials.rtp.ignoreCooldown | Skip the per-player cooldown |