⚔️ EC-DTC — 摧毁核心
EC-DTC 是一款可配置的 Destroy The Core 事件插件,适用于 Minecraft 服务器。
玩家竞相破坏受保护的核心,对其生命值造成伤害,触发事件阶段,攀升贡献排名,并在事件结束时获得自动奖励。
该插件专为希望拥有简单 DTC 事件但仍能进行深度自定义的服务器打造:支持多个地点、定时事件、顶级奖励、Discord 警报、MiniMessage 消息以及用于在游戏中管理事件文件的管理员工具。
亮点
- 使用
events/*.yml 中的独立文件配置多个 DTC 事件
- 手动和定时启动事件
- 每个事件可独立配置核心生命值、材质、世界、位置、音效、奖励、阶段和时间表
- 事件进行中时显示 BossBar 进度条
- 追踪每位玩家的贡献度
- 最终获胜者检测
- 按名次发放带有概率和条件的顶级奖励
- 随机击打奖励
- 在 75%、50% 和 25% 生命值时触发生命阶段
- 阶段专属的材质、音效、消息、命令和奖励
- Discord Webhook 通知
- 可选的 Discord 嵌入样式
- 支持 MiniMessage 格式插件消息
- 支持语言文件夹,包含
lang_es.yml 和 lang_en.yml
- 事件未激活时启用基岩保护
- 安装 PlaceholderAPI 后支持占位符
- 提供旧版 ECDTC v1 配置的迁移命令
- 管理员命令可用于创建、验证、禁用和更新事件地点
事件工作原理
每个事件都有其独立的配置文件:
plugins/EC-DTC/events/default.yml
plugins/EC-DTC/events/mina.yml
plugins/EC-DTC/events/your_event.yml
示例事件结构:
Enabled: true
CoreHealth: 100
CoreMaterial: OBSIDIAN
Location:
world: "world"
x: 0
y: 75
z: 0
Schedule:
ActiveDays:
- "SUNDAY"
Times:
- "12:00"
hit-rewards:
"100":
- "eco give %player% 100"
主 config.yml 仅用于全局设置,例如语言、BossBar、Discord Webhook、顶级奖励、基岩保护和持续时间。
核心数据不再存放在 config.yml 中。
事件阶段
随着核心生命值降低,事件状态会发生变化。
您可以配置如下阶段:
Phases:
75:
material: CRYING_OBSIDIAN
sound: BLOCK_BEACON_ACTIVATE
messages:
- "<gold>DTC</gold> <gray>%event_id% reached</gray> <yellow>%phase%%</yellow><gray>.</gray>"
commands:
- "eco give %player% 50"
50:
material: ANCIENT_DEBRIS
sound: ENTITY_WITHER_SPAWN
25:
material: NETHERITE_BLOCK
sound: ENTITY_ENDER_DRAGON_GROWL
这使得事件感觉更加激烈,而不是从始至终都是同一种方块。
奖励
EC-DTC 支持多种奖励类型。
全球获胜者奖励
Rewards:
- "eco give %PLAYER% 1000"
带有概率和条件的顶级奖励
RewardsTop:
1:
chance: 100
conditions:
min-blocks: 1
permission: ""
commands:
- "give %player% diamond 5"
- "broadcast %player% won TOP 1 with %blocks% blocks!"
单次击打奖励
hit-rewards:
"50":
- "give %player% iron_ingot 1"
"100":
- "eco give %player% 100"
奖励命令中支持的占位符:
%player%
%PLAYER%
%blocks%
%position%
%event_id%
%phase%
命令
| 命令 |
描述 |
权限 |
/dtc start [id] |
手动启动事件 |
dtc.admin |
/dtc stop [id] |
停止当前事件 |
dtc.admin |
/dtc reload |
重载配置、语言和计划表 |
dtc.admin |
/dtc time |
显示下一次定时事件的时间 |
dtc.admin |
/dtc top |
显示当前事件的排行榜 |
dtc.admin |
/dtc info [id] |
显示事件信息 |
dtc.admin |
/dtc list |
列出已配置的事件 |
dtc.admin |
/dtc tp [id] |
传送至某个事件核心 |
dtc.admin |
/dtc validate |
检查事件文件中常见的错误 |
dtc.admin |
/dtc create <id> |
创建新的事件文件 |
dtc.admin |
/dtc setcore <id> |
将您当前所在的方块保存为事件核心 |
dtc.admin |
/dtc disable <id> |
禁用某个事件而不删除其文件 |
dtc.admin |
/dtc migrate v1 |
将旧的 ECDTC v1 数据迁移到 events/default.yml |
dtc.admin |
占位符
需要 PlaceholderAPI。
| 占位符 |
描述 |
%dtc_blocks_broken% |
玩家破坏的方块数量 |
%dtc_blocks_remaining% |
剩余的核心生命值 |
%dtc_blocks_total% |
核心总生命值 |
%dtc_my_contribution% |
玩家贡献百分比 |
%dtc_global_stats% |
玩家贡献值 |
%dtc_minutes_until_event% |
距离下次事件的分钟数 |
%dtc_time_until_event% |
格式化后的距下次事件时间 |
%dtc_next_event% |
下次事件时间 |
%dtc_event_active% |
true 或 false |
%dtc_event_time_left% |
当前活跃事件的剩余时间 |
Discord Webhook
当事件开始、结束或被停止时,EC-DTC 可以向 Discord 发送通知。
DiscordWebhook:
Enabled: true
Url: "YOUR_WEBHOOK_URL"
Embed:
Enabled: true
Title: "EC-DTC"
Color: "#5d41b7"
Webhook 消息支持以下占位符:
%event_id%
%player%
%blocks%
从旧版 ECDTC 迁移
如果您使用的是旧版 ECDTC 格式,请将旧文件夹放置于此处:
plugins/ECDTC/config.yml
plugins/ECDTC/lang.yml
然后运行:
/dtc migrate v1
迁移过程将执行以下操作:
- 在替换文件前创建备份
- 将旧的核心数据移至
events/default.yml
- 将旧的语言消息移至
lang/lang_es.yml
- 将旧的
RewardsTop 列表转换为新的奖励格式
- 将旧的
Times: 配置移至新的时间表格式
依赖
- Java 17 或更高版本
- Paper 或 Spigot
- PlaceholderAPI(可选,推荐用于占位符)
- Vault 或其他经济插件(如果你的奖励命令使用货币)
安装方法
- 停止你的服务器。
- 如果你已经有一个
plugins/EC-DTC 文件夹,请先备份它。
- 将插件
.jar 文件放入 plugins/ 目录中。
- 启动一次服务器以生成配置文件。
- 编辑
config.yml、events/*.yml 和 lang/*.yml。
- 使用
/dtc validate 检查事件文件。
- 修改完成后,使用
/dtc reload 重载配置。
- 查看控制台是否有警告信息。
技术支持
需要帮助进行设置、迁移或配置?
Discord:
⚔️ EC-DTC — Destroy The Core
EC-DTC is a configurable Destroy The Core event plugin for Minecraft servers.
Players compete to break a protected core, deal progress to its health, trigger event phases, climb the contribution ranking, and receive automatic rewards when the event ends.
It is built for servers that want a simple DTC event that can still be customized deeply: multiple locations, scheduled events, top rewards, Discord alerts, MiniMessage messages, and admin tools for managing event files in-game.
Highlights
- Multiple DTC events using separate files in
events/*.yml
- Manual and scheduled event starts
- Per-event core health, material, world, location, sounds, rewards, phases and schedule
- BossBar progress while the event is active
- Contribution tracking per player
- Final winner detection
- Top rewards by position with chance and conditions
- Random hit rewards
- Life phases at 75%, 50% and 25%
- Phase materials, sounds, messages, commands and rewards
- Discord webhook notifications
- Optional Discord embed style
- MiniMessage support for plugin messages
- Language folder support with
lang_es.yml and lang_en.yml
- Bedrock protection when the event is inactive
- PlaceholderAPI support when installed
- Migration command for old ECDTC v1 configs
- Admin commands to create, validate, disable and update event locations
How Events Work
Each event has its own file:
plugins/EC-DTC/events/default.yml
plugins/EC-DTC/events/mina.yml
plugins/EC-DTC/events/your_event.yml
Example event structure:
Enabled: true
CoreHealth: 100
CoreMaterial: OBSIDIAN
Location:
world: "world"
x: 0
y: 75
z: 0
Schedule:
ActiveDays:
- "SUNDAY"
Times:
- "12:00"
hit-rewards:
"100":
- "eco give %player% 100"
The main config.yml is only for global settings such as language, bossbar, Discord webhook, top rewards, bedrock protection and duration.
Core data no longer belongs in config.yml.
Event Phases
Events can change as the core loses health.
You can configure phases like:
Phases:
75:
material: CRYING_OBSIDIAN
sound: BLOCK_BEACON_ACTIVATE
messages:
- "<gold>DTC</gold> <gray>%event_id% reached</gray> <yellow>%phase%%</yellow><gray>.</gray>"
commands:
- "eco give %player% 50"
50:
material: ANCIENT_DEBRIS
sound: ENTITY_WITHER_SPAWN
25:
material: NETHERITE_BLOCK
sound: ENTITY_ENDER_DRAGON_GROWL
This lets the event feel more intense instead of being the same block from start to finish.
Rewards
EC-DTC supports several reward types.
Global winner rewards
Rewards:
- "eco give %PLAYER% 1000"
Top rewards with chance and conditions
RewardsTop:
1:
chance: 100
conditions:
min-blocks: 1
permission: ""
commands:
- "give %player% diamond 5"
- "broadcast %player% won TOP 1 with %blocks% blocks!"
Per-hit rewards
hit-rewards:
"50":
- "give %player% iron_ingot 1"
"100":
- "eco give %player% 100"
Supported placeholders in reward commands:
%player%
%PLAYER%
%blocks%
%position%
%event_id%
%phase%
Commands
| Command |
Description |
Permission |
/dtc start [id] |
Starts an event manually |
dtc.admin |
/dtc stop [id] |
Stops the current event |
dtc.admin |
/dtc reload |
Reloads config, language and schedule |
dtc.admin |
/dtc time |
Shows the next scheduled event |
dtc.admin |
/dtc top |
Shows the active event ranking |
dtc.admin |
/dtc info [id] |
Shows event information |
dtc.admin |
/dtc list |
Lists configured events |
dtc.admin |
/dtc tp [id] |
Teleports to an event core |
dtc.admin |
/dtc validate |
Checks event files for common mistakes |
dtc.admin |
/dtc create <id> |
Creates a new event file |
dtc.admin |
/dtc setcore <id> |
Saves your current block as the event core |
dtc.admin |
/dtc disable <id> |
Disables an event without deleting the file |
dtc.admin |
/dtc migrate v1 |
Migrates old ECDTC v1 data into events/default.yml |
dtc.admin |
Placeholders
Requires PlaceholderAPI.
| Placeholder |
Description |
%dtc_blocks_broken% |
Blocks broken by the player |
%dtc_blocks_remaining% |
Remaining core health |
%dtc_blocks_total% |
Total core health |
%dtc_my_contribution% |
Player contribution percentage |
%dtc_global_stats% |
Player contribution value |
%dtc_minutes_until_event% |
Minutes until next event |
%dtc_time_until_event% |
Formatted time until next event |
%dtc_next_event% |
Next event time |
%dtc_event_active% |
true or false |
%dtc_event_time_left% |
Remaining active event time |
Discord Webhook
EC-DTC can notify Discord when an event starts, ends or is stopped.
DiscordWebhook:
Enabled: true
Url: "YOUR_WEBHOOK_URL"
Embed:
Enabled: true
Title: "EC-DTC"
Color: "#5d41b7"
Webhook messages support:
%event_id%
%player%
%blocks%
Migration From Old ECDTC
If you used the old ECDTC format, place the old folder here:
plugins/ECDTC/config.yml
plugins/ECDTC/lang.yml
Then run:
/dtc migrate v1
The migration will:
- Create backups before replacing files
- Move old core data into
events/default.yml
- Move old language messages into
lang/lang_es.yml
- Convert old
RewardsTop lists into the new reward format
- Move old
Times: into the new schedule format
Requirements
- Java 17 or newer
- Paper or Spigot
- PlaceholderAPI optional, recommended for placeholders
- Vault or an economy plugin if your reward commands use money
Installation
- Stop your server.
- Back up your current
plugins/EC-DTC folder if you already have one.
- Place the plugin
.jar inside plugins/.
- Start the server once to generate files.
- Edit
config.yml, events/*.yml and lang/*.yml.
- Use
/dtc validate to check event files.
- Use
/dtc reload after making changes.
- Check console for warnings.
Support
Need help with setup, migration or configuration?
Discord:
评论 0
登录后参与评分
还没有评论,来抢沙发吧