标题:RespawnPoint — 兼容 Folia 的自定义重生点
副标题:右键点击床以设置个人重生点;若未设置,则在世界边界内随机位置重生。专为 Folia 打造(区域感知、无全局状态、异步存储)。
正文:
RespawnPoint
通过右键点击任意床来设置自定义重生点。如果你尚未设置,死亡后将在世界边界内的随机位置重生,而非默认出生点。
功能特性
• 右键点击床以保存你的个人重生点(取消原版睡眠机制)。
• 死亡时:传送至你保存的床的位置,或回退至配置的世界边界内的随机位置。
• 安全的 Y 轴计算,避免在地下生成。
• 异步存储:默认使用 YAML,可选 MySQL。
• 优先适配 Folia:使用实体/区域调度器、异步数据访问,且无全局状态。
• 管理员命令用于查看或清除玩家的重生点,并热重载配置。
使用方法
玩家:右键点击床即可。完成。死亡后你将前往该处。若从未设置过,则会传送到边界内的随机地点。
管理员:
/respawnpoint reload
/respawnpoint info <player>
/respawnpoint clear <player>
权限节点
• respawnpoint.use — 通过点击床设置重生点(默认:true)
• respawnpoint.admin — 使用管理员命令(默认:op)
配置说明
• storage-type: yaml(默认)或 mysql。
• random-world-border: 150000 表示 ±75,000 个方块。
• teleport-delay: 0(死亡后传送前的延迟刻数)。
要求
• 服务端:Folia(目标版本为 26.1.x;也兼容 Paper 1.21.x)。
• Java 版本:21。
支持版本
游戏版本:1.21.x
平台:Folia(以及 Paper 1.21.x,因为我们仅使用标准的 Bukkit/Paper API)
Title: RespawnPoint — Folia‑safe custom respawn points
Subtitle: Right‑click a bed to set a personal respawn point; if none is set, respawn at a random location inside the world border. Built for Folia (region‑aware, no global state, async storage).
BODY:
RespawnPoint
Set custom respawn points by right‑clicking any bed. If you haven't set one, you'll respawn at a random location within the world border instead of the default spawn.
Features
• Right‑click a bed to save your personal respawn point (vanilla sleep is cancelled).
• On death: teleport to your saved bed, or fall back to a random location within the configured world border.
• Safe Y calculation so you don't spawn underground.
• Async storage: YAML by default, optional MySQL.
• Folia‑first: uses entity/region schedulers, async data access, and no global state.
• Admin commands to inspect or clear players' respawn points and hot‑reload config.
How to use
Players: Right‑click a bed. Done. On death you'll go there. If you never set one, you'll go to a random spot in the border.
Admins:
/respawnpoint reload
/respawnpoint info <player>
/respawnpoint clear <player>
Permissions
• respawnpoint.use — set a respawn point by clicking beds (default: true)
• respawnpoint.admin — use admin commands (default: op)
Config notes
• storage-type: yaml (default) or mysql.
• random-world-border: 150000 means ±75,000 blocks.
• teleport-delay: 0 (ticks before post‑death teleport).
Requirements
• Server: Folia (targeted for 26.1.x; also runs on Paper 1.21.x).
• Java: 21.
Supported versions
Game versions: 1.21.x
Platform: Folia (and Paper 1.21.x, since we only use the standard Bukkit/Paper API)
评论 0
登录后参与评分
还没有评论,来抢沙发吧