MuteBefehl Wiki

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

RTP:
  Permission: "muteessentials.rtp"
  World: "world"
  MinRadius: 500
  MaxRadius: 5000
  CenterX: 0
  CenterZ: 0
  Cooldown: 120
  MaxTries: 5
  RetryDelayTicks: 5
KeyDescription
WorldTarget world
MinRadius / MaxRadiusAnnulus around (CenterX, CenterZ)
CooldownPer-player cooldown in seconds. Applies to operators too.
MaxTriesHow many candidate locations are scanned per /rtp.
RetryDelayTicksTick delay between candidate scans. Keeps the main thread responsive.

See Random Teleport config.

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

NodeGrants
muteessentials.rtpUse /rtp
muteessentials.rtp.ignoreCooldownSkip the per-player cooldown

On this page