
文本版本
**一款功能全面的 Minecraft Bukkit 插件,通过好友列表、视觉指示器、所有权转移以及对不活跃玩家的自动清理功能,自动保护容器。**? 核心保护功能
自动容器保护
- 即时保护:玩家放置的所有容器都会受到自动保护
- 广泛的容器支持:保护 30 多种容器类型,包括:
- 存储类:箱子、陷阱箱、木桶、末影箱
- 所有潜影盒:全部 17 种颜色(可配置)
- 处理类:熔炉、高炉、烟熏炉、酿造台
- 红石类:发射器、投掷器、漏斗
- 实用类:信标、铁砧、附魔台、讲台、唱片机等
- 双箱支持:自动保护双箱的两半部分
- SQLite 数据库:使用高效的索引进行持久化的保护数据存储
访问控制系统
- 仅限所有者访问:默认情况下,只有放置容器的玩家才能访问
- 管理员绕过:可配置的管理员覆盖权限
chestprotect.admin.bypass - 破坏保护:防止未经授权的玩家破坏受保护的容器
? 好友系统
全局好友列表
- 添加好友:
/chestprotect friend add <player>- 将玩家添加到你的好友列表 - 移除好友:
/chestprotect friend remove <player>- 从你的列表中移除好友 - 查看好友:
/chestprotect friend list- 查看所有好友 - 清空列表:
/chestprotect friend clear- 一次性移除所有好友
好友访问权限优势
- 全局访问:好友可以访问你所有的受保护容器
- 离线玩家支持:即使好友不在线也可以添加
- 缓存性能:好友列表经过缓存,便于快速检查访问权限
- 数据库持久化:好友关系在服务器重启后依然存在
? 视觉指示器
粒子效果系统
- 实时视觉反馈:通过粒子效果查看保护状态
- 颜色编码指示器:
- ? 绿色粒子(快乐村民)- 你拥有的容器
- ? 蓝色粒子(附魔)- 朋友与你共享的容器
- ? 红色粒子(愤怒村民)- 你无法访问的保护容器
- 智能显示:仅在玩家 10 格范围内显示粒子效果
- 性能优化:每 2 秒更新一次,以最小化卡顿
- 可配置:在配置文件中启用或禁用视觉指示器
? 所有权转移
容器转移系统
-
简易转移:
/chestprotect transfer <玩家>- 将所有权转移给其他玩家 -
注视目标: 只需注视你想要转移的容器(无需坐标)
-
即时转移: 所有权立即变更,数据库同步更新
-
通知提示: 双方玩家均会收到确认消息
-
验证:确保你拥有该容器且目标玩家存在
? 自动清理
玩家不活跃管理
- 最后访问时间追踪:记录容器最后一次被打开的时间
- 自动过期处理:移除超过 30 天未使用的容器的保护(可配置)
- 后台清理:每 24 小时自动运行一次
- 手动清理:管理员可通过
/chestprotect cleanup命令触发清理 - 世界清理:移除已删除世界中的容器
⚙️ 高级配置
漏斗控制
- 可配置的漏斗访问权限:选择受保护的容器是否允许漏斗抽取/插入物品
- 完全阻止方块交互:当禁用时,漏斗将无法与受保护的容器进行任何交互
- 支持所有容器类型:适用于箱子、熔炉、发射器以及所有其他类型的容器
自定义消息
- 颜色代码支持: 所有消息均完整支持
&颜色代码 - 动态占位符:
{container}占位符显示实际的容器类型 - 多语言就绪: 所有消息均可在 config.yml 中配置
- 管理员通知: 为管理员绕过操作提供独立的消息
保护设置
- 管理员绕过开关: 启用/禁用管理员覆盖权限
- 双人箱保护: 自动保护双人箱的两半部分
- 潜影盒开关: 启用/禁用潜影盒保护
- 放置通知: 配置玩家是否看到保护消息
? 信息与统计
玩家信息
- 保护统计:
/chestprotect info显示:- 你保护的容器数量
- 你列表中的好友数量
- 自动清理过期设置
- 数据库查询: 来自数据库的实时统计
?️ 安全特性
数据库安全
- SQLite 后端: 轻量级、可靠的数据库存储
- 预编译语句: 防止 SQL 注入攻击
- 事务安全: 原子操作以确保数据一致性
- 索引优化: 即使有成千上万个容器也能快速查找
权限系统
- 细粒度权限:为每个功能提供独立的权限控制
- 默认访问:所有玩家默认拥有基本功能的访问权限
- 管理员控制:正确保护仅限管理员使用的命令
- 权限继承:逻辑化的权限层级结构
? 性能特性
优化系统
- 好友列表缓存:将好友列表缓存在内存中,实现即时访问
- 高效数据库查询:使用索引数据库与优化的 SQL 语句
- 最小视觉影响:视觉指示器仅适用于附近容器
- 异步任务:清理操作不会影响服务器性能
资源管理
- 轻量级设计:极低的内存占用
- 智能缓存:仅缓存频繁访问的数据
- 自动清理:后台任务防止数据库膨胀
? 命令参考
| 命令 | 描述 | 权限 |
|---|---|---|
/chestprotect |
显示帮助菜单 | chestprotect.use |
/chestprotect friend add <player> |
添加好友 | chestprotect.friend |
/chestprotect friend remove <player> |
移除好友 | chestprotect.friend |
/chestprotect friend list |
列出好友 | chestprotect.friend |
/chestprotect friend clear |
清空好友 | chestprotect.friend |
/chestprotect transfer <player> |
转移所有权 | chestprotect.transfer |
/chestprotect info |
查看统计信息 | chestprotect.info |
/chestprotect cleanup |
清理过期的容器 | chestprotect.admin.cleanup |
/chestprotect reload |
重载配置 | chestprotect.admin.reload |
别名:/cp、/protect、/lockchest 可用作 /chestprotect 的替代命令。
? 技术要求
- Minecraft 版本:1.21+(API 版本 1.21)
- 服务器软件:Bukkit, Spigot, Paper
- 依赖项:SQLite JDBC 驱动程序(通常已包含)
- Java 版本:Java 17+(符合 Minecraft 1.21 的要求)
? 安装步骤
- 下载 ChestProtect.jar
- 将其放入服务器的
/plugins/文件夹中 - 重启服务器以生成默认配置文件
- 在
/plugins/ChestProtect/config.yml中自定义设置 - 使用
/chestprotect reload重载配置
✨ 主要优势
- 零配置:开箱即用,拥有合理的默认设置
- 用户友好:简单的命令和清晰的反馈消息
- 管理员友好:全面的管理工具和控制选项
- 注重性能:针对玩家众多的服务器进行了优化
- 功能丰富:无需复杂操作即可实现高级功能
- 可靠稳定:健壮的数据库存储和错误处理机制
该插件提供的功能完全基于上述说明——不多也不少。此处描述的每个功能均已经过充分测试并完全可用。
| 广告: |

