
DontKillFriends
保护你的驯服动物免受伤害,即使你离线时也一样!
DontKillFriends 是一款轻量级的 Minecraft 插件,可防止其他玩家伤害你心爱的宠物。无论你是否在线,你的驯服动物都能免受玩家攻击和环境伤害。
功能介绍
- 阻止玩家对驯服动物(狼、猫、马、鹦鹉等)造成伤害
- 保护离线玩家的宠物——当主人不在时,破坏者无法触碰它们
- 使宠物免受环境伤害:火焰、熔岩、溺水、爆炸、虚空、监守者音波冲击等
- 阻止敌对生物锁定或攻击驯服宠物
- 防止驯服宠物之间互相攻击
- 拦截会销毁已命名驯服生物的
/kill命令 - 在玩家登录时通知宠物主人有人曾试图攻击其动物
特性
- 离线保护 — 当主人离线时,宠物依然安全
- 权限绕过 —
dontkillfriends.bypass供管理员使用 - 8种语言 — 英语、俄语、西班牙语、德语、法语、葡萄牙语、中文、日语
- HEX 颜色 — 消息中完全支持
&#RRGGBB颜色代码 - Folia 支持 — 开箱即用,适用于分区块服务器
- 可配置 — 可单独切换每种伤害类型
- 轻量级 — 无需数据库,开销极小
- bStats 可选退出 — 可通过设置
bstats: false禁用指标收集
命令
/dontkillfriends version— 显示插件版本(需权限dontkillfriends.version)/dontkillfriends reload— 重新加载配置和语言文件(需权限dontkillfriends.reload)/dkf—/dontkillfriends的别名
权限
dontkillfriends.version(op) — 查看插件版本dontkillfriends.reload(op) — 重新加载配置dontkillfriends.bypass(op) — 绕过所有宠物保护
兼容性
- Minecraft: 1.16.5 – 1.21.11
- 平台: Bukkit, Spigot, Paper, Purpur, Folia
- Java: 8+

DontKillFriends
Protect your tamed animals from damage, even when you're offline!
DontKillFriends is a lightweight Minecraft plugin that prevents other players from harming your beloved pets. Whether you're online or offline, your tamed animals stay safe from both player attacks and environmental damage.
What it does
- Blocks player damage to tamed animals (wolves, cats, horses, parrots, and more)
- Protects offline players' pets — griefers can't touch them while the owner is away
- Shields pets from environmental damage: fire, lava, drowning, explosions, void, Warden sonic boom, and more
- Stops hostile mobs from targeting or attacking tamed pets
- Prevents tamed pets from fighting each other
- Intercepts
/killcommands that would destroy named tamed mobs - Notifies pet owners on login when someone tried to attack their animals
Features
- Offline protection — pets stay safe when the owner is offline
- Bypass permission —
dontkillfriends.bypassfor admins - 8 languages — English, Russian, Spanish, German, French, Portuguese, Chinese, Japanese
- HEX colors — full
&#RRGGBBcolor support in messages - Folia support — works on regionized servers out of the box
- Configurable — toggle every damage type individually
- Lightweight — no database, minimal overhead
- bStats opt-out — disable metrics with
bstats: false
Commands
/dontkillfriends version— show plugin version (dontkillfriends.version)/dontkillfriends reload— reload config and language (dontkillfriends.reload)/dkf— alias for/dontkillfriends
Permissions
dontkillfriends.version(op) — view plugin versiondontkillfriends.reload(op) — reload configurationdontkillfriends.bypass(op) — bypass all pet protection
Compatibility
- Minecraft: 1.16.5 – 1.21.11
- Platforms: Bukkit, Spigot, Paper, Purpur, Folia
- Java: 8+
下载 Don't Kill Friends!
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Don't Kill Friends!
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Don't Kill Friends!
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Don't Kill Friends!
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Don't Kill Friends!
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Don't Kill Friends!
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Don't Kill Friends!
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Don't Kill Friends!
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
更新日志 - DontKillFriends
版本 1.3 - 下载量突破 1000!
主要功能
- bStats 集成 - 匿名使用统计,可通过配置文件中的
bstats: false选择退出 - 监守者音波保护 - 驯服的宠物现在受到监守者音波伤害的保护(
immortal-from-sonic-boom) - 代码重构 - 将庞大的主类拆分为专注的监听器、命令处理程序和工具类
新增
- Minecraft 1.19+ 的
immortal-from-sonic-boom配置选项,用于监守者伤害 - 用于禁用指标收集的
bstats配置选项 - 语言文件中的击杀命令控制台消息
改进
- 内存安全 - 待处理的攻击通知已限制数量,7 天后过期,并在插件禁用时清除
- 线程安全 - 通知存储使用
ConcurrentHashMap和同步列表 - Folia 调度器 - 为加入通知和更新检查提供正确的
runDelayed支持 - 语言管理器 - 缓存英文回退内容,避免每次查找消息时都进行磁盘读取
- 配置 - 仅保留英文注释,移除了 ASCII 艺术标题
修复
- 音波 - 在此之前,监守者音波(
SONIC_BOOM伤害原因)未被阻止 - 通知泄漏 - 从未重新加入的玩家不再无限累积攻击尝试
技术细节
- 提取了
PetProtectionListener、KillCommandListener、PlayerJoinListener - 提取了
PluginSettings、ColorUtil、MessageService、PetOwnerInfo - bStats 3.2.1,通过 maven-shade-plugin 进行包重定位
配置
# v1.3 中的新选项
immortal-from-sonic-boom: true
bstats: true
兼容性
- Minecraft: 1.16.5 - 1.21.11
- 服务器软件: Bukkit, Spigot, Paper, Purpur, Folia
- Java: 8+
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。

评论 0
登录后参与评分
还没有评论,来抢沙发吧