PermissionGroups

版本 v1.1.1·更新於 2026-01-18

A mod that adds permission groups.

模組介紹 作者原文

What are permission groups?

Permission groups can be assigned to players to give them elevated permissions.

The main mod that utilizes these permissions is ChatCommands, with which you can choose who can use certain commands.

How can this be configured?

Upon running the game for the first time, it will create a config file at "BepInEx/config/lammas123.PermissionGroups.cfg", as well as two permission group files, "host.txt" and "member.txt", in your "BepInEx/config/lammas123.PermissionGroups/" directory.

In the config file, you can set the default group id ("member" by default) and the host's group id ("host" by default). These link to the permission group files saved in that directory I mentioned previously.

The permission group files follow this format:

  • Everything before the ".txt" in the file's name is the group's id. It is recommended to keep this short, lowercase, and have no spaces or special characters.
  • The first line of the file will be the permission group's display name, or how it'll show up in game, I'll get back to this later.
  • Every line after that is a different permission that permission group has.
  • To give members permission to use!help, you'd write "command.help" on a new line.
  • A single asterisk (*) on the second line of the file means that all permissions have been granted
  • This is dangerous to give out and is only given to the host by default.

You are able to add as many permission groups as you want and give them any permissions you see fit, changes apply every time you load the game.

How do I assign a permission group to someone?

You can modify the permission group id saved in the player's persistent client data file, or with ChatCommands, you can write "!setclientdata \ PermissionGroup \" to change it in game.

So what about the display names?

Using the BetterChat mod, you can add the player's permission group (or permission group id if you want) into their name when they send chat messages.

When adding permission groups to the formatting, use PERMISSION_GROUP to use the permission group's display name, and PERMISSION_GROUP_ID to use it's id.

安裝與使用 安裝:按包內說明操作

  1. 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
  2. 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
  3. 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
  4. 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。

不同模組的安裝位置差異較大,包內說明是最可靠的依據。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

BepInEx-BepInExPack_CrabGamelammas123-PersistentData

檔案與校驗

檔案名稱
PermissionGroups-1.1.1.zip
檔案大小
39.3 KiB