
生存服务器的随机传送与 RTP 区域,无卡顿
DonutRTP 是一款免费、开源的随机传送插件,支持 Paper、Folia、Purpur、Spigot 和 Bukkit,适用于 Minecraft 1.20.1 至 26.3。
/rtp 会打开一个小菜单:选择主世界、下界、末地或你添加的任何世界,原地站立几秒钟,然后安全地传送到野外某处。RTP 区域在出生点无需指令即可生效。玩家走上垫子,倒计时结束时站在上面的人将一起传送。
2.0 "The Zone Update" 是一次全面重写:
- 在游戏内创建的区域组;
- 任意数量的目的地;
- 异步区块加载,提前找到落点;
- 领地与区域避让及落地保护;
- 保存的冷却时间,支持等级阶梯、Vault 费用、PlaceholderAPI 以及开发者 API。
每次发布都在所有支持的 Paper 和 Folia 版本上使用真实客户端进行测试。




- 每个目的地一个物品,数量不限,可放置在 1 到 6 行的菜单中的任何槽位。
- 每个物品显示你的冷却时间(“4 分 12 秒后可用”)、费用,或在权限不足时显示锁定图标。菜单打开期间每秒更新一次。
/rtp nether 跳过菜单。Tab 补全仅列出你可用的目的地。
- 图标可以是任何物品、HeadDatabase 头颅(
hdb-1234),或是来自纹理、UUID 或名称的玩家头颅。


- 选择一个目的地。预热倒计时会在动作栏、标题或两者上显示。
- 离开方块或受到伤害会取消传送。原地跳跃绝不会取消。
- 你将落在实心地面、开阔空气且远离领地的地方。你将获得5 秒无坠落伤害和3 秒完全无敌。
- 声音和粒子效果标记落地。控制台命令也可运行,用于设置套装或新手任务。
OP 以及拥有 donutrtp.warmup.bypass 权限的玩家跳过预热。/rtp player <name> [destination] 允许工作人员向他人发送传送,无预热、无冷却、无费用。


- 区域组:垫子上所有人的倒计时同步。倒计时结束时,仍在区域内的人将一起传送,彼此相距几格。
- 最少玩家数:倒计时等待足够多的玩家,并显示还需要多少人。
- 单人区域:当你走入时,你自己的倒计时开始,就像 1.x 版本一样。
- 倒计时显示在Boss 栏、标题和动作栏上。每个区域的这些显示均可单独关闭。
- 按区域设置的冷却时间和权限。处于冷却中的玩家会被告知剩余时间,并在冷却结束后加入。
- 通过 PlaceholderAPI 实现全息图和记分板计时器:
%donutrtp_zone_spawn_countdown%、%donutrtp_zone_spawn_players%。

站在一个角输入 /rtpadmin pos1,站在另一个角输入 /rtpadmin pos2,然后输入 /rtpadmin zone create spawn overworld。就这么简单。使用 WorldGuard?/rtpadmin zone create spawn overworld region spawn_pad 将使用区域代替。所有设置都可通过 /rtpadmin zone set 在游戏中更改,无需重启服务器。


- 永远不会落入水、岩浆、火、岩浆块、粉末雪、蛛网、浆果丛或仙人掌中。
- 永远不会紧挨着岩浆,或位于会导致岩浆倾泻而下的位置下方。
- 永远不会进入树中、虚空里,或下界屋顶上方。
- 永远不会进入 WorldGuard 区域或 GriefPrevention 领地内部。
- 始终在世界边界内,并保留一定余量。
- 按目的地设置的生物群系规则。默认情况下,主世界禁止海洋和河流。


加载与其他一切无关的远端区块是任何随机传送中最耗时的部分。
- 在 Paper 和 Folia 上,DonutRTP 异步加载区块。等待玩家的区块优先加载,且每个已加载区块被完全使用后才加载下一个。
- 提前为每个目的地找到几个安全点,因此大多数传送在预热结束的瞬间启动。
- 在 Folia 上,每个方块、玩家和区块仅由其所属区域接触。
- 在 Spigot 上,每刻最多加载一个区块。
- 当搜索未找到任何结果时,控制台会说明原因:无安全地面、被禁止的生物群系、领地冲突或服务器繁忙。


随意添加任意数量的目的地:资源世界、面向老玩家的“远方之地”选项,或仅限 VIP 的世界。每个目的地都拥有其独立的:
- 世界及其方形或圆形形状;
- 中心(即世界出生点)、最小和最大距离以及高度限制;
- 生物群系允许与禁止列表;
- 权限、冷却时间、费用及菜单项。


