Jake's RTP
作者:JakeTS
发布时间:2020年6月14日
原生版本:未知
测试支持:1.12,1.13,1.14,1.15,1.16,1.17,1.18
它随机地传送你!(支持多种设置、多个世界和配置)
点此下载插件详细介绍
Jake's Random Teleporter (J-RTP) 插件允许玩家通过 /rtp 或 /wild 命令传送到随机位置,也可设置在玩家首次加入服务器时自动传送。该插件提供了丰富的配置选项,可以自定义随机位置的选择方式。
🎉 Jake's Random Teleporter [J-RTP]
⚙️ 配置概览
以下是你可以配置的一些主要选项(每个配置可单独设置,可以同时存在多个配置):
- 传送到的世界(支持多个世界的配置)
- 玩家是否可以使用
/rtp命令,或者仅供服务器或管理员使用 - 配置的优先级(相对于其他配置)
- 随机点的形状:
- 正方形
- 圆形
- 矩形
- 形状中的空隙(以圆形和正方形的最小半径表示,避免传送到该区域)
- 随机传送的中心点:
- 世界出生点
- 玩家当前位置
- 指定的 X 和 Z 坐标
- 位置选择的分布方式:均匀分布或高斯分布
- 如果启用高斯分布,可以使用以下设置:
- Shrink:与分布的标准差成反比(值越大密度越高)
- Center:0 到 1 之间的数字,0 表示中心在最小距离,0.5 表示在最小和最大距离之间,1 表示在最大距离
- 如果启用高斯分布,可以使用以下设置:
- 玩家传送后执行的命令列表
- 玩家调用
/rtp命令后必须等待的秒数 - 玩家再次使用
/rtp命令之前必须等待的秒数 - 新玩家首次加入时是否随机传送 *
- 新玩家死亡后是否随机传送 *
- 传送的花费(如果启用了经济系统)
- 玩家可以传送到的最高和最低 Y 值
- 检查安全位置的一些设置(通常不需要修改)
* 静态设置(不针对每个配置,通常一次只适用于一个配置)
你可以复制粘贴配置文件,更改名称即可创建多个配置。
🛡️ Claim 插件支持
该插件内置支持多种领地保护插件,可以避免玩家被传送到受保护的领地内,支持的插件包括:
- World Guard (必须设置 world guard flag 以阻止传送)
- Grief Prevention
- Husk Towns
- Lands
计划添加更多支持!
所有发送给玩家的消息都可以在 language-settings.yaml 文件中手动配置。
📝 默认设置示例 (v1.13)
这是一个旧版本的配置示例。新配置已拆分为多个文件,但包含所有这些设置。
random-teleport-settings default: # The name of this config section is 'default', each section must have a unique name
# Should we load this config? If false, this config will not be usable anywhere.
# For finer control, enable or disable command-enabled and require-explicit-permission.
enabled: true
# Can a player use this config with `/rtp`?
# Set to false if you plan on having this config exclusively for rtp-on-first-join or rtp-on-death.
command-enabled: true
# The player will only be able to use this config if they have the permission:
# 'jakesrtp.use.[name]' where the default config would be 'jakesrtp.use.default'.
# This setting is most useful when there are overlapping configurations.
# Note: If used along side `rtp-on-death.require-permission` then the player will need both permissions.
require-explicit-permission: false
# The priority of the config. Higher priority are preferred over lower ones.
# Only useful if there are overlapping configurations (multiple configs that include the same worlds).
priority: 1
# Which worlds will this configuration apply to?
# The nether is not currently supported. The end works, but is inefficient and requires a higher max-attempt value.
enabled-worlds:
- world
- yer # You can remove this one, it's here as an example
force-destination-world: # Forces the world that the RTP will land you in. If this is true, then 'enabled worlds' no
enabled: false # longer represents worlds that you can RTP IN, but worlds you can RTP FROM, always
destination: world # landing you in the world specified by 'destination'.
shape:
allowed-values:
a: "Square (radius & center)"
b: "Circle (radius & center)"
value: a
defining-points:
radius-center:
radius:
max: 2000
min: 1000
center:
allowed-values:
a: "World spawn"
b: "Player's current location"
c: "The x and z as set in config"
value: a
x: 0
z: 0
gaussian-distribution: # Enabling this will make the points no longer evenly distributed, but instead follow a
enabled: false # gaussian centered between the min and max radius (represented by setting center to
shrink: 4 # 0 for min, 1 for max, or anything in between). Shrink makes the distribution denser,
center: 0.25 # my preference is to keep it near 3 for a center of 0 or 1, and 6 for a center of 0.5
location-checking-profile: # Which method should we use to find a safe location? Since this plugin is meant to work
allowed-values: # 'out-of-the-box' without need of configuring, the 'auto' option has been included.
a: "Auto" # Auto chooses middle-out for the nether and top-down for everything else.
b: "Top down" # Starts the search at the high bound and moves down until it finds the ground.
c: "Middle out" # Starts the search between high and low and moves up and down to find land.
value: a # Top-down will never spawn you in a cave. Middle-out is intended for underground teleports.
cooldown: # Cooldown between uses. Can be bypassed with permission node jakesrtp.nocooldown
seconds: 30 # Default: 30
then-execute: [] # Executes commands as console after a player is rtp'd. Note: remove the `[]` before adding commands.
# - 'tellraw %PLAYER% {"text":"You have been teleported to %LOCATION% in %WORLD%!"}'
# - 'tellraw %PLAYER% {"text":"All placeholders are listed at the bottom of this file."}'
############## # Everything past this point in the config probably does not need to get changed
bounds: # The lowest and highest points a player can be RTP'd to.
low: 32 # Default: 32
high: 255 # Default: 255 | SET THIS TO 127 FOR NETHER WORLDS IF location-checking-profile IS NOT ON AUTO
check-radius: # How many blocks away from the initial spot to check.
x-z: 2 # Default: 2 | Max spots to check per attempt is equal to:
vert: 2 # Default: 2 | (2*vert+1)*(2*(x-z)+1)^2
max-attempts: # If the random location, and all (by default 125) close spots are found to be unsafe,
value: 10 # how many attempts can we make? Minimum: 1; Default: 10
preparations: # Preparing spots to teleport to. Note: These will be ignored if the center is players location.
cache-locations: 10 # The number of safe rtp spots to hold on to. For best performance, keep this larger than 2.
注意:如果你的配置版本高于此处列出的版本,你可以访问项目的 GitHub 页面 或点击 配置文件直链 获取最新的配置信息。请注意,此直链始终指向最新的配置,无论它是否来自开发版本。
🎮 命令
/rtp和/wild:使玩家随机传送。/forcertp [playerName]:随机传送指定玩家(需要权限)。/rtp-admin reload:从文件重新加载配置(需要权限)。
🔑 权限
jakesrtp.use:- 描述: 允许使用基础的 "/rtp" 命令。
- 默认: true
jakesrtp.usebyname:- 描述: 允许玩家在使用rtp命令时指定配置名称,如: "/rtp <settingsName>"。
- 默认: false
jakesrtp.rtpondeath- 描述: 如果启用了 rtp-on-death,拥有此权限的玩家将在死亡后重生在随机位置。
- 默认: false
jakesrtp.noCooldown:- 描述: 允许用户忽略冷却时间。
- 默认: op
jakesrtp.others:- 描述: 允许对其他玩家使用 "/rtp"。
- 默认: op
jakesrtp.admin- 描述: 允许使用 "/rtp-admin" 命令。
- 默认: op
命令 & 权限 脚注: 虽然我会经常更新此 Spigot 页面,但此项目的 GitHub 页面将始终包含最新的信息(尽管有时这些信息与开发版本相关)。如需获取最新、最全的命令和权限列表,请查看 plugin.yml 文件的直接链接。
❓ 帮助 / Bug / 讨论 & 更多
遇到任何问题?首先,在 #rtp-support 中寻求帮助,或者如果你确定找到了 Bug,可以直接在 #rtp-bugs 中发布。如果你有任何建议或反馈,随时可以加入 Discord。
Enjoy!