⚔️ SpaceDuel
SpaceDuel 是 SpacePvP 的一个强力插件,引入了全面的 1vs1 决斗系统。允许玩家通过图形用户界面(GUI)或命令互相挑战,支持竞技场和随机位置两种战斗模式。
✨ 功能列表 ✨
✅ 直接挑战 — 通过命令或可自定义的 GUI 向任何玩家发起挑战。
✅ 两种游戏模式 — 支持 竞技场(预建)和 随机位置(野外)决斗。
✅ 交互式聊天 — 完全可点击的 JSON 聊天消息([接受] / [拒绝]),实现即时互动。
✅ 智能 GUI — 支持 自定义头颅(通过 basehead-<纹理>)、PlaceholderAPI 以及基于权限的锁定功能。
✅ 智能跳过 — 如果玩家仅拥有单一模式的权限,则自动跳过菜单。
✅ 完全匹配控制 — 为决斗提供独立设置:启用/禁用 再生效果、配置 套装、清空物品栏以及 药水效果。
✅ 安全检查 — 如果目标玩家正忙、处于排队状态或 没有可用竞技场,则阻止邀请。
✅ 集成支持 — 与 SpacePvP 系统(统计数据、冷却时间、战斗检测)无缝协作。
✅ 支持颜色格式,包括 HEX、Legacy (&) 和 MiniMessage。
✨ 命令参考 ✨
⚔️ 决斗命令 (点击展开)
/duel <player> — 打开针对特定玩家的决斗选择 GUI。
/duel <player> arena — 发送 Arena 模式的快速邀请。
/duel <player> default — 发送 随机地点 模式的快速邀请。
/duel accept — 接受最近收到的邀请。
/duel deny — 拒绝最近收到的邀请。
/duel reload — 重新加载插件配置。
✨ 权限说明 ✨
主要权限:
spaceduel.command.duel — 允许使用主命令 /duel。
spaceduel.command.reload — 允许重新加载配置。
游戏模式权限:
spaceduel.type.arena — 允许发送 Arena 模式的决斗邀请。
spaceduel.type.default — 允许发送 随机地点 模式的决斗邀请。
✨ 配置亮点 ✨
游戏设置:
SpaceDuel 允许你为决斗场景覆盖默认的 SpacePvP 设置:
- 生命再生: 开启/关闭战斗结束后的竞技场生命再生(可节省简单对决的资源)。
- 药水效果: 在决斗开始时应用自定义药水效果(例如:速度 II、发光)。
- 装备包: 强制使用特定的装备包或默认装备包。
- 延迟: 配置比赛结束后的传送延迟时间。
菜单自定义:
你可以为 GUI 中的头像使用自定义纹理,无需任何资源包!
menu.yml 中的示例:
material: "basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUv..."
✨ 依赖项 ✨
必需:
* SpacePvP(核心插件系统) v4.4
软依赖(可选):
* PlaceholderAPI — 用于在 GUI/消息中显示统计数据和名称。
* LuckPerms — 用于在聊天邀请中显示前缀和等级。
? 安装方法
1. 安装 SpacePvP 并确保其正常运行。
2. 下载 SpaceDuel。
3. 将 .jar 文件放入服务器的 plugins 文件夹中。
4. 重启服务器。
5. 根据喜好配置 `settings.yml`、`messages.yml` 和 `menu.yml`!
⚔️ SpaceDuel
SpaceDuel is a powerful add-on for SpacePvP that introduces a comprehensive 1vs1 dueling system. Allow your players to challenge each other using a GUI or commands, with support for both Arena and Random Location battles.
✨ Feature List ✨
✅ Direct Challenges — Challenge any player via command or a customizable GUI.
✅ Two Game Modes — Support for Arena (pre-built) and Random Location (wild) duels.
✅ Interactive Chat — Fully clickable JSON chat messages ([Accept] / [Deny]) for instant interaction.
✅ Smart GUI — Supports Custom Skulls (via basehead-<texture>), PlaceholderAPI, and permission-based locking.
✅ Smart Skipping — Automatically skips the menu if the player only has permission for one mode.
✅ Full Match Control — Separate settings for duels: enable/disable Regeneration, configure Kits, inventory clearing, and Potion Effects.
✅ Safety Checks — Prevents invites if the target is busy, in a queue, or if no arenas are available.
✅ Integration — Works seamlessly with SpacePvP systems (stats, cooldowns, combat checks).
✅ Support for colors in HEX, Legacy (&), and MiniMessage formats.
✨ Command Reference ✨
⚔️ Duel Commands (Click to expand)
/duel <player> — Open the duel selection GUI for a specific player.
/duel <player> arena — Send a quick invite for an Arena duel.
/duel <player> default — Send a quick invite for a Random Location duel.
/duel accept — Accept the last received invite.
/duel deny — Deny the last received invite.
/duel reload — Reload the plugin configuration.
✨ Permissions ✨
Main Permissions:
spaceduel.command.duel — Allows access to the main /duel command.
spaceduel.command.reload — Allows reloading the configuration.
Game Mode Permissions:
spaceduel.type.arena — Allows sending invites for Arena duels.
spaceduel.type.default — Allows sending invites for Random Location duels.
✨ Configuration Highlights ✨
Game Settings:
SpaceDuel allows you to override default SpacePvP settings specifically for duels:
- Regeneration: Enable/Disable arena regeneration after the fight (saves resources for simple duels).
- Effects: Apply custom potion effects (e.g., Speed II, Glowing) when the duel starts.
- Kits: Force specific kits or use the default one.
- Delays: Configure teleport delays after the match ends.
Menu Customization:
You can use custom textures for heads in the GUI without any texture pack!
Example in menu.yml:
material: "basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUv..."
✨ Dependencies ✨
Required:
* SpacePvP (Core plugin system) v4.4
Soft Dependencies (Optional):
* PlaceholderAPI — For displaying stats and names in the GUI/Messages.
* LuckPerms — For displaying prefixes and ranks in chat invites.
? Installation
1. Install SpacePvP and ensure it is running correctly.
2. Download SpaceDuel.
3. Place the .jar file in your server's plugins folder.
4. Restart the server.
5. Configure `settings.yml`, `messages.yml`, and `menu.yml` to your liking!
评论 0
登录后参与评分
还没有评论,来抢沙发吧