- 冷却时间会被保存并在重启后保留。
- 可为每个目的地设置单独的冷却时间,或统一使用一个冷却时间。
- 为不同排名缩短冷却时间:通过
ranks: { vip: 120, mvp: 60 },拥有 donutrtp.cooldown.vip 权限的玩家等待两分钟,而拥有 donutrtp.cooldown.mvp 权限的玩家等待一分钟。取玩家拥有的最低值生效。
- 通过 Vault 处理费用,仅在玩家成功落地时扣除,若传送失败则退还。
- 支持绕过冷却时间、费用和准备时间的权限。


以下所有集成均为可选:
| 插件 |
DonutRTP 的功能 |
| WorldGuard |
区域保护;不会在区域内落地 |
| GriefPrevention |
绝不会在已声明的领地内落地 |
| Vault (或 VaultUnlocked) |
目的地费用 |
| PlaceholderAPI |
%donutrtp_cooldown%, %donutrtp_cooldown_<destination>%, %donutrtp_zone%, %donutrtp_zone_<name>_countdown%, %donutrtp_zone_<name>_players% |
| HeadDatabase |
菜单图标 |
对于开发者:
RtpPreTeleportEvent 可取消,并可更改玩家的落地位置。
RtpTeleportEvent 在落地后触发。
- 两者均会说明是哪个目的地以及是什么触发了传送:命令、菜单、管理员或区域。


替换 jar 文件并重启。DonutRTP 会在首次启动时自动升级您的 1.x 配置:
- 您的设置将保留:包括准备时间、冷却时间、世界、半径、最小高度、音效和菜单项。
- 您的区域将保留:WorldGuard 区域将变为以其区域名命名的区域,每个长方体区域将保留其名称和权限。
- 旧配置文件将保留为
config-1.x.yml 和 messages-1.x.yml。


| 服务器端 |
Minecraft |
Java |
| Paper、Purpur 及其他 Paper 分支 |
1.20.1 – 1.20.4 |
17 |
| Paper、Purpur 及其他 Paper 分支 |
1.20.5 – 1.21.11 |
21 |
| Paper、Purpur 及其他 Paper 分支 |
26.1 – 26.3 |
25 |
| Folia |
1.20.4 – 26.3 |
17 – 25 |
| Spigot、Bukkit |
1.20.1 – 26.3 |
取决于你的服务器 |
一个 JAR 包适用于所有上述服务器。每个版本都会在 Paper 1.20.1、1.20.4、1.20.6、1.21.1、1.21.4、1.21.8、1.21.11、26.1.2、26.2 和 26.3,以及 Folia 1.20.4、1.21.4、1.21.11 和 26.3 上启动 1.x 的安装环境。在每个环境中,机器人会运行多达 23 项检查:升级、菜单、预热取消、下界与末地、排名冷却时间、双人组队区域、Vault 与管理员命令,以及在 Paper 服务器上额外测试 WorldGuard 和 GriefPrevention。控制台必须保持无错误输出。

| 命令 |
权限 |
|
/rtp |
donutrtp.use(所有人) |
打开菜单 |
/rtp <目的地> |
donutrtp.use 以及该目的地的对应权限 |
立即传送 |
/rtp player <玩家> [目的地] |
donutrtp.admin |
将某人传送走(无等待时间、冷却或费用) |
/rtpadmin reload |
donutrtp.admin |
重新加载配置、消息和区域 |
| /rtpadmin info | donutrtp.admin | 平台、钩子、目的地、就绪点和区域 |
| /rtpadmin pos1, /rtpadmin pos2 | donutrtp.zone.admin | 区域的角落,即你站立的位置 |
| /rtpadmin zone create <name> <destination> [region <id>] | donutrtp.zone.admin | 创建一个区域 |
| /rtpadmin zone set <name> <key> <value> | donutrtp.zone.admin | 修改区域 |
| /rtpadmin zone delete\|info\|list | donutrtp.zone.admin | |
donutrtp.zone.use 允许玩家使用区域(所有人)。donutrtp.cooldown.bypass 和 donutrtp.cost.bypass 适用于管理员。donutrtp.warmup.bypass 默认不分配给任何人。/donutrtp 的功能等同于 /rtpadmin。

