# 如果你想在服务器加权限

我们使用 LuckPerms（的 Forge 版本）管理权限：

* 用户组（`group`）使用配置文件管理，存放于 [teaconmc/Puer](https://github.com/teaconmc/Puer) 的特定目录。
* 玩家（`user`）属于何种用户组取决于玩家身份，在玩家进服时全自动下发。

## 都有哪些用户组？

在 TeaCon 2023 用户组有三种：`staff` / `builder` / `default`，分别对应三个 TOML 文件：

* [https://github.com/teaconmc/Puer/blob/dev/2023/shared/config/luckperms/toml-storage/groups/default.tom](https://github.com/teaconmc/Puer/blob/dev/2023/shared/config/luckperms/toml-storage/groups/default.toml)l
* <https://github.com/teaconmc/Puer/blob/dev/2023/shared/config/luckperms/toml-storage/groups/builder.toml>
* <https://github.com/teaconmc/Puer/blob/dev/2023/shared/config/luckperms/toml-storage/groups/staff.toml>

三个配置文件的格式是不言自明的，打开看就知道了。


---

如果你想给某个用户组增加权限，那么你需要的就是在 [teaconmc/Puer](https://github.com/teaconmc/Puer) 提交一个 Pull Request，等待合并后去选手群 / KOOK 里喊一声「建筑服什么时候更新」，很快便会有茶馆员工为你解决这个问题——如果真的没有，那可能就是鸽了，你只能耐心地等一会儿了。

## 我在哪个用户组？

对于参展选手或者建筑师来说，他们在测试/建筑服的时候用户组是 `builder`，在展示服是 `user`。

对于普通游客来说，他们无法出现在测试/建筑服，在展示服的时候用户组是 `user`。

对于茶馆员工，他们在所有服务器都是 `staff`。


---

作为一个选手，可能你想问「为什么我在展示服也是 `user` 用户组？」——这是刻意为之，我们不希望选手在展示服和玩家拥有不同的身份，从而选手使用自己的游戏账号也可以在展示服测试，而不受权限的干扰。

## 那我的 OP 权限呢？

不幸的，很多模组还在依赖 OP 权限办事。如果你的用户组是 `builder`，那么你将拥有 2 级 OP 权限，如果是 `user` 的话就是无 OP 权限了。茶馆员工拥有 4 级 OP 权限。

---

**Documents**

- [TeaCon 2023 最终整合包下载地址](https://wiki.teacon.cn/s/2023/doc/teacon-2023-YTTGpQfDVx)
- [TeaCon 2023 展示服务器游览指南](https://wiki.teacon.cn/s/2023/doc/teacon-2023-dUHyCo34sX)
- [「言传身教」奖项评选材料](https://wiki.teacon.cn/s/2023/doc/44cm6kia5lyg6lqr5pwz44cn5aww6ag56ke6ycj5p2q5paz-OdEmjmjsSp)
- [一些教程：2023 年版](https://wiki.teacon.cn/s/2023/doc/2023-yZ8Ifv1mfY)
- [评审/试玩员须知](https://wiki.teacon.cn/s/2023/doc/6ke5a6hlivleeoqewrmomhuefpq-ByPgkTGdq0)
- [选手公示栏](https://wiki.teacon.cn/s/2023/doc/6ycj5oml5yws56s65qcp-lAfinGn66d)
- [建筑服救火记录](https://wiki.teacon.cn/s/2023/doc/5bu6562r5pyn5pwr54gr6k6w5b2v-fkxYkA7PhG)
- [龙井 FAQ](https://wiki.teacon.cn/s/2023/doc/faq-RxvgUOkabT)
- [给选手看的架构图](https://wiki.teacon.cn/s/2023/doc/57uz6ycj5oml55yl55qe5p625p6e5zu-l1w4YmTjkB)
- [展示服启动器兼容性说明](https://wiki.teacon.cn/s/2023/doc/5bgv56s65pyn5zcv5yqo5zmo5yw85a655ocn6k05pio-JGDwifXOLu)