AnarchySpawn
一款专为 Anarchy 和竞技生存 Minecraft 服务器设计的高性能随机荒野出生点与安全重生引擎。
支持版本与服务端核心
点击展开/收起版本兼容性矩阵
| Minecraft Version | Compatibility Status | Compatibility Details |
|---|---|---|
| 1.20.x - 26.3+ | Full Support (Native) | Full support for modern height limits (-64 to 320), modern potions, trial structures, and 26.3 pale garden features (Creaking Heart, Heavy Core, Pale Oak). |
| 1.18.x - 1.19.x | Full Support | Seamless support for caves & cliffs height limits and ancient city biome detection. |
| 1.16.5 - 1.17.x | Full Support (Legacy) | Automatic fallback to height 0 base and legacy potion effect aliases (DAMAGE_RESISTANCE, INCREASE_DAMAGE, etc.). |
| 1.12.2 - 1.15.x | Full Support (Legacy) | Automatic fallback from PDC to local dual-track storage (data/players.yml), legacy Material system mapping (STATIONARY_LAVA), and Classloader insulation. |
| Server Core / Software | Compatibility | Recommendation |
|---|---|---|
| Paper / Purpur | Native Async Support | Highly Recommended (utilizes asynchronous chunk loading & teleportation without TPS drops) |
| Folia | Native Regionized Scheduler | Fully Supported (all scheduling routed through FoliaScheduler with region-thread confinement) |
| Spigot / CraftBukkit | Full Synchronous Support | Fully Supported (automatically switches to scheduled sync loading fallback) |
| Pufferfish / Gale / Leaves | Native Async Support | Fully Supported |
功能特性
- 广泛版本兼容 (1.12.2 - 26.3+):内置运行时反射层与双轨持久化机制,可在旧版(1.12.2)与现代 Minecraft 版本间安全适配,避免 NoSuchMethod 崩溃。
- 地表穿透直查与 98%+ 搜索加速:直接查询主世界地形的高度图(
getHighestBlockYAt),将候选列的方块检查次数从约 250 次降至 1~3 次迭代。 - 独立多语言系统与客户端语言自动检测:语言文件存放在专用的
languages/目录中(en_US.yml、zh_CN.yml、zh_TW.yml)。消息会自动适配每位玩家的客户端语言。 - 首次加入安全掉落与世界级控制:在玩家首次加入或进入维度时延迟传送,将其安全投放至配置的环形荒野区域。每个世界可独立开启或关闭首次加入随机出生点(
first-join: true/false)。 - PDC 与双轨追踪:在 1.14+ 版本使用
PersistentDataContainer,在 1.12.2 - 1.13.2 版本自动回退至本地文件存储,以此追踪各世界的出生历史,无需外部数据库依赖且无内存泄漏风险。 - 零延迟重生缓存池:后台异步任务预搜索并维护一个安全位置池(
LocationCachePool),确保死亡后瞬间重生。 - 床与重生锚覆盖:提供覆盖原版床和重生锚的选项,防止陷入“床陷阱”和“出生点击杀循环”。
- 等面积环状分布:利用等面积概率密度采样,确保玩家在外部区域的均匀分布,避免聚集在中心附近。
- 动态死亡热点规避:自动避开最近的死亡/PvP 区域,以防止出生点蹲守和水晶陷阱,并提供无缝回退机制。
- 全方位 3D 安全验证:严格过滤熔岩、水下、仙人掌、甜浆果、细雪、传送门、基岩屋顶/虚空、危险海洋生物群系、试炼结构和世界边界。
- PaperMC 异步区块兼容:原生支持 Paper 的异步区块加载反射机制,并在 Spigot 上平滑回退,保持 20 TPS。
- Folia 区域调度器支持:自动检测 Folia 区域线程,在 Paper/Spigot 上透明回退至经典调度器。
- 视听与防秒杀保护:可配置无敌持续时间、药水效果(抗性提升、缓慢下降、火焰抗性)、粒子效果、音效、标题栏和操作栏提示。
- 生态系统集成:内置对 PlaceholderAPI 和 EssentialsX 的软依赖支持。
- Modrinth 自动更新与安全下载:启动时及定期后台检查、SHA-512 验证、重启时无缝替换
plugins/update/中的文件,以及游戏内管理员通知。
安装与使用
- 将编译好的
AnarchySpawn-x.x.x.jar复制到服务器的plugins/文件夹中。 - 启动服务器;默认配置文件和语言文件将在
plugins/AnarchySpawn/和plugins/AnarchySpawn/languages/中生成。 - 根据服务器需求自定义
config.yml和languages/目录下的语言文件。 - 在控制台或游戏中执行
/as reload以即时应用配置更改。
命令与权限
点击展开/收起命令列表 (Commands)
| 命令 | 别名 | 权限节点 | 默认值 | 描述 |
|---|---|---|---|---|
/as reload |
/aspawn reload |
anarchyspawn.reload |
OP | 重新加载配置文件和语言文件 |
/as tp [player] [world] |
/randspawn tp |
anarchyspawn.tp |
OP | 将玩家传送至目标世界中的安全随机位置 |
/as setcenter <world> <x> <z> |
/as setcenter |
anarchyspawn.setcenter |
OP | 动态更新指定世界的出生点中心坐标 |
/as info |
/as status |
anarchyspawn.info |
OP | 显示已启用世界的状态及缓存池容量 |
/as test [world] |
/as benchmark |
anarchyspawn.test |
OP | 运行单次安全坐标搜索基准测试并计时 |
/as cache |
/as refill |
anarchyspawn.cache |
OP | 唤醒后台异步工作线程以预填充缓存池 |
点击展开/收起权限列表(Permissions)
| 权限节点 | 默认值 | 描述 |
|---|---|---|
anarchyspawn.use |
所有人 (true) |
授予首次加入和死亡重生时随机安全出生点的访问权限 |
anarchyspawn.bypass |
OP | 绕过随机重生(保留原版床和重生锚的功能) |
anarchyspawn.admin |
OP | 主管理员权限,涵盖所有子命令 |
anarchyspawn.reload |
OP | 允许执行 /as reload |
anarchyspawn.tp |
OP | 允许执行 /as tp |
anarchyspawn.setcenter |
OP | 允许执行 /as setcenter |
anarchyspawn.info |
OP | 允许执行 /as info |
anarchyspawn.test |
OP | 允许执行 /as test |
anarchyspawn.cache |
OP | 允许执行 /as cache |
PlaceholderAPI 标识符
点击展开/收起 PlaceholderAPI 列表(Placeholders)
| 占位符 | 描述 | 返回类型 / 示例 |
|---|---|---|
%anarchyspawn_spawned% |
检查当前玩家是否已在当前世界中完成初始出生 | true / false |
%anarchyspawn_cache_size_<world>% |
获取指定世界异步缓存池中当前可用的安全位置数量 | 整数(例如:10) |
%anarchyspawn_min_radius_<world>% |
获取指定世界配置的内圈最小半径 | 整数(例如:1000) |
%anarchyspawn_max_radius_<world>% |
获取指定世界配置的外圈最大半径 | 整数(例如:15000) |
AnarchySpawn
A high-performance random wilderness spawn and safe respawn engine designed for Anarchy and competitive survival Minecraft servers.
Supported Versions & Server Engines
Click to expand / collapse Version Compatibility Matrix
| Minecraft Version | Compatibility Status | Compatibility Details |
|---|---|---|
| 1.20.x - 26.3+ | Full Support (Native) | Full support for modern height limits (-64 to 320), modern potions, trial structures, and 26.3 pale garden features (Creaking Heart, Heavy Core, Pale Oak). |
| 1.18.x - 1.19.x | Full Support | Seamless support for caves & cliffs height limits and ancient city biome detection. |
| 1.16.5 - 1.17.x | Full Support (Legacy) | Automatic fallback to height 0 base and legacy potion effect aliases (DAMAGE_RESISTANCE, INCREASE_DAMAGE, etc.). |
| 1.12.2 - 1.15.x | Full Support (Legacy) | Automatic fallback from PDC to local dual-track storage (data/players.yml), legacy Material system mapping (STATIONARY_LAVA), and Classloader insulation. |
| Server Core / Software | Compatibility | Recommendation |
|---|---|---|
| Paper / Purpur | Native Async Support | Highly Recommended (utilizes asynchronous chunk loading & teleportation without TPS drops) |
| Folia | Native Regionized Scheduler | Fully Supported (all scheduling routed through FoliaScheduler with region-thread confinement) |
| Spigot / CraftBukkit | Full Synchronous Support | Fully Supported (automatically switches to scheduled sync loading fallback) |
| Pufferfish / Gale / Leaves | Native Async Support | Fully Supported |
Features
- Broad Version Compatibility (1.12.2 - 26.3+): Built-in runtime reflection layer and dual-track persistence that safely adapts across legacy (1.12.2) and modern Minecraft releases without NoSuchMethod crashes.
- Surface Direct Penetration & 98%+ Search Acceleration: Directly queries surface heightmaps (
getHighestBlockYAt) in Overworld terrain, dropping candidate column block checks from250 down to 13 iterations. - Standalone Multi-Language System & Client Locale Auto-Detection: Language files are organized in a dedicated
languages/directory (en_US.yml,zh_CN.yml,zh_TW.yml). Messages automatically adapt to each player's client language. - First-Join Safe Drop & Per-World Control: Delays teleportation upon first join or dimension entry to safely dispatch players into configured ring wilderness zones. Each world can independently toggle first-join random spawn (
first-join: true/false). - PDC & Dual-Track Tracking: Uses
PersistentDataContaineron 1.14+ and automatic file fallback on 1.12.2 - 1.13.2 to track spawn history per world without external database dependencies or memory leaks. - Zero-Delay Respawn Cache Pool: Background async tasks pre-search and maintain a pool of safe locations (
LocationCachePool) for instant respawn upon death. - Bed & Respawn Anchor Override: Option to override vanilla beds and respawn anchors to prevent bed-trapping and spawn-kill cycles.
- Equal-Area Annular Distribution: Utilizes equal-area probability density sampling to ensure uniform player distribution across outer zones without clustering near the center.
- Dynamic Death Hotspot Avoidance: Automatically avoids recent death/PvP zones to prevent spawn camping and crystal traps, with seamless fallback.
- Holistic 3D Safety Validation: Rigorous filtering against lava, underwater, cacti, sweet berries, powdered snow, portals, bedrock roofs/voids, dangerous ocean biomes, trial structures, and world borders.
- PaperMC Async Chunk Compatibility: Native reflection support for Paper's asynchronous chunk loading with smooth fallback on Spigot, preserving 20 TPS.
- Folia Regionized Scheduler Support: Auto-detects Folia region threads with transparent fallback to classic scheduler on Paper/Spigot.
- Audiovisual & Anti-Instakill Protection: Configurable invulnerability duration, potion effects (Resistance, Slow Falling, Fire Resistance), particle effects, sounds, titles, and actionbars.
- Ecosystem Integration: Built-in soft dependency support for PlaceholderAPI and EssentialsX.
- Modrinth Auto-Updater & Safe Download: Background checking on startup and periodic timers, SHA-512 verification, seamless
plugins/update/replacement on restart, and in-game admin notifications.
Installation & Usage
- Copy the compiled
AnarchySpawn-x.x.x.jarinto your server'splugins/folder. - Start the server; default configuration and language files will be generated in
plugins/AnarchySpawn/andplugins/AnarchySpawn/languages/. - Customize
config.ymland language files inlanguages/according to your server requirements. - Execute
/as reloadin the console or in-game to apply configuration changes on the fly.
Commands & Permissions
Click to expand / collapse Command List (Commands)
| Command | Aliases | Permission | Default | Description |
|---|---|---|---|---|
/as reload |
/aspawn reload |
anarchyspawn.reload |
OP | Reloads configuration and language files |
/as tp [player] [world] |
/randspawn tp |
anarchyspawn.tp |
OP | Teleports a player to a safe random location in target world |
/as setcenter <world> <x> <z> |
/as setcenter |
anarchyspawn.setcenter |
OP | Dynamically updates the spawn center coordinates for a world |
/as info |
/as status |
anarchyspawn.info |
OP | Displays enabled world statuses and cache pool capacity |
/as test [world] |
/as benchmark |
anarchyspawn.test |
OP | Runs a single safe coordinate search benchmark with timing |
/as cache |
/as refill |
anarchyspawn.cache |
OP | Wakes up background async workers to refill the pre-cache pool |
Click to expand / collapse Permission List (Permissions)
| Permission Node | Default | Description |
|---|---|---|
anarchyspawn.use |
Everyone (true) |
Grants access to random safe spawns on first join and death respawn |
anarchyspawn.bypass |
OP | Bypasses random respawn (preserves vanilla bed and respawn anchor) |
anarchyspawn.admin |
OP | Master administrator permission covering all subcommands |
anarchyspawn.reload |
OP | Allows execution of /as reload |
anarchyspawn.tp |
OP | Allows execution of /as tp |
anarchyspawn.setcenter |
OP | Allows execution of /as setcenter |
anarchyspawn.info |
OP | Allows execution of /as info |
anarchyspawn.test |
OP | Allows execution of /as test |
anarchyspawn.cache |
OP | Allows execution of /as cache |
PlaceholderAPI Identifiers
Click to expand / collapse PlaceholderAPI List (Placeholders)
| Placeholder | Description | Return Type / Example |
|---|---|---|
%anarchyspawn_spawned% |
Checks if the current player has performed their initial spawn in the current world | true / false |
%anarchyspawn_cache_size_<world>% |
Gets the count of currently available safe locations in the async cache pool for the specified world | Integer (e.g., 10) |
%anarchyspawn_min_radius_<world>% |
Gets the configured minimum inner radius for the specified world | Integer (e.g., 1000) |
%anarchyspawn_max_radius_<world>% |
Gets the configured maximum outer radius for the specified world | Integer (e.g., 15000) |
版本游戏版本平台发布时间本站下载
正式版
1.1.2
AnarchySpawn 1.1.2
26.326.2 BukkitFolia 2 周前 ·
0
26.3
26.2
26.1.2
26.1.1, 26.1, 1.21.11, 1.21.10, 1.21.9, 1.21.8, 1.21.7, 1.21.6, 1.21.5, 1.21.4, 1.21.3, 1.21.2, 1.21.1, 1.21, 1.20.6, 1.20.5, 1.20.4, 1.20.3, 1.20.2, 1.20.1, 1.20, 1.19.4, 1.19.3, 1.19.2, 1.19.1, 1.19, 1.18.2, 1.18.1, 1.18, 1.17.1, 1.17, 1.16.5, 1.16.4, 1.16.3, 1.16.2, 1.16.1, 1.16, 1.15.2, 1.15.1, 1.15, 1.14.4, 1.14.3, 1.14.2, 1.14.1, 1.14, 1.13.2, 1.13.1, 1.13, 1.12.2, 1.12.1, 1.12
Bukkit
Folia
Paper
Purpur
Spigot
2 周前
0
下载 AnarchySpawn
版本:1.1.2
游戏版本:26.3、26.2、26.1.2 等
平台:Bukkit、Folia、Paper、Purpur、Spigot
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
正式版
1.1.1
AnarchySpawn 1.1.1
26.326.2 BukkitFolia 2 周前 ·
0
26.3
26.2
26.1.2
26.1.1, 26.1, 1.21.11, 1.21.10, 1.21.9, 1.21.8, 1.21.7, 1.21.6, 1.21.5, 1.21.4, 1.21.3, 1.21.2, 1.21.1, 1.21, 1.20.6, 1.20.5, 1.20.4, 1.20.3, 1.20.2, 1.20.1, 1.20, 1.19.4, 1.19.3, 1.19.2, 1.19.1, 1.19, 1.18.2, 1.18.1, 1.18, 1.17.1, 1.17, 1.16.5, 1.16.4, 1.16.3, 1.16.2, 1.16.1, 1.16, 1.15.2, 1.15.1, 1.15, 1.14.4, 1.14.3, 1.14.2, 1.14.1, 1.14, 1.13.2, 1.13.1, 1.13, 1.12.2, 1.12.1, 1.12
Bukkit
Folia
Paper
Purpur
Spigot
2 周前
0
下载 AnarchySpawn
版本:1.1.1
游戏版本:26.3、26.2、26.1.2 等
平台:Bukkit、Folia、Paper、Purpur、Spigot
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
正式版
1.1.0
AnarchySpawn 1.1.0
26.326.2 BukkitFolia 1 个月前 ·
0
26.3
26.2
26.1.2
26.1.1, 26.1, 1.21.11, 1.21.10, 1.21.9, 1.21.8, 1.21.7, 1.21.6, 1.21.5, 1.21.4, 1.21.3, 1.21.2, 1.21.1, 1.21, 1.20.6, 1.20.5, 1.20.4, 1.20.3, 1.20.2, 1.20.1, 1.20, 1.19.4, 1.19.3, 1.19.2, 1.19.1, 1.19, 1.18.2, 1.18.1, 1.18, 1.17.1, 1.17, 1.16.5, 1.16.4, 1.16.3, 1.16.2, 1.16.1, 1.16, 1.15.2, 1.15.1, 1.15, 1.14.4, 1.14.3, 1.14.2, 1.14.1, 1.14, 1.13.2, 1.13.1, 1.13, 1.12.2, 1.12.1, 1.12
Bukkit
Folia
Paper
Purpur
Spigot
1 个月前
0
下载 AnarchySpawn
版本:1.1.0
游戏版本:26.3、26.2、26.1.2 等
平台:Bukkit、Folia、Paper、Purpur、Spigot
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
正式版
1.0.3
AnarchySpawn 1.0.3
26.326.2 BukkitFolia 1 个月前 ·
0
26.3
26.2
26.1.2
26.1.1, 26.1, 1.21.11, 1.21.10, 1.21.9, 1.21.8, 1.21.7, 1.21.6, 1.21.5, 1.21.4, 1.21.3, 1.21.2, 1.21.1, 1.21, 1.20.6, 1.20.5, 1.20.4, 1.20.3, 1.20.2, 1.20.1, 1.20, 1.19.4, 1.19.3, 1.19.2, 1.19.1, 1.19, 1.18.2, 1.18.1, 1.18, 1.17.1, 1.17, 1.16.5, 1.16.4, 1.16.3, 1.16.2, 1.16.1, 1.16
Bukkit
Folia
Paper
Purpur
Spigot
1 个月前
0
下载 AnarchySpawn
版本:1.0.3
游戏版本:26.3、26.2、26.1.2 等
平台:Bukkit、Folia、Paper、Purpur、Spigot
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
正式版
1.0.2
AnarchySpawn 1.0.2
26.326.2 BukkitFolia 1 个月前 ·
0
26.3
26.2
26.1.2
26.1.1, 26.1, 1.21.11, 1.21.10, 1.21.9, 1.21.8, 1.21.7, 1.21.6, 1.21.5, 1.21.4, 1.21.3, 1.21.2, 1.21.1, 1.21, 1.20.6, 1.20.5, 1.20.4, 1.20.3, 1.20.2, 1.20.1, 1.20, 1.19.4, 1.19.3, 1.19.2, 1.19.1, 1.19, 1.18.2, 1.18.1, 1.18, 1.17.1, 1.17, 1.16.5, 1.16.4, 1.16.3, 1.16.2, 1.16.1, 1.16
Bukkit
Folia
Paper
Purpur
Spigot
1 个月前
0
下载 AnarchySpawn
版本:1.0.2
游戏版本:26.3、26.2、26.1.2 等
平台:Bukkit、Folia、Paper、Purpur、Spigot
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
正式版
1.0.1
AnarchySpawn 1.0.1
26.326.2 BukkitPaper 1 个月前 ·
0
26.3
26.2
26.1.2
26.1.1, 26.1, 1.21.11, 1.21.10, 1.21.9, 1.21.8, 1.21.7, 1.21.6, 1.21.5, 1.21.4, 1.21.3, 1.21.2, 1.21.1, 1.21, 1.20.6, 1.20.5, 1.20.4, 1.20.3, 1.20.2, 1.20.1, 1.20, 1.19.4, 1.19.3, 1.19.2, 1.19.1, 1.19, 1.18.2, 1.18.1, 1.18, 1.17.1, 1.17, 1.16.5, 1.16.4, 1.16.3, 1.16.2, 1.16.1, 1.16
Bukkit
Paper
Purpur
Spigot
1 个月前
0
下载 AnarchySpawn
版本:1.0.1
游戏版本:26.3、26.2、26.1.2 等
平台:Bukkit、Paper、Purpur、Spigot
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
正式版
1.0.0
AnarchySpawn 1.0.0
26.326.2 BukkitPaper 1 个月前 ·
0
26.3
26.2
26.1.2
26.1.1, 26.1, 1.21.11, 1.21.10, 1.21.9, 1.21.8, 1.21.7, 1.21.6, 1.21.5, 1.21.4, 1.21.3, 1.21.2, 1.21.1, 1.21, 1.20.6, 1.20.5, 1.20.4, 1.20.3, 1.20.2, 1.20.1, 1.20, 1.19.4, 1.19.3, 1.19.2, 1.19.1, 1.19, 1.18.2, 1.18.1, 1.18, 1.17.1, 1.17, 1.16.5, 1.16.4, 1.16.3, 1.16.2, 1.16.1, 1.16
Bukkit
Paper
Purpur
Spigot
1 个月前
0
下载 AnarchySpawn
版本:1.0.0
游戏版本:26.3、26.2、26.1.2 等
平台:Bukkit、Paper、Purpur、Spigot
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
1.1.2
正式版
2026-11-01
[1.1.2] - 2026-11-01
Added
- 基于 Modrinth 的内置自动更新器 (
ModrinthAutoUpdater):- 在服务器启动时以及可配置的定期计划(默认每 6 小时)自动查询官方 Modrinth API v2 (
/project/{slug}/version)。 - 自动匹配服务器加载器(
bukkit、spigot、paper、purpur、folia)并遵循已配置的发版渠道(release、beta、alpha,默认release)。 - 将新版本下载至服务器的更新目录(
plugins/update/),保留当前 jar 包的精确文件名,以便在下一次服务器重启时实现无缝自动替换。 - 实施针对 Modrinth API 元数据的强制性 SHA-512 加密验证,安全丢弃损坏或不完整的下载文件(使用
.part暂存)。 - 轻量级、非阻塞的单守护线程池执行:在 Paper 和 Folia 上 100% 线程安全,不会阻塞主逻辑循环或区域线程。
- 在服务器启动时以及可配置的定期计划(默认每 6 小时)自动查询官方 Modrinth API v2 (
- 管理员游戏内命令与加入通知:
- 新增
/as update [check]命令(支持 Tab 补全):允许服务器管理员手动触发即时更新检查及后台下载,或运行check进行只读版本对比。 - 新增
anarchyspawn.update权限节点(授予 OP 并包含在anarchyspawn.admin中)。 - 新增
UpdateNotifyListener:当管理员加入服务器时,显示非侵入性的更新提醒或重启通知。
- 新增
- 更新器与消息的全多语言本地化:
- 更新器的所有控制台日志和游戏内消息均已完全本地化,涵盖
en_US.yml、zh_CN.yml和zh_TW.yml。 - 控制台日志自动尊重
language.server-language设置并去除颜色代码,而游戏内通知则尊重客户端语言的自动检测。 - 在
MessageManager中添加了回退默认值加载机制,使得缺少新添加键值的现有用户语言文件能优雅地回退到捆绑默认值,而不会破坏格式。
- 更新器的所有控制台日志和游戏内消息均已完全本地化,涵盖
Fixed
- 重构命令执行层:解决了 Folia 跨区域线程安全问题,优化占位符映射以减少 GC 压力,并加强了坐标边界验证以及控制台回退处理。
1.1.0
正式版
2026-10-16
[1.1.0] - 2026-10-15
Added
- 全面兼容 Minecraft 26.3+ (1.21.x):
- 扩展
PaperCompatibility反射层,以动态解析 26.3 / 1.21.x 的 Bukkit & Paper API 特性、音效(BLOCK_TRIAL_SPAWNER_SPAWN_MOB、ITEM_WIND_CHARGE_WIND_BURST、BLOCK_CREAKING_HEART_SPAWN)以及粒子效果(PALE_OAK_LEAVES、CREAKING_CRUMB、TRIAL_SPAWNER_DETECTION、WIND_CHARGE)。 - 在
SafetyValidator中为 26.3 方块(CREAKING_HEART、EYE_BLOSSOM、PALE_HANGING_MOSS、HEAVY_CORE、RESIN_BLOCK、RESIN_CLUMP)和生物群系支持(PALE_GARDEN)添加了完整的安全检查规则,并在旧版服务器(1.12.2 - 1.20.x)上自动回退至安全替代方案。 - 更新元数据、文档和版本矩阵,以反映在 Paper、Purpur、Folia 和 Spigot 上对
1.12.2 - 26.3+运行时的全面支持。
- 扩展
- 向下完全兼容至 Minecraft 1.12.2:
- 在
PDCUtils中实现双轨持久化机制:在 1.14+ 上动态利用原生PersistentDataContainer(PDC),而在 1.12.2 - 1.13.2 上无缝降级为线程安全的本地文件存储 (data/players.yml)。 - 添加了对旧版材质(
STATIONARY_LAVA、STATIONARY_WATER、BURNING_FURNACE、BED_BLOCK等)的支持,并对 1.13+ 类引用(BlockData、Waterlogged、Tag)进行隔离处理,以防止在旧版运行时出现NoClassDefFoundError。 - 防御了预 1.13/预 1.14 服务器上缺失的
Material.isBlock()和Material.isAir()API。
- 在
- 地表穿透与 HighestBlockY 优化:
- 在 Overworld 维度中的
SafeLocationFinder集成了world.getHighestBlockYAt(x, z)直接高度图穿透功能,将列方块检查次数从约 250 次减少到 1~3 次迭代(在安全出生点搜索中实现了 98%+ 的速度提升)。 - 在地表地形周围实施了窄搜索窗口(地表 +6 至 -12),以便立即评估候选项,并为洞穴和下界基岩天花板提供优雅的回退扫描。
- 在 Overworld 维度中的
- 引入了
DeathHotspotManager和PlayerDeathListener,用于动态追踪和规避死亡/战斗热点区域。 - 在
config.yml中添加了death-hotspots配置块,包含可自定义的开关(enabled)、规避半径(radius)、过期时长(ttl-seconds)以及每个世界存储的最大热点数量(max-hotspots-per-world)。 - 在
SafeLocationFinder中实现了两阶段搜索:主阶段使用死亡热点黑名单过滤候选出生点;如果主阶段未能找到有效位置,则副回退阶段会自动忽略热点限制,确保玩家始终能在荒野中正常出生。 - 添加了
PlayerQuitListener和TeleportService.cancelPlayerProtection(),以便在玩家断开连接时重置无敌状态并取消保护任务,消除了通过断线登录获得的永久“神模式”漏洞。
已修复
- Folia 区块区域限制过载(严重):在
FoliaScheduler中添加了runForRegion(plugin, world, chunkX, chunkZ, task)重载方法。修复了SafeLocationFinder和PaperCompatibility.getChunkAtAsync错误地将请求分派到默认区块(0, 0)而非目标区块坐标(targetX >> 4, targetZ >> 4)的问题,该问题会导致在读取/加载非 (0,0) 区块外的方块时触发 Folia 跨区域线程限制违规。 - 回退重生临时伤害保护:当回退至世界出生点且后台异步搜索仍在进行时,在
PlayerRespawnListener中给予玩家 60 刻的伤害免疫(noDamageTicks),防止在 hostile 回退点瞬间死亡。 - PlaceholderAPI 热点占位符及空值防护:为活跃热点监控添加了
%anarchyspawn_hotspots_<world>%占位符,并在PlaceholderAPIHook中添加了空安全检查,以防护缓存或热点服务被禁用的情况。 - PlayerDeathListener 生命周期防护:在
PlayerDeathListener中为实体和DeathHotspotManager添加了防御性空值检查,确保在重载或关闭期间零错误。 - 缓存飞行许可泄漏防护:将
FoliaScheduler.runForRegion内的列评估包裹在try-catch(Throwable)中,保证异步CompletableFuture始终解析完成,永远不会冻结缓存池的补充操作。 - Folia 调度器反射签名修复(严重):纠正了对不存在的
Bukkit.getRegionizedScheduler()和scheduler.player()的错误探测;现在正确解析Bukkit.getRegionScheduler()、Bukkit.getGlobalRegionScheduler()、Bukkit.getAsyncScheduler(),并根据实体动态获取player.getScheduler()(EntityScheduler)。 - 缓存池热点绕过修复:修复了
LocationCachePool.poll()未能检查预缓存坐标在缓存后是否变为活跃死亡热点的问题。 - 重生效果时机调整:将
PlayerRespawnListener切换为在重生后使用 1 刻延迟(runForPlayerLater(..., 1L))调度后续效果,防止实体仍在完成重生过程时跳过药水效果、声音、标题和无敌状态。 - 空生物群系黑名单防护:针对
safety-filter.biome-blacklist中的空白或空字符串进行了防护,防止其通过contains("")匹配所有生物群系。 - 环形半径数学安全性:在
SafeLocationFinder中强制执行Math.min/Math.max边界检查,防止当半径配置反转时对负数进行Math.sqrt运算(导致NaN)。 - 重载时重置热点缓存:在
/as reload命令中添加了deathHotspotManager.clearAllHotspots()。 - PlaceholderAPI 动态作者信息:在
PlaceholderAPIHook中从plugin.yml动态解析插件作者。 - 火珊瑚与泥砖误报修复:修复了
DANGEROUS_SURROUNDING_MATERIALS意外将安全的FIRE_CORAL方块分类为致命火焰的问题;并优化了MUD地板检查逻辑,确保MUD_BRICKS和PACKED_MUD等建筑方块不会被错误地视为不稳定方块。 - 跨世界加入竞态条件修复:在初始加入延迟后的
PlayerJoinListener中添加了世界一致性验证,以防止与大厅/认证插件发生跨世界冲突。 - TeleportService 保护任务字段与会话安全:解决了缺失的
activeProtectionTasks编译变量问题;引入了会话令牌跟踪(activeProtectionSessions),确保保护取消的安全性,并防止在 Folia 上出现过期的回调。 - Folia 跨区域命令消息传递修复:修复了
/as tp和/as test违反 Folia 线程限制的问题,此前它们会将命令反馈分派给发送者自己的区域线程,而非目标线程。 - Folia 重复任务取消与生命周期防护:在
FoliaScheduler中添加了runTimerGlobalTask和反射式cancelTask,并在LocationCachePool中添加了isRunning生命周期检查,防止在/as reload期间 Folia 上的重复补充任务泄漏。 - 热点回退尝试优化:如果
getActiveHotspotsCount(world) == 0,则短路执行第二次 35 次尝试的回退流程,防止在与热点无关的搜索失败时执行冗余的区块操作。 - 干净关闭内存清理:在
onDisable()中添加了deathHotspotManager.clearAllHotspots(),以防止残留的世界引用。 - Tab 补全世界名称大小写保留:在
/asTab 补全中保留了配置的世界名称大小写。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
数据包事件PacketEvents
retrooper
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
前置科技
28
插件
ExyliaLib
ExyliaServices
ExyliaPlugins 的库。
前置实用
26
插件
ProAuthMeLogin
3623813757
通过对话框或铁砧界面帮助你的 Anthme
实用
16
插件
Vessel
muhdfdeen
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
生物存储
13
插件
Vivecraft Spigot Extension
fayer3
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
前置实用
12
插件
旅行地图
mysticdrew
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。
冒险实用
12
评论 0
登录后参与评分
还没有评论,来抢沙发吧