它会卡顿吗? 在 Paper 和 Folia 上,区块的加载在主线程之外进行,且准备位置会提前完成。生成新地形仍然需要消耗 CPU 资源,正如所有 RTP 插件一样。预生成你的世界可以让每次传送的成本变得极低。
可以添加自定义世界吗? 可以。在 config.yml 的 destinations: 下添加一个包含世界名称的目标,然后执行 /rtpadmin reload。
区域需要 WorldGuard 吗? 不需要。区域是你在游戏中选定的方框。WorldGuard 区域也可以使用。
我的 1.x 设置会损坏吗? 不会。它会在首次启动时自动升级,旧文件会被保留。
支持 Folia 吗? 是的,包括组区域在内的所有部分都支持。
提示“未找到安全点”? 控制台会说明原因。通常是因为该区域大部分是海洋,或者被领地(claims)覆盖。增大半径会有所帮助。







Discord: discord.gg/SAmd9fhNhr · 源代码:
GitHub (Apache 2.0) · 支持该项目:
nightbeam.dev/support

Random teleport and RTP zones for survival servers, without the lag
DonutRTP is a free, open-source random teleport plugin for Paper, Folia, Purpur, Spigot and Bukkit, from
Minecraft 1.20.1 to 26.3.
/rtp opens a small menu: pick the Overworld, the Nether, the End or any world you add, stand still for a few
seconds, and land somewhere safe in the wild. RTP zones at spawn do it without a command. Players walk onto the
pad, and everyone standing there when the countdown ends lands together.
2.0 "The Zone Update" is a full rewrite:
- group zones, made in game;
- any number of destinations;
- asynchronous chunk loading, with spots found ahead of time;
- claim and region avoidance and landing protection;
- saved cooldowns with rank tiers, Vault costs, PlaceholderAPI and a developer API.
Each release is tested on every supported Paper and Folia version with real clients.




- One item per destination, as many as you like, in any slot of a one to six row menu.
- Each item shows your cooldown ("Available in 4m 12s"), the cost, or a lock when you lack the
permission. It updates every second while the menu is open.
/rtp nether skips the menu. Tab completion lists only the destinations you may use.
- Icons can be any item, a HeadDatabase head (
hdb-1234), or a player head from a texture, a UUID or a name.


- Pick a destination. The warmup counts down on the action bar, a title, or both.
- Walking off your block or taking damage cancels it. Jumping in place never does.
- You land on solid ground, in open air, away from claims. You take no fall damage for five seconds and no
damage at all for three.
- A sound and particles mark the landing. Console commands can run too, for kits or starter quests.
Ops and anyone with donutrtp.warmup.bypass skip the warmup. /rtp player <name> [destination] lets staff send
someone with no warmup, cooldown or cost.


- Group zones: one countdown for everyone on the pad. When it ends, everyone still inside lands together, a few
blocks apart.
- Minimum players: the countdown waits for enough players and says how many more it needs.
- Solo zones: your own countdown starts when you walk in, like 1.x.
- The countdown shows on the boss bar, title and action bar. Each can be turned off per zone.
- Per-zone cooldown and permission. Players on cooldown are told how long is left, and join when it runs out.
- Hologram and scoreboard timers through PlaceholderAPI:
%donutrtp_zone_spawn_countdown%,
%donutrtp_zone_spawn_players%.

Stand on one corner and type /rtpadmin pos1, stand on the other and type /rtpadmin pos2, then
/rtpadmin zone create spawn overworld. That's it. Using WorldGuard? /rtpadmin zone create spawn overworld region spawn_pad uses a region instead. Every setting changes in game with /rtpadmin zone set, without a restart.


- Never into water, lava, fire, magma, powder snow, cobwebs, berry bushes or cactus.
- Never beside lava, or under lava that would pour down.
- Never into a tree, the void, or on top of the Nether roof.
- Never inside a WorldGuard region or a GriefPrevention claim.
- Always inside the world border, with a margin.
- Biome rules per destination. Oceans and rivers are denied in the Overworld by default.


Loading a chunk far from everything else is the expensive part of any random teleport.
- On Paper and Folia, DonutRTP loads chunks asynchronously. Chunks for a waiting player load first, and each
loaded chunk is fully used before another one is loaded.
- A few safe spots per destination are found ahead of time, so most teleports start the moment the warmup ends.
- On Folia, every block, player and chunk is touched only from the region that owns it.
- On Spigot, at most one chunk loads per tick.
- When a search finds nothing, the console says why: no safe ground, denied biomes, claims, or a busy server.


Add as many destinations as you like: a resource world, a "far lands" option for veterans, a VIP-only world. Each one
has its own:
- world and square or circle shape;
- centre (or the world spawn), minimum and maximum distance, and heights;
- biome allow and deny lists;
- permission, cooldown, cost and menu item.