Text version
**A comprehensive Minecraft Bukkit plugin that automatically protects containers with friend lists, visual indicators, ownership transfer, and automatic cleanup for inactive players.**? Core Protection Features
Automatic Container Protection
- Instant Protection: All containers are automatically protected when placed by players
- Extensive Container Support: Protects 30+ container types including:
- Storage: Chests, Trapped Chests, Barrels, Ender Chests
- All Shulker Boxes: All 17 colors (configurable)
- Processing: Furnaces, Blast Furnaces, Smokers, Brewing Stands
- Redstone: Dispensers, Droppers, Hoppers
- Utility: Beacons, Anvils, Enchanting Tables, Lecterns, Jukeboxes, and more
- Double Chest Support: Automatically protects both halves of double chests
- SQLite Database: Persistent protection storage with efficient indexing
Access Control System
- Owner-Only Access: Only the player who placed the container can access it by default
- Admin Bypass: Configurable admin override with permission
chestprotect.admin.bypass - Break Protection: Prevents unauthorized players from breaking protected containers
? Friend System
Global Friend Lists
- Add Friends:
/chestprotect friend add <player>- Add players to your friend list - Remove Friends:
/chestprotect friend remove <player>- Remove players from your list - View Friends:
/chestprotect friend list- See all your friends - Clear List:
/chestprotect friend clear- Remove all friends at once
Friend Access Benefits
- Global Access: Friends can access ALL your protected containers
- Offline Player Support: Add friends even when they're not online
- Cached Performance: Friend lists are cached for fast access checking
- Database Persistence: Friend relationships survive server restarts
? Visual Indicators
Particle Effects System
- Real-time Visual Feedback: See protection status with particle effects
- Color-Coded Indicators:
- ? Green Particles (Happy Villager) - Containers you own
- ? Blue Particles (Enchant) - Containers your friends shared with you
- ? Red Particles (Angry Villager) - Protected containers you can't access
- Smart Display: Only shows particles within 10 blocks of players
- Performance Optimized: Updates every 2 seconds to minimize lag
- Configurable: Enable/disable visual indicators in config
? Ownership Transfer
Container Transfer System
- Easy Transfer:
/chestprotect transfer <player>- Transfer ownership to another player - Look-at-Target: Simply look at the container you want to transfer (no coordinates needed)
- Instant Transfer: Ownership changes immediately with database update
- Notifications: Both players receive confirmation messages
- Validation: Ensures you own the container and target player exists
? Automatic Cleanup
Inactive Player Management
- Last Access Tracking: Records when containers were last opened
- Automatic Expiry: Removes protections from containers unused for 30+ days (configurable)
- Background Cleanup: Runs automatically every 24 hours
- Manual Cleanup: Admins can trigger cleanup with
/chestprotect cleanup - World Cleanup: Removes containers from deleted worlds
⚙️ Advanced Configuration
Hopper Control
- Configurable Hopper Access: Choose whether hoppers can extract/insert items from protected containers
- Complete Block Prevention: When disabled, hoppers cannot interact with protected containers at all
- All Container Types: Works with chests, furnaces, dispensers, and all other containers
Customizable Messages
- Color Code Support: Full
&color code support in all messages - Dynamic Placeholders:
{container}placeholder shows the actual container type - Multilingual Ready: All messages configurable in config.yml
- Admin Notifications: Separate messages for admin bypass actions
Protection Settings
- Admin Bypass Toggle: Enable/disable admin override permissions
- Double Chest Protection: Auto-protect both halves of double chests
- Shulker Box Toggle: Enable/disable shulker box protection
- Placement Notifications: Configure whether players see protection messages
? Information & Statistics
Player Information
- Protection Stats:
/chestprotect infoshows:- Number of containers you have protected
- Number of friends in your list
- Auto-cleanup expiry setting
- Database Queries: Real-time statistics from the database
?️ Security Features
Database Security
- SQLite Backend: Lightweight, reliable database storage
- Prepared Statements: Prevents SQL injection attacks
- Transaction Safety: Atomic operations for data consistency
- Index Optimization: Fast lookups even with thousands of containers
Permission System
- Granular Permissions: Separate permissions for each feature
- Default Access: Basic features available to all players by default
- Admin Controls: Admin-only commands properly protected
- Permission Inheritance: Logical permission hierarchy
? Performance Features
Optimization Systems
- Friend List Caching: Friend lists cached in memory for instant access
- Efficient Database Queries: Indexed database with optimized SQL
- Minimal Visual Impact: Visual indicators limited to nearby containers only
- Asynchronous Tasks: Cleanup operations don't impact server performance
Resource Management
- Lightweight Design: Minimal memory footprint
- Smart Caching: Only caches frequently accessed data
- Automatic Cleanup: Background tasks prevent database bloat
? Commands Reference
| Command | Description | Permission |
|---|---|---|
/chestprotect |
Show help menu | chestprotect.use |
/chestprotect friend add <player> |
Add friend | chestprotect.friend |
/chestprotect friend remove <player> |
Remove friend | chestprotect.friend |
/chestprotect friend list |
List friends | chestprotect.friend |
/chestprotect friend clear |
Clear friends | chestprotect.friend |
/chestprotect transfer <player> |
Transfer ownership | chestprotect.transfer |
/chestprotect info |
View statistics | chestprotect.info |
/chestprotect cleanup |
Clean expired containers | chestprotect.admin.cleanup |
/chestprotect reload |
Reload config | chestprotect.admin.reload |
Aliases: /cp, /protect, /lockchest work for /chestprotect
? Technical Requirements
- Minecraft Version: 1.21+ (API version 1.21)
- Server Software: Bukkit, Spigot, Paper
- Dependencies: SQLite JDBC driver (usually included)
- Java Version: Java 17+ (matches Minecraft 1.21 requirements)
? Installation
- Download ChestProtect.jar
- Place in your server's
/plugins/folder - Restart server to generate default configuration
- Customize settings in
/plugins/ChestProtect/config.yml - Reload config with
/chestprotect reload
✨ Key Benefits
- Zero Configuration: Works immediately with sensible defaults
- User Friendly: Simple commands and clear feedback messages
- Admin Friendly: Comprehensive admin tools and controls
- Performance Conscious: Optimized for servers with many players
- Feature Rich: Advanced functionality without complexity
- Reliable: Robust database storage and error handling
This plugin provides exactly what's implemented - no more, no less. Every feature described here is fully functional and tested.
| Advertisement: |
下载 ChestProtect
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ChestProtect
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ChestProtect
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ChestProtect
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ChestProtect
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ChestProtect
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ChestProtect
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ChestProtect
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ChestProtect
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ChestProtect
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
已更改!将 /cp 别名改为 /chest
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。
评论 0
登录后参与评分
还没有评论,来抢沙发吧