# AutoTreeChop
**AutoTreeChop** 允许你的玩家通过破坏一根原木来砍伐整棵树。
它支持异步操作,轻量级,并且可完全自定义,并内置了对 MySQL (可选)、CoreProtect 和流行的保护插件的支持。
- 🌐 [Discord 支持服务器](https://discord.gg/uQ4UXANnP2)
- 🌱 [Modrinth 页面](https://modrinth.com/plugin/autotreechop)
- 💻 [源代码 (GitHub)](https://github.com/milkteamc/AutoTreeChop)
- ⚙️ [默认配置](https://github.com/milkteamc/AutoTreeChop/blob/master/src/main/resources/config.yml)
---
## 🌟 关键特性
### 🌲 智能树砍伐
- 通过破坏一根原木砍伐整棵树
- 使用 `/atc` 命令或通过潜行 (按下 SHIFT) 切换开启/关闭
- 异步支持,在现代服务器上提供流畅的性能
- 可定制的树叶清理
### ⚡ 轻量级 & 易于配置
- 最小的性能影响
- 简单的设置,和用户友好的配置
### 🔁 自动补种
- 砍伐后自动补种幼苗
- 可选地要求玩家拥有幼苗
### 🧑🤝🧑 玩家控制 & 限制
- 使用和砍伐的每日限制
- 可配置的冷却时间
- VIP 玩家可以使用权限绕过限制
### 🛡️ 全面保护插件支持
- 与 Residence、WorldGuard、Lands、GriefPrevention 兼容
- 支持 **CoreProtect** 进行操作日志记录
### 🌐 多语言 & 本地化支持
- 包含的翻译:`en`, `zh`, `ja`, `de`, `es`, `fr`, `ru`, 等。
- 启用时自动切换为玩家的本地化设置
### 🗄️ MySQL & SQLite 支持
- 使用 MySQL 扩展,或使用 SQLite (默认) 保持简单
---
## 🔌 支持的插件
> 由于我们直接调用方块破坏事件,诸如 CoreProtect 和 Drop2Inventory 等插件应该可以在没有修改的情况下支持。
- WorldGuard
- Residence
- Lands
- GriefPrevention
- PlaceholderAPI
---
## 🧠 命令
| 命令 | 描述 |
|--------|-------------|
| `/atc` | 切换 AutoTreeChop |
| `/atc usage` | 显示每日使用情况 |
| `/atc reload` | 重新加载插件配置 |
| `/atc ` | 切换其他玩家的 ATC 状态 |
| `/atc enable-all` | 为所有玩家启用 |
| `/atc disable-all` | 为所有玩家禁用 |
| `/atc about` | 插件信息 |
---
## 🔐 权限
> 需要权限管理器插件,我个人推荐 [LuckPerms](https://luckperms.net/download)
| 权限 | 描述 | 默认 |
|------------|-------------|-------------|
| `autotreechop.use` | 使用 `/atc` 和 `/atc usage` 命令 | 所有人 |
| `autotreechop.vip` | 忽略使用限制 | OP |
| `autotreechop.other` | 切换其他人的 ATC 状态 | OP |
| `autotreechop.updatechecker` | 接收更新通知 | OP |
| `autotreechop.replant` | 启用自动补种 | 所有人 |
| `autotreechop.leaves` | 启用树叶移除 | 所有人 |
---
## 🔤 占位符
> 需要 [PlaceholderAPI](https://www.spigotmc.org/resources/placeholderapi.6245/)
| 占位符 | 输出 |
|------------|--------|
| `%autotreechop_status%` | ATC 是否启用 |
| `%autotreechop_daily_uses%` | 今天的使用次数 |
| `%autotreechop_daily_blocks_broken%` | 今天砍伐的树木方块数量 |
---
## 📥 安装
1. 从 [Modrinth](https://modrinth.com/plugin/autotreechop) 下载 `.jar` 文件
2. 将其放在服务器的 `plugins/` 文件夹中
3. 重启服务器
4. 根据需要自定义 `config.yml` (可选,默认配置已准备好使用。)
5. 使用 `/atc reload` 重新加载
---
## ❤️ 支持 & 贡献
- 需要帮助?加入我们的 [Discord](https://discord.gg/uQ4UXANnP2)
- 发现了一个错误?在 [GitHub](https://github.com/milkteamc/AutoTreeChop/issues) 上打开一个问题
- 想帮助翻译?提交你的本地化文件 PR!
- 喜欢这个插件?在 [GitHub](https://github.com/milkteamc/AutoTreeChop) 上给它一个星标!
---
## 📈 bStats
本插件使用 [bStats](https://bstats.org) 收集匿名使用统计信息(例如插件版本、服务器软件和玩家数量)。
这些统计数据有助于我们改进插件。
如果您不想参与,可以在以下位置随时禁用它:
`/plugins/bStats/config.yml`
[](https://bstats.org/plugin/bukkit/AutoTreeChop/20053)