- Cooldowns are saved and survive restarts.
- One cooldown for every destination, or one each.
- Shorter cooldowns for ranks: with
ranks: { vip: 120, mvp: 60 }, players with donutrtp.cooldown.vip wait
two minutes and donutrtp.cooldown.mvp one. The lowest a player has wins.
- Costs through Vault, taken only once the player has landed, and refunded if the teleport fails.
- Bypass permissions for cooldowns, costs and the warmup.


All of these are optional:
| Plugin |
What DonutRTP does with it |
| WorldGuard |
Zones from regions; never lands in a region |
| GriefPrevention |
Never lands in a claim |
| Vault (or VaultUnlocked) |
Destination costs |
| PlaceholderAPI |
%donutrtp_cooldown%, %donutrtp_cooldown_<destination>%, %donutrtp_zone%, %donutrtp_zone_<name>_countdown%, %donutrtp_zone_<name>_players% |
| HeadDatabase |
Menu icons |
For developers:
RtpPreTeleportEvent is cancellable and can change where a player lands.
RtpTeleportEvent fires after landing.
- Both say which destination and what started the teleport: command, menu, admin or zone.


Replace the jar and restart. DonutRTP upgrades your 1.x setup on the first start:
- Your settings carry over: warmup, cooldown, worlds, radius, minimum height, sounds and menu items.
- Your zones carry over: the WorldGuard zone becomes a zone named after its region, and each cuboid zone keeps
its name and permission.
- The old files are kept as
config-1.x.yml and messages-1.x.yml.


| Server |
Minecraft |
Java |
| Paper, Purpur and other Paper forks |
1.20.1 – 1.20.4 |
17 |
| Paper, Purpur and other Paper forks |
1.20.5 – 1.21.11 |
21 |
| Paper, Purpur and other Paper forks |
26.1 – 26.3 |
25 |
| Folia |
1.20.4 – 26.3 |
17 – 25 |
| Spigot, Bukkit |
1.20.1 – 26.3 |
as your server |
One jar for all of them. Each release boots a 1.x install on Paper 1.20.1, 1.20.4, 1.20.6, 1.21.1, 1.21.4, 1.21.8,
1.21.11, 26.1.2, 26.2 and 26.3 and Folia 1.20.4, 1.21.4, 1.21.11 and 26.3. On each one, bots run up to 23 checks:
the upgrade, the menu, warmup cancels, the Nether and the End, rank cooldowns, a two-player group zone, Vault and the
admin commands, plus WorldGuard and GriefPrevention on Paper. The console must stay free of errors.

| Command |
Permission |
|
/rtp |
donutrtp.use (everyone) |
The menu |
/rtp <destination> |
donutrtp.use and the destination's permission |
Teleport straight away |
/rtp player <player> [destination] |
donutrtp.admin |
Send someone (no warmup, cooldown or cost) |
/rtpadmin reload |
donutrtp.admin |
Reload config, messages and zones |
/rtpadmin info |
donutrtp.admin |
Platform, hooks, destinations, ready spots and zones |
/rtpadmin pos1, /rtpadmin pos2 |
donutrtp.zone.admin |
A zone's corners, where you stand |
/rtpadmin zone create <name> <destination> [region <id>] |
donutrtp.zone.admin |
Make a zone |
/rtpadmin zone set <name> <key> <value> |
donutrtp.zone.admin |
Change a zone |
/rtpadmin zone delete|info|list |
donutrtp.zone.admin |
|
donutrtp.zone.use lets players use zones (everyone). donutrtp.cooldown.bypass and donutrtp.cost.bypass are
for ops. donutrtp.warmup.bypass is given to nobody by default. /donutrtp works as /rtpadmin.

Does it lag? On Paper and Folia, chunks load off the main thread, and ready spots are prepared ahead of time.
Generating new terrain still costs CPU, as it does for every RTP plugin. Pre-generating your world makes every
teleport cheap.
Can I add my own worlds? Yes. Add a destination under destinations: in config.yml with the world's name, then
/rtpadmin reload.
Do I need WorldGuard for zones? No. Zones are boxes you select in game. WorldGuard regions work too.
Will my 1.x setup break? No. It is upgraded on the first start and the old files are kept.
Folia? Yes, every part of it, including group zones.
"No safe spot was found"? The console says why. Usually the area is mostly ocean, or claims cover it. A larger
radius helps.







Discord: discord.gg/SAmd9fhNhr · Source:
GitHub (Apache 2.0) · Support the project:
nightbeam.dev/support
评论 0
登录后参与评分
还没有评论,来抢沙发吧