*一种基于惩罚的、用于对抗我的世界中 PvP 退出机制的解决方案。*
---
## 🚀 特性
- **PvP 定时器**: 强制玩家在战斗中停留 15 秒。
- **自定义惩罚**: 杀死、造成伤害、封禁或仅仅是打扰——您的选择。
- **实时 ActionBar 更新**: 为参与战斗的玩家提供实时的倒计时。
- **无依赖**: 可以在 Spigot/Paper/Folia 中开箱即用。
---
## 📦 安装
1. 下载 AntiLogOff
2. 将其放入服务器的 `plugins/` 文件夹中。
3. 重启服务器。
```bash
# 为喜欢命令的管理员们:
/reload confirm
```
---
## ⚙️ 配置
编辑 `plugins/AntiLogOff/config.yml` 以调整行为:
```yaml
settings:
timer-duration: 15 # 战斗到期前的秒数。
punish-on-logoff: true # 启用/禁用惩罚。
punishment: "kill" # 选项:kill, damage, ban, none。
messages:
timer-start: "&c战斗开始!%time% 秒内不要退出。"
actionbar-text: "&4战斗:%time%s | 别逃跑!"
```
---
## 💻 命令 & 权限
| 命令 | 描述 | 权限 |
|---------|-------------|------------|
| `/alo reload` | 重新加载配置文件。 | `antilogoff.reload` |
| `/aloconfig` | 显示当前设置。 | `antilogoff.config` |
---
## 📜 兼容性
| **我的世界** | **服务器类型** | **Java** |
|--------------|----------------|---------|
| 1.21.x | Paper, Spigot, Folia | JDK 21 |
---
## ❓ 支持 & 链接
- **Bug 报告**: [GitHub Issues](https://github.com/lifedestroyed/AntiLogOff/issues)
- **源代码**: [GitHub](https://github.com/lifedestroyed/AntiLogOff)
📜 **许可证**: MIT
*一种基于惩罚的、用于对抗我的世界中 PvP 退出机制的解决方案。*
---
## 🚀 特性
- **PvP 定时器**: 强制玩家在战斗中停留 15 秒。
- **自定义惩罚**: 杀死、造成伤害、封禁或仅仅是打扰——您的选择。
- **实时 ActionBar 更新**: 为参与战斗的玩家提供实时的倒计时。
- **无依赖**: 可以在 Spigot/Paper/Folia 中开箱即用。
---
## 📦 安装
1. 下载 AntiLogOff
2. 将其放入服务器的 `plugins/` 文件夹中。
3. 重启服务器。
```bash
# 为喜欢命令的管理员们:
/reload confirm
```
---
## ⚙️ 配置
编辑 `plugins/AntiLogOff/config.yml` 以调整行为:
```yaml
settings:
timer-duration: 15 # 战斗到期前的秒数。
punish-on-logoff: true # 启用/禁用惩罚。
punishment: "kill" # 选项:kill, damage, ban, none。
messages:
timer-start: "&c战斗开始!%time% 秒内不要退出。"
actionbar-text: "&4战斗:%time%s | 别逃跑!"
```
---
## 💻 命令 & 权限
| 命令 | 描述 | 权限 |
|---------|-------------|------------|
| `/alo reload` | 重新加载配置文件。 | `antilogoff.reload` |
| `/aloconfig` | 显示当前设置。 | `antilogoff.config` |
---
## 📜 兼容性
| **我的世界** | **服务器类型** | **Java** |
|--------------|----------------|---------|
| 1.21.x | Paper, Spigot, Folia | JDK 21 |
---
## ❓ 支持 & 链接
- **Bug 报告**: [GitHub Issues](https://github.com/lifedestroyed/AntiLogOff/issues)
- **源代码**: [GitHub](https://github.com/lifedestroyed/AntiLogOff)
📜 **许可证**: MIT