EnchantShop

一个简单、强大且完全可配置的基于GUI的商店,用于使用服务器经济系统来附魔物品。

资源图片
# EnchantShop 一个完整的附魔系统,带有 GUI 商店、高风险的附魔赌徒、附魔移除器和强大的管理员工具。 ![Logo](https://cdn.modrinth.com/data/cached_images/d41c85f9d9e28396f458e50b036badd274a3032e.png) [![Requires Vault](https://img.shields.io/badge/Requires-Vault-yellow?style=for-the-badge)](https://www.spigotmc.org/resources/vault.34315/) [![Built for Paper](https://img.shields.io/badge/Built%20For-Paper%201.21+-blue?style=for-the-badge)](https://papermc.io/) 经过与代码恶魔的长时间战斗,EnchantShop 取得了胜利!这个插件为你的玩家提供了一种无缝的方式,用他们辛辛苦苦赚取的游戏内货币来获得他们想要的附魔,从而绕过了原版附魔台的随机性。(是的,我把这写在这里,因为这是我的第一个插件,并且我想向你展示这有多么困难) --- ## 特性 ✨ - **新增!附魔赌徒:** 一个高风险的“两倍或全输”系统!玩家可以赌掉物品上现有的附魔,以有机会赢得一个新的随机附魔,但如果赌注失败,可能会全部失去! - **直观的 GUI 菜单 (`/eshop`):** 主菜单让玩家可以选择经典的、安全的附魔商店和新的、有风险的赌徒。 - **附魔书支持:** 商店适用于直接附魔物品和创建可交易的附魔书。 - **附魔移除系统 (`/disenchant`):** 独立的 GUI 允许玩家以可配置的退款移除附魔。 - **强大的管理员工具:** - `/enchanter <玩家> <附魔> <等级>`: 立即应用任何附魔。 - `/eshop reload`: 动态重新加载配置文件。 - **深度配置:** 控制所有事情,从费用、赌博几率、黑名单附魔、到最大等级覆盖以及所有消息和声音。 --- ## 安装 ⚙️ **重要提示:** 如果是从旧版本更新,**必须删除你旧的 `config.json`**,以允许新的赌博设置生成。 1. **停止你的服务器。** 2. 从 Modrinth 页面下载最新的 `EnchantShop.jar`。 3. **安装依赖项:** 你必须安装 [Vault](https://www.spigotmc.org/resources/vault.34315/) 并且一个经济插件 (例如 [EssentialsX](https://essentialsx.net/))。 4. 将所有 `.jar` 文件放入你的服务器的 `/plugins` 文件夹中。 5. **启动你的服务器** 以生成新的 `config.json`。 6. 编辑 `config.json` 以满足你的需求,然后使用 `/eshop reload`! --- ## 使用方法 🎮 **对于玩家:** - `/eshop`: 拿着一个物品打开主菜单,然后选择“附魔物品”或“赌博物品”。 - `/disenchant`: 拿着一个附魔的物品打开附魔移除菜单。 **对于管理员:** - `/eshop reload`: 重新加载配置文件。 - `/enchanter <玩家> <附魔> <等级>`: 将附魔给予玩家。 --- ## 配置 🔧 你可以在 `plugins/EnchantShop/config.json` 文件中配置商店的各个方面。 该文件会自动生成默认设置。 ```json { "costFormula": "base_cost * (level * level)", "enchantmentBaseCosts": { "minecraft:sharpness": 1000.0, "minecraft:mending": 10000.0 }, "mainMenuTitle": "&8Main Menu", "successSound": "ENTITY_PLAYER_LEVELUP", "failSound": "ENTITY_VILLAGER_NO", "gambleTickSound": "BLOCK_NOTE_BLOCK_HAT", "gambleWinSound": "ENTITY_FIREWORK_ROCKET_TWINKLE", "gambleLoseSound": "ENTITY_VILLAGER_DEATH", "gambleDoubleSound": "UI_TOAST_CHALLENGE_COMPLETE", "gambleChanceToWinPercent": 50, "gambleChanceForSecondEnchantPercent": 20, "messages": { "prefix": "&8[&6EnchantShop&8] &r", "gamble_no_enchants": "&cThe item you are holding must have at least one enchantment to gamble!", "gamble_win": "&a&lVICTORY! &fYour item has been enchanted with &e{enchant} {level}&f!", "gamble_win_extra": "&6&lJACKPOT! &fYou won an &eEXTRA&f random enchantment!", "gamble_lose": "&c&lDEFEAT! &fAll enchantments on your item have been &cWIPED&f!" }, "perEnchantPermissions": false, "enchantmentBlacklist": [ "minecraft:binding_curse" ], "maxLevelOverrides": {}, "disenchantRefundPercentage": 50.0 } ``` --- ## 权限 🛡️ EnchantShop 有一个强大的权限系统,用于最终控制。 - **`enchantshop.disenchant`**: 允许使用 `/disenchant` 命令。 (默认:true) - **`enchantshop.reload`**: 允许使用 `/eshop reload` 子命令。 (默认:op) - **`enchantshop.enchanter`**: 允许使用 `/enchanter` 管理员命令。 (默认:op) - **`enchantshop.buy.<附魔名称>`**: 如果 `perEnchantPermissions` 启用,则需要购买附魔。 - **`enchantshop.admin`**: 授予所有管理权限的父节点。 --- ## 加入我们的社区! 💬 有任何问题、建议,或者只是想闲聊? 加入 Duckalds' Mods 的官方 Discord 服务器! 点击下面的横幅加入。 [![Join Our Discord!](https://discord.com/api/guilds/1399734531719692318/widget.png?style=banner2)](https://discord.gg/pWMgxggj)