# ☠️ InstantDeath
**InstantDeath** 是一个非常轻量级、高度灵活且兼容的 Minecraft 插件,允许玩家使用 `/kill` 或 `/suicide` 快速轻松地结束他们的死亡。
---
## 📦 特性
- ✅ **自杀支持** — 玩家可以使用 `/kill` 或 `/suicide` 立即重生。
- 🔐 **权限支持** — 可选设置,要求进行自杀的权限。
- 🗺️ **死亡坐标** — 可配置的设置,显示死亡地点。
- 💬 **自定义消息** — 所有消息都可通过 `config.yml` 进行配置。
- 🧩 **高度兼容** — 与 Bukkit、Spigot、Paper、Purpur、Folia 及更多版本兼容,从 **Minecraft 1.6.1** 到最新版本。(是的,1.6.1而不是1.16)
---
## 🔧 指令
| 指令 | 描述 |
|------------------------|-----------------------------------------------|
| `/kill` | 立即杀死自己。 |
| `/suicide` | `/kill` 的别名。 |
| `/kill ` | 杀死其他玩家(需要权限)。 |
---
## 🛡️ 权限
| 权限 | 描述 | 默认值 |
|------------------------------|----------------------------------------------------|---------|
| `instantdeath.kill.self` | 允许玩家杀死自己。 | `true` |
| `instantdeath.kill.others` | 允许玩家杀死其他玩家。 | `op` |
**可选配置选项:** 您可以通过在配置中设置 `self-kill-requires-permission: true` 来强制要求玩家拥有 `instantdeath.kill.self` 权限。
---
## ⚙️ 配置
```yaml
# InstantDeath 插件配置
settings:
# 需要 instantdeath.kill.self 才能杀死自己
self-kill-requires-permission: false
# 死亡时在聊天中告诉你死亡地点
show-death-location-on-kill: true
messages:
self-kill: "&c你已死亡于 &eX: %x%&c, &eY: %y%&c, &eZ: %z%"
target-kill: "&c你杀死了 %target%。"
death-location: "&c你死亡于 &eX: %x%&c, &eY: %y%&c, &eZ: %z%"
player-not-found: "&c未找到玩家 '%target%'。"
no-permission: "&c你没有杀死他人的权限。"
usage: "&c用法: /%label% [玩家]"
console-kill: "玩家 %target% 被控制台杀死。"
console-player-not-found: "未找到玩家 '%target%'。"
console-usage: "控制台用法: /%label% <玩家>"
```