Adds /rtp command to your Cuberite server. Teleports players to a random location within a configurable radius.
- Configurable radius (default 7000 blocks)
- Minimum radius (avoids spawn)
- Height check (finds solid ground)
- 30-second cooldown
- Lightweight Lua plugin
/rtp— teleports you to a random location
rtp.use— allows using/rtp(granted to all by default)
- Download the
RandomTeleportfolder - Place it in your
Plugins/directory - Restart the server
Edit main.lua and adjust these values:
local RADIUS = 7000 -- Maximum radius
local MIN_RADIUS = 70 -- Minimum radius
local SPAWN_X = 8000 -- Spawn center X
local SPAWN_Z = 6000 -- Spawn center Z
local MIN_Y = 60 -- Minimum height
local MAX_Y = 100 -- Maximum height
local COOLDOWN = 30 -- Cooldown in seconds