DungeonKit
DungeonKit 是一款 Paper 插件,为实例化副本(instanced dungeons)添加了完整的装备包系统,包含副本内的升级机制和通关奖励。管理员可以将任意套装保存为可重复使用的装备包,玩家通过简洁的图形界面选择自己的装备包,并在副本开始时自动应用。在过程中,玩家可以在升级站强化装备,并在清除副本后领取奖励。
功能特性
- 装备包系统 — 将任意物品栏保存为命名的装备包(
kits.yml),并立即发放给玩家。
- 装备包选择 GUI — 玩家可在箱子菜单中浏览可用装备包,每个套装的物品描述预览均清晰可见。
- ⚔️ 副本内升级 — 升级站可将随机现有附魔提升一级(尊重原版最高等级限制),每个装备包在每个副本中仅可使用一次。
- 通关奖励 — 向玩家发放金钱(Vault)、物品或控制台命令作为奖励——每个副本仅限一次(延迟至玩家身处已定义的世界且库存/经济数据保留时发放)。
- 触发方块 — 使用一条命令即可将任意方块绑定为装备包分发器或升级站。
- 副本级控制 — 在
dungeons.yml 中按副本 ID 启用或禁用装备包。
- 热重载 — 无需重启服务器即可重新加载配置文件。
- Vault 经济支持 — 可选地为基于 Vault 的经济系统提供金钱奖励。
要求
- 运行版本 26.1.2 的 Minecraft Paper 服务器(或兼容分支)
- Java 21+
- (可选)Vault + 经济类插件,用于金钱奖励
- 专为与创建独立副本世界的实例化副本插件配合工作而设计(世界名称以 8 位字符的实例后缀结尾,例如
amphitheatre_a1b2c3d4)
安装
- 确保在同一 26.1.2 版本上安装了
- 下载最新的
DungeonKit jar 文件。
- 将 jar 文件放入服务器的
plugins/ 文件夹中。
- 重启服务器。插件会在
plugins/DungeonKit/ 下创建其数据文件夹。
- (可选)如果你想要金钱奖励,请安装 Vault 和经济类插件。
设置
所有配置均位于 plugins/DungeonKit/ 中。插件在首次启动时会自动生成配置文件。
- 创建你的装备包
让管理员装备好要保存的套装(盔甲、武器、工具、药水、食物等),然后运行:
/dkitsave <kitname>
物品栏将被存储在 kits.yml 中,并立即在装备包菜单中可用。应用装备包时,盔甲会恢复到正确的槽位。
- 启用副本(
dungeons.yml)
列出每个副本的 副本 ID(即不带尾部实例后缀的世界名称),并设置 enabled:
dungeons:
amphitheatre:
enabled: true
gladiator_pit:
enabled: false
- 配置奖励(
rewards.yml)
定义奖励键并通过命令或触发器发放。支持三种奖励类型——金钱(需要 Vault)、物品和控制台命令:
rewards:
default:
type: MONEY
amount: 500
hardmode:
type: ITEM
item: NETHERITE_INGOT
qty: 1
bossclear:
type: COMMAND
cmd: "give %player% diamond 3"
- (可选)放置触发方块
查看你想使用的方块,然后运行以下命令之一:
/dkittrigger <kitname> — 右键点击该方块即可获得该装备包
/dkittrigger upgrade — 右键点击该方块可升级一个随机的附魔物品
触发绑定保存在 triggers.yml 中。
- 连接自动装备包和自动奖励(InstancedDungeons)
在每个副本的 commands.yml 中(位于你的副本插件文件夹内),首先确保文件顶部的 自定义命令部分已启用。然后添加这两个钩子:
自动装备包 — 当副本开始且玩家进入实例时触发:
commands:
- event: on-player-start-dungeon-command
executor: CONSOLE
audience: NONE
run:
- "dkitgive"
自动奖励 — 当副本完成时触发:
- event: on-player-complete-dungeon-command
executor: CONSOLE
audience: NONE
run:
- "dkitreward <dungeon_name> <player>"
<dungeon_name> 是副本的名称(用作奖励键),<player> 是完成副本的玩家。奖励将在短暂的 5 秒缓冲期后发放,此时玩家已回到主大厅,拥有真实的库存/经济数据。
命令
| 命令 |
描述 |
权限 |
/dkitsave <kitname> |
将当前物品栏保存为永久装备包 |
dungeonkits.admin |
/dkitgive <kitname> |
给予/应用装备包(控制台执行时无参数可向处于启用副本中的玩家分发装备包) |
dungeonkits.admin |
/dkitmenu |
打开装备包选择 GUI |
dungeonkit.player |
/dkitupgrade <buttonId> |
升级你装备包中的一个随机附魔物品 |
dungeonkits.admin |
/dkitreward <rewardKey> |
领取副本通关奖励 |
dungeonkits.admin |
| `/dkittrigger <kitname |
upgrade>` |
将你正在查看的方块绑定为触发器 |
/dkitreload |
重新加载 kits.yml 和 playerkits.yml |
dungeonkits.admin |
/dungeonreload |
重新加载 dungeons.yml |
dungeonkits.admin |
权限
dungeonkits.admin — 访问所有管理员命令(默认:op)
dungeonkit.player — 允许玩家打开装备包菜单(默认:所有玩家)
提示: 请将 dungeonkits.admin 仅限工作人员使用。dungeonkit.player 默认授予所有人,但仍可通过权限插件(如 LuckPerms)针对单个玩家或组进行覆盖。
使用方法
- 管理员使用
/dkitsave 保存套件,在 dungeons.yml 中启用地牢,并在 rewards.yml 中定义奖励。
- 玩家通过
/dkitmenu 打开套件菜单并点击某个套件以进行选择。其选择会被保存,并在不同会话间保持持久化。
- 当地牢流程开始时,玩家所选的套件会自动应用。将你的地牢插件的开始事件挂钩到从控制台(无参数)运行
/dkitgive,以便向所有启用地牢世界中的玩家分发套件。未选择套件的玩家将获得第一个可用的套件。
- 玩家与升级触发方块交互以提升一件随机附魔物品——每个站点、每次流程限一次。
- 流程完成后,玩家通过
/dkitreward <rewardKey>(或触发器/命令挂钩)领取奖励——每次流程限一次。
注意
- 升级和奖励领取均为单次实例内有效,并在流程结束时重置。
- 套件选择按玩家保存,并在不同会话和重启之间保持持久化。
- 命令奖励中可使用
%player% 占位符。
- 金钱奖励需要安装 Vault 及兼容的经济插件;如果未安装 Vault,则会自动跳过金钱奖励。
DungeonKit
DungeonKit is a Paper plugin that adds a complete kit system with in-run upgrades and completion rewards to instanced dungeons. Admins save any loadout as a reusable kit, players pick their kit from a clean GUI, and the kit is applied automatically when a dungeon run begins. Along the way players can power up their gear at upgrade stations and claim rewards when they clear the dungeon.
Features
- Kit System — Save any inventory as a named kit (
kits.yml) and give it to players instantly.
- ️ Kit Selection GUI — Players browse available kits in a chest menu with item lore previews of each loadout.
- ⚔️ In-run Upgrades — Upgrade stations raise a random existing enchantment by one level (respecting vanilla max levels), once per station per run.
- Completion Rewards — Reward players with money (Vault), items, or console commands — once per dungeon run (delayed until there in a defined world where inventory/economy keeps).
- Trigger Blocks — Bind any block to act as a kit dispenser or an upgrade station with a single command.
- ️ Per-dungeon Control — Enable or disable kits per dungeon ID in
dungeons.yml.
- Live Reload — Reload configuration files without restarting the server.
- Vault Economy Support — Optional money rewards for Vault-based economies.
Requirements
- A Minecraft Paper server (or compatible fork) running 26.1.2
- Java 21+
- (Optional) Vault + an economy plugin, for money rewards
- Built to work alongside an instanced-dungeons plugin that creates per-run worlds (world names ending in an 8-character instance suffix, e.g.
amphitheatre_a1b2c3d4)
Installation
- Ensure is installed on the same 26.1.2 version
- Download the latest
DungeonKit jar.
- Drop the jar into your server's
plugins/ folder.
- Restart the server.The plugin creates its data folder at
plugins/DungeonKit/.
- (Optional) Install Vault and an economy plugin if you want money rewards.
Setup
All configuration lives in plugins/DungeonKit/. The plugin generates its config files automatically on first start.
- Create your kits
Have an admin equip the loadout to save (armor, weapons, tools, potions, food, etc.), then run:
/dkitsave <kitname>
The inventory is stored in kits.yml and immediately becomes available in the kit menu. Armor is restored to the correct slots when a kit is applied.
- Enable dungeons (
dungeons.yml)
List each dungeon by its dungeon ID (the world name without the trailing instance suffix) and set enabled:
dungeons:
amphitheatre:
enabled: true
gladiator_pit:
enabled: false
- Configure rewards (
rewards.yml)
Define reward keys and hand them out via commands or triggers. Three reward types are supported — money (requires Vault), items, and console commands:
rewards:
default:
type: MONEY
amount: 500
hardmode:
type: ITEM
item: NETHERITE_INGOT
qty: 1
bossclear:
type: COMMAND
cmd: "give %player% diamond 3"
- (Optional) Place trigger blocks
Look at the block you want to use, then run one of:
/dkittrigger <kitname> — right-clicking the block gives that kit
/dkittrigger upgrade — right-clicking the block upgrades a random enchanted item
Trigger bindings are saved in triggers.yml.
- Wire up auto-kits and auto-rewards (InstancedDungeons)
In each dungeon's commands.yml (inside your dungeon plugin's folder), first make sure the custom commands section is enabled at the top of the file. Then add both hooks:
Auto-kit — fires when a run starts and players enter the instance:
commands:
- event: on-player-start-dungeon-command
executor: CONSOLE
audience: NONE
run:
- "dkitgive"
Auto-reward — fires when the dungeon is completed:
- event: on-player-complete-dungeon-command
executor: CONSOLE
audience: NONE
run:
- "dkitreward <dungeon_name> <player>"
<dungeon_name> is the dungeon's name (used as the reward key) and <player> is the completing player. The reward is paid after a short 5-second buffer, so the player is back in the main lobby with their real inventory/economy.
Commands
| Command |
Description |
Permission |
/dkitsave <kitname> |
Save your current inventory as a permanent kit |
dungeonkits.admin |
/dkitgive <kitname> |
Give/apply a kit (console with no args distributes kits to players in enabled dungeons) |
dungeonkits.admin |
/dkitmenu |
Open the kit selection GUI |
dungeonkit.player |
/dkitupgrade <buttonId> |
Upgrade a random enchanted item in your kit |
dungeonkits.admin |
/dkitreward <rewardKey> |
Claim a dungeon completion reward |
dungeonkits.admin |
| `/dkittrigger <kitname |
upgrade>` |
Bind the block you are looking at as a trigger |
/dkitreload |
Reload kits.yml and playerkits.yml |
dungeonkits.admin |
/dungeonreload |
Reload dungeons.yml |
dungeonkits.admin |
Permissions
dungeonkits.admin — access to all admin commands (default: op)
dungeonkit.player — allows players to open the kit menu (default: all players)
Tip: Keep dungeonkits.admin for staff only. dungeonkit.player is granted to everyone by default, but can still be overridden per-player or per-group with a permissions plugin (e.g. LuckPerms).
How to Use
- Admins save kits with
/dkitsave, enable dungeons in dungeons.yml, and define rewards in rewards.yml.
- Players open the kit menu with
/dkitmenu and click a kit to select it. Their choice is saved and persists across sessions.
- When a dungeon run starts, the player's chosen kit is applied automatically. Hook your dungeon plugin's start event to run
/dkitgive from the console (no arguments) to distribute kits to every player in enabled dungeon worlds. Players who haven't chosen a kit receive the first available kit.
- Players interact with upgrade trigger blocks to improve a random enchanted item — once per station, per run.
- On completion, players claim their reward via
/dkitreward <rewardKey> (or a trigger/command hook) — once per run.
Notes
- Upgrades and reward claims are per-instance and reset when the run ends.
- Kit choices are saved per player and persist across sessions and restarts.
- The
%player% placeholder is available in command rewards.
- Money rewards require Vault and a compatible economy plugin; they are skipped automatically if Vault is not installed.
评论 0
登录后参与评分
还没有评论,来抢沙发吧