? EnderPearlPatch
一个插件,防止玩家注销或死亡时末影珍珠消失。
它会保存所有活跃的珍珠,并在玩家重新加入或重生后恢复它们——即使在使用 AuthMe 或其他类似登录系统的服务器上(这些系统会暂时将玩家从世界中移除),也能正常工作。
? 描述
此插件修复了一个常见问题:当玩家注销或死亡时,末影珍珠会消失——尤其是在使用 AuthMe 或其他类似登录系统的服务器上,玩家会被暂时从世界中移除。
与其让珍珠消失,该插件会保存它们,并在玩家重新登录或重生后恢复它们。
它还提供了有用的管理员命令,用于手动列出、删除、添加和创建已保存的珍珠。
⚙️ 功能
- 防止末影珍珠在注销或死亡时消失
- 在登录或重生后以正确的位置和速度恢复珍珠
- 兼容 AuthMe 和其他延迟登录插件
- 提供
/pearls list、add、del、create 命令以全面管理珍珠
- 可通过
config.yml 配置行为
- 仅限 OP(或拥有
enderpearlpatch.admin 权限的玩家)使用
? 配置 (config.yml)
enabled: true
respawn-mode: login_and_respawn
? 参数
| Key |
Type |
Default |
Description |
enabled |
boolean |
true |
启用或禁用整个插件。如果设置为 false,所有监听器和恢复逻辑都将禁用。 |
respawn-mode |
string |
login_and_respawn |
定义何时应恢复珍珠: • login → 仅在玩家登录时 • login_and_respawn → 在登录时 以及 重生后 |
? 命令概览
这些命令对 OP 或拥有 enderpearlpatch.admin 权限的玩家可用。
? /enderpearlpatch reload
重新加载插件和配置文件。
所有数据和设置将从磁盘刷新。
权限: enderpearlpatch.admin
⚙️ /enderpearlpatch mode <login|login_and_respawn>
直接从游戏内更改珍珠恢复模式。
更新 config.yml 并立即应用更改。
示例:
/enderpearlpatch mode login
/enderpearlpatch mode login_and_respawn
权限: enderpearlpatch.admin
? /pearls 子命令
? /pearls list
列出所有当前已保存的末影珍珠(针对所有玩家),显示其所在的世界和坐标。
示例输出:
Player: JanekDev
#0 → world 123 64 456
#1 → world_nether -23 70 40
❌ /pearls del <player> <id>
通过索引(id)从指定玩家的列表中删除特定的已保存珍珠。
示例:
/pearls del JanekDev 0
输出:
§aPearl #0 deleted for JanekDev
➕ /pearls add <player> <x> <y> <z> <world> [vx vy vz]
为玩家添加一个已保存的珍珠,位于指定的坐标,可选速度。
当玩家重新加入时,它会自动恢复。
示例:
/pearls add JanekDev 100.5 64 200 world 0 0.5 0
→ 在 world 世界的 (100.5, 64, 200) 处添加一颗具有轻微向上速度的珍珠。
✨ /pearls create <player> <x> <y> <z> <world> [vx vy vz]
立即在指定玩家的世界中生成一颗活动的末影珍珠。
示例:
/pearls create JanekDev 50 70 50 world 1 0 0
→ 为 JanekDev 在 (50, 70, 50) 处生成一颗向东移动的珍珠。
? 权限
| Permission |
Default |
Description |
enderpearlpatch.admin |
op |
允许使用 /enderpearlpatch 和 /pearls 命令 |
? 作者
JanekDev — 开发者
? EnderPearlPatch
A plugin that prevents Ender Pearls from disappearing when players log out or die.
It stores all active pearls and restores them after the player rejoins or respawns — even on servers using AuthMe or similar login systems that temporarily remove players from the world.
? Description
This plugin fixes a common issue where Ender Pearls vanish when a player logs out or dies — especially on servers using AuthMe or similar login systems, where players are temporarily removed from the world.
Instead of letting pearls disappear, this plugin saves them and restores them after the player logs back in or respawns.
It also provides useful admin commands to list, delete, add, and create saved pearls manually.
⚙️ Features
- Prevents ender pearls from vanishing on logout or death
- Restores pearls with correct location and velocity after login or respawn
- Compatible with AuthMe and other login-delay plugins
/pearls list, add, del, create commands for full pearl management
- Configurable behavior through
config.yml
- Only accessible by OPs (or players with
enderpearlpatch.admin permission)
? Configuration (config.yml)
enabled: true
respawn-mode: login_and_respawn
? Parameters
| Key |
Type |
Default |
Description |
enabled |
boolean |
true |
Enables or disables the plugin entirely. If set to false, all listeners and restoration logic are disabled. |
respawn-mode |
string |
login_and_respawn |
Defines when pearls should be restored: • login → only when the player logs in • login_and_respawn → when logging in and after respawning |
? Commands Overview
These commands are available to OPs or players with the enderpearlpatch.admin permission.
? /enderpearlpatch reload
Reloads the plugin and configuration.
All data and settings are refreshed from disk.
Permission: enderpearlpatch.admin
⚙️ /enderpearlpatch mode <login|login_and_respawn>
Changes the pearl restoration mode directly from in-game.
Updates config.yml and applies changes immediately.
Examples:
/enderpearlpatch mode login
/enderpearlpatch mode login_and_respawn
Permission: enderpearlpatch.admin
? /pearls Subcommands
? /pearls list
Lists all currently saved ender pearls for all players, showing their world and coordinates.
Example Output:
Player: JanekDev
#0 → world 123 64 456
#1 → world_nether -23 70 40
❌ /pearls del <player> <id>
Deletes a specific saved pearl by its index (id) from the specified player's list.
Example:
/pearls del JanekDev 0
Output:
§aPearl #0 deleted for JanekDev
➕ /pearls add <player> <x> <y> <z> <world> [vx vy vz]
Adds a saved pearl for a player at the specified coordinates, with optional velocity.
It will be restored automatically when the player rejoins.
Example:
/pearls add JanekDev 100.5 64 200 world 0 0.5 0
→ Adds a pearl at (100.5, 64, 200) in world with slight upward velocity.
✨ /pearls create <player> <x> <y> <z> <world> [vx vy vz]
Immediately spawns a live Ender Pearl in the world for the specified player.
Example:
/pearls create JanekDev 50 70 50 world 1 0 0
→ Spawns a pearl moving east at (50, 70, 50) for JanekDev.
? Permissions
| Permission |
Default |
Description |
enderpearlpatch.admin |
op |
Allows use of /enderpearlpatch and /pearls commands |
? Author
JanekDev — Developer
评论 0
登录后参与评分
还没有评论,来抢沙发吧