关于 DropGuard
DropGuard 要求玩家在物品离开背包前再次丢弃以进行确认,从而避免贵重装备被意外丢弃。
你可以精确指定受保护的物品范围,依据材质、显示名称、背景故事文本(Lore)、附魔或堆叠数量,或者直接保护所有物品;每位玩家都可以使用自己的语言开启或关闭此确认功能。
亮点
- 二次丢弃确认:受保护的物品绝不会因误操作而离开背包
- 完全可定制的防护:基于材质、名称、Lore、附魔或数量进行保护
- 按玩家独立开关:每位玩家可自行开启或关闭确认提示,设置会在重启后保留
- 按玩家本地化:提示信息以每位玩家客户端的语言显示
兼容性
- Java 21 或更高版本
- Spigot、Paper 和 Folia (1.21+)
- 需要免费的 Nexus 核心插件 → 下载最新的 Nexus(与 DropGuard 一起安装)
功能特性
- 带有可配置超时时间的二次丢弃确认窗口
- 通过材质列表进行保护,支持灵活的匹配模式(
EQUALS、EQUALSIGNORECASE、CONTAINS、STARTSWITH、ENDSWITH、REGEX)
- 通过显示名称、Lore 文本、附魔(任意附魔或特定附魔且需达到最低等级)或堆叠数量进行保护
- “保护一切”主开关,配合全局异常白名单使用
- 按玩家的开关状态持久化存储至数据库,并支持可配置的默认状态(默认开启或默认关闭)
- 通过聊天栏、动作栏以及可配置的声音(音量 & 音调)提供反馈
- 可选的“需要空槽位”行为(背包满时可自由丢弃)
- 按玩家本地化,放置
lang/<language>.yml 文件即可(包含英文和西班牙文)
- 现代化的格式化支持 MiniMessage(渐变、HEX 颜色),同时兼容 Legacy 和 Mixed 模式
- 可插拔式存储后端:File、MongoDB 或 SQL,支持内存或 Redis 缓存,并可选写入回写机制
- 管理员命令用于切换和检查任何玩家的设置,并支持热重载
- 兼容 Folia,支持重载安全(兼容 PlugMan),内置调试模式
示例配置
保护鞘翅、所有下界合金制品、所有剑以及任何自定义命名的物品:
protection:
protect-everything: false
exceptions:
- "DIRT"
- "COBBLESTONE"
materials:
enabled: true
list:
- "ELYTRA"
- "CONTAINS:NETHERITE"
- "ENDSWITH:_SWORD"
names:
enabled: true
any-named: true
命令
/dropguard toggle → 切换你自己的丢弃确认功能
/dropguard status → 查看你的确认功能是开启还是关闭
/dropguard toggle <player> → 切换其他玩家的确认功能(管理员)
/dropguard status <player> → 查看其他玩家的确认功能状态(管理员)
/dropguard reload → 重新加载配置文件和语言文件(管理员)
权限
dropguard.toggle → 切换和查看自己的确认功能(默认:所有人)
dropguard.admin → 管理其他玩家并重载插件(默认:操作员)
为什么选择 DropGuard?
因为一次误触而丢失一套神装或鞘翅,会毁掉玩家的一天。DropGuard 提供了一个轻量级且完全可配置的安全网:你决定哪些物品值得保护,玩家决定是否想要这个提示,并且每个人都能用自己的语言阅读提示,同时保持与最新服务器软件(包括 Folia)的兼容性。
About DropGuard
DropGuard asks players to drop an item a second time to confirm before it leaves their inventory, so valuable gear is never thrown away by accident.
You decide exactly what is protected, by material, display name, lore, enchantment or stack size, or simply everything, and every player can toggle their own confirmation, in their own language.
Highlights
- Re-drop to confirm protected items never leave the inventory by accident
- Fully customizable protection by material, name, lore, enchantment or amount
- Per-player toggle each player turns confirmation on or off, saved across restarts
- Per-player languages messages shown in each player's own client language
Compatibility
- Java 21 or higher
- Spigot, Paper and Folia (1.21+)
- Requires the free Nexus core plugin → Download the latest Nexus (install it alongside DropGuard)
Features
- Re-drop confirmation window with a configurable timeout
- Protect by material list with flexible matchers (
EQUALS, EQUALSIGNORECASE, CONTAINS, STARTSWITH, ENDSWITH, REGEX)
- Protect by display name, lore text, enchantments (any or specific with a minimum level) or stack size
- "Protect everything" master switch with a global exceptions allow-list
- Per-player toggle persisted to storage, with a configurable default state (opt-in or opt-out)
- Feedback via chat, action bar and a configurable sound (sound, volume & pitch)
- Optional "require empty slot" behavior (a full inventory can drop freely)
- Per-player localization, drop a
lang/<language>.yml file (English & Spanish included)
- Modern formatting with MiniMessage (gradients, HEX), plus Legacy and Mixed modes
- Pluggable storage: File, MongoDB or SQL, with in-memory or Redis cache and optional write-behind
- Admin commands to toggle and inspect any player, plus a hot reload
- Folia-safe, reload-safe (PlugMan-friendly), with a built-in debug mode
Example config
Protect Elytras, anything netherite, every sword and any custom-named item:
protection:
protect-everything: false
exceptions:
- "DIRT"
- "COBBLESTONE"
materials:
enabled: true
list:
- "ELYTRA"
- "CONTAINS:NETHERITE"
- "ENDSWITH:_SWORD"
names:
enabled: true
any-named: true
Commands
/dropguard toggle → Toggle your own drop confirmation
/dropguard status → Show whether your confirmation is on or off
/dropguard toggle <player> → Toggle another player's confirmation (admin)
/dropguard status <player> → View another player's confirmation (admin)
/dropguard reload → Reload the configuration and language files (admin)
Permissions
dropguard.toggle → Toggle and view your own confirmation (default: everyone)
dropguard.admin → Manage other players and reload the plugin (default: operators)
Why DropGuard?
Losing a god set or an Elytra to a misclick ruins a player's day. DropGuard adds a lightweight, fully configurable safety net: you choose what is worth protecting, players choose whether they want the prompt, and everyone reads it in their own language, all while staying compatible with the latest server software, including Folia.
评论 0
登录后参与评分
还没有评论,来抢沙发吧