GriefPreventionShop
一款简洁、强大且完全可配置的 GriefPrevention 领地模块插件扩展,专为性能、灵活性和实际服务器使用场景而打造。
该插件允许玩家通过现代化的图形用户界面(GUI)购买领地区块,并完全集成基于 Vault 的经济系统。
✨ 特性
-
? 自定义美学风格
采用独特的视觉风格设计,使用青/红色潜影盒以及蜡烛等细微元素——告别千篇一律的通用菜单。
-
? 动态玩家状态显示
GUI 中实时显示玩家头像:
-
? Discord Webhook 集成
将异步购买日志直接发送至 Discord,包含玩家信息和头像。
-
? 领地历史系统
玩家可通过 /claimhistory 命令在整洁的 GUI 中查看最近 50 次购买记录。
-
? 声音反馈系统
完全可配置的声音效果:
- 成功 → 升级风格的反馈音效
- 错误 → 清晰的失败提示音
-
⚙️ 一致的符号设计
在菜单和消息中使用独特的 &e♯ 符号,营造精致统一的视觉感受。
-
⚡ 异步性能引擎
日志记录、Discord Webhook 发送和历史查询均采用异步处理,避免 TPS 下降。
-
? 完全可配置
- GUI 布局
- 消息内容(聊天栏/标题/动作条)
- 价格
- 音效
- 前缀与颜色(支持 HEX 色值)
-
? 自定义数量系统
玩家可通过聊天输入自定义购买数量,并具备超时保护机制。
-
? 智能验证系统
处理以下情况:
? 依赖项
本插件需要以下插件支持:
- Vault (经济 API)
- GriefPrevention
- GriefPrevention3D (支持 Folia)
请确保已安装上述插件,否则本插件将自动禁用自身。
?️ 权限与命令
| 命令 |
权限 |
描述 |
/gpshop |
griefpreventionshop.use |
打开领地商店 |
/claimhistory |
griefpreventionshop.history |
查看购买历史 |
/gpshop reload |
griefpreventionshop.admin |
重载所有配置文件 |
?️ 安装设置
- 安装 Vault 和 GriefPrevention
- 将
GriefPreventionShop.jar 放入 /plugins 文件夹
- 配置
config.yml(价格、前缀等)
- (可选)在配置文件中添加 Discord Webhook
- 运行
/gpshop reload
即可开始使用。
? 配置文件说明
config.yml → 主要设置(价格、前缀、货币)
messages.yml → 所有消息内容(支持多格式)
shop-menu.yml → GUI 布局(完全可定制)
⚠️ 菜单文件特意保持灵活性——你可以按照自己的喜好自由设计。
? 日志系统
? 技术支持
需要帮助或想报告问题?
⚠️ 注意事项
- 支持 Paper / Spigot
- 兼容 新旧版本 Minecraft
- 注重性能优化(无主线程阻塞)
? 结语
这款插件专为那些不满足于基础商店功能的服务器打造——
提供整洁的用户界面、完善的系统功能,并在性能上绝不妥协。
GriefPreventionShop
A clean, powerful, and fully configurable claim block shop addon for GriefPrevention built for performance, flexibility, and real server usage.
This plugin allows players to purchase claim blocks through a modern GUI, fully integrated with Vault-based economy systems.
✨ Features
-
? Custom Aesthetic
Designed with a unique visual style using Lime/Red Shulker Boxes and subtle elements like candles — no more generic menus.
-
? Dynamic Player Stats
Real-time player head in GUI showing:
- Skin
- Balance
- Current claim blocks
-
? Discord Webhook Integration
Send async purchase logs directly to Discord with player info and avatar.
-
? Claim History System
Players can view their last 50 purchases using /claimhistory in a clean GUI.
-
? Sound Feedback System
Fully configurable sounds:
- Success → Level-up style feedback
- Error → Clear failure indicators
-
⚙️ Consistent Symbol Design
Uses a unique &e♯ symbol across menus and messages for a polished feel.
-
⚡ Async Performance Engine
Logging, Discord webhooks, and history are handled asynchronously to avoid TPS drops.
-
? Fully Configurable
- GUI layout
- Messages (chat/title/actionbar)
- Prices
- Sounds
- Prefix & colors (HEX supported)
-
? Custom Amount System
Players can enter custom claim amounts via chat with timeout protection.
-
? Smart Validation System
Handles:
- Invalid input
- Timeout
- Insufficient balance
- Missing dependencies
? Dependencies
This plugin requires:
- Vault (Economy API)
- GriefPrevention
- GriefPrevention3D (Folia Supported)
Make sure both are installed, otherwise the plugin will automatically disable itself.
?️ Permissions & Commands
| Command |
Permission |
Description |
/gpshop |
griefpreventionshop.use |
Open the claim shop |
/claimhistory |
griefpreventionshop.history |
View purchase history |
/gpshop reload |
griefpreventionshop.admin |
Reload all configs |
?️ Setup
- Install Vault and GriefPrevention
- Drop
GriefPreventionShop.jar into /plugins
- Configure
config.yml (price, prefix, etc.)
- (Optional) Add Discord webhook in config
- Run
/gpshop reload
You're ready to go.
? Configuration
config.yml → Main settings (price, prefix, currency)
messages.yml → All messages (multi-format supported)
shop-menu.yml → GUI layout (fully customizable)
⚠️ The menu file is intentionally flexible — you can design it your own way.
? Logging System
? Support
Need help or want to report something?
⚠️ Notes
- Supports Paper / Spigot
- Designed to work on both modern and older versions
- Built with performance in mind (no main-thread blocking)
? Final Words
This plugin is made for servers that want more than just a basic shop —
clean UI, proper systems, and zero compromise on performance.
评论 0
登录后参与评分
还没有评论,来抢沙发吧