修复服务器中猪灵通过传送门时消失的问题。PortalDespawnFix
一个轻量级的开源 Paper 插件,旨在解决经典的多玩家问题:当僵尸化猪灵(以及其他怪物)穿过下界传送门,而另一名玩家在主世界距离较远时,它们会立即消失。
? 功能
无需全局配置更改:不会改变服务器范围的消失范围或破坏全局生物机制。
智能传送门保护:自动捕获正在穿越传送门的实体,并赋予它们临时的消失免疫(PersistenceRequired)。
轻量且干净:没有沉重的数据库,没有不必要的命令,完全无卡顿。它纯粹挂钩到原生的 Paper Event-API。
自清理:在短暂的超时后(30秒)安全地恢复正常的原版消失行为,这样你的世界就不会被卡住的实体填满。
⚙️ 工作原理
当怪物穿过传送门进入另一个维度时,服务器会立即检查附近是否有玩家。如果其他玩家在地图的其他地方加载(超出128格半径),原版机制会迫使怪物立即消失。
PortalDespawnFix 在实体恰好经过传送门的瞬间拦截此事件,临时阻止服务器移除它。这确保了即使在人口众多的多人服务器上,你的金矿农场传送网络也能顺畅运行!
? 安装
下载 .jar 文件。
将其放入服务器的 plugins 文件夹中。
重启服务器(或运行 /reload)。无需配置!
Fixes piglin despawns on servers for portal farms.PortalDespawnFix
A lightweight, open-source Paper plugin designed to fix the classic multiplayer issue where Zombified Piglins (and other monsters) instantly despawn when they travel through Nether portals while another player is far away in the Overworld.
? Features
Zero Global Configuration Changes: Does not alter server-wide despawn ranges or ruin global mob mechanics.
Smart Portal Protection: Automatically catches entities traveling through portals and grants them temporary immunity (PersistenceRequired) from despawning.
Lightweight & Clean: No heavy databases, no unnecessary commands, and completely lag-free. It hooks purely into the native Paper Event-API.
Self-Cleaning: Safely restores normal vanilla despawn behavior after a short timeout (30 seconds) so your world doesn't fill up with stuck entities.
⚙️ How it Works
When monsters travel through a portal into another dimension, the server immediately runs a check for nearby players. If other players are loaded elsewhere on the map (outside the 128-block radius), vanilla mechanics force the mobs to despawn instantly.
PortalDespawnFix intercepts this event the exact moment an entity passes through a portal, temporarily preventing the server from removing it. This ensures your gold farm's portal network functions smoothly even on populated multiplayer servers!
? Installation
Download the .jar file.
Drop it into your server's plugins folder.
Restart your server (or run /reload). No configuration needed!
评论 0
登录后参与评分
还没有评论,来抢沙发吧