Описание
# Fast RTP
A fast random teleport command that doesn't cause lagspikes.
### Commands
- `/rtp` - Teleports the player to a random location.
- `/rtpback` - Teleports the player back to their last random teleport location.
- `/rtp ` - Teleports the specified player to a random location. Requires permissions.
- `/rtp reload` - Reloads the configuration.
### Permissions
- `fast-rtp.command.root` - Allows the player to use the `/rtp` command when `requirePermission` is set to `true`
- `fast-rtp.command.advanced` - Allows you to rtp other players, specify dimension, radius, etc.
- `fast-rtp.command.reload` - Reloads the configuration.
- `fast-rtp.bypass.cooldown` - Allows the player to bypass the RTP cooldown.
### Configuration
The configuration file can be found in `/config/fast-rtp.json`
```json5
{
// Whether using /rtp requires the player to have the permission "fast-rtp.command.root"
"requirePermission": false,
// Whether /rtp should use the current world of the player.
// If false, the default world will be used if the dimension is not specified in the command.
"useCurrentWorld": false,
// Adds strict targeting / movement checks to prevent players from using the command to escape dangerous situations.
"useStrictTeleportCheck": false,
// The default dimension to use for /rtp.
"defaultDimension": "minecraft:overworld",
// The maximum radius from the world center to search for a safe location.
// If set to -1, the radius will go as far as the worldborder.
"radius": -1,
// The minimum radius from the world center to search for a safe location.
"minRadius": 0,
// The radius of blocks to check for dangerous surrounding blocks. This doesn't go higher than 4.
"safetyCheckRadius": 1,
// Cooldown in seconds applied after using /rtp.
"cooldown": 30,
// Specific biome identifiers that can be skipped by the location finder.
// These can also be used to skip expensive chunk loads, significantly speeding up location finding.
"blackListedBiomes": [
"minecraft:small_end_islands",
"minecraft:the_end",
"minecraft:the_void"
],
// Biome tags that can be skipped by the location finder.
"blackListedBiomeTags": [
"minecraft:is_beach",
"minecraft:is_ocean",
"minecraft:is_deep_ocean",
"minecraft:is_river"
],
// Command messages. Text formatting is done using https://placeholders.pb4.eu/user/text-format/.
"messages": {
"rtpStartSearch": "Searching for a safe location...",
"rtpLocFound": "Found a safe location in ${seconds} seconds",
"rtpTeleportPlayer": "Teleported to ${x} ${y} ${z} in ${world}",
"rtpLocNotFound": "[✖] Could not find a safe location!",
"rtpOnCooldown": "[✖] Please wait ${seconds} seconds before using the RTP again!",
"preventedRtp": "[✖] Could not start random teleport.\nReason: ${reason}",
"rtpBackSuccess": "Teleported back to your last random teleport!",
"rtpBackLocNotFound": "[✖] You don't have any recent random teleports.",
"preventedRtpBack": "[✖] Unable to teleport back to your last RTP location.\nReason: ${reason}",
"tpSecondsLeft": "Teleporting in ${seconds} seconds...",
"tpCancelled": "[✖] Teleportation was cancelled."
}
}
```