Proton 是一个轻量的、提供低速率权限管理功能的服务端侧模组。
功能/指令
权限组管理:
/proton listgroups 列出所有权限组;
/proton listperms 列出所有权限;
/proton group create [Group] 创建权限组“Group”;
/proton group remove [Group] 移除权限组“Group”;
/proton group [Group] listperms 列出权限组“Group”的所有权限;
/proton group [GroupA] inherit [GroupB] 权限组“GroupA”继承权限组“GroupB”;
/proton group [GroupA] dissociate [GroupB] 权限组“GroupB”从它的子权限组“GroupA”脱钩(GroupA 权限不变,但不再是 GroupB 的子权限组);
/proton group [GroupA] create [GroupB] 创建继承“GroupA”的“GroupB”;
/proton group [Group] padd [Perm] 向权限组“Group”加入权限“Perm”;
/proton group [Group] pdel [Perm] 从权限组“Group”移除权限“Perm”。
玩家权限管理:
/proton player [PlayerName] listgroups 列出玩家“PlayerName”所在的权限组;
/proton player [PlayerName] listperms 列出玩家“PlayerName”的所有权限;
/proton player [PlayerName] padd [Perm] 向玩家“PlayerName”赋予权限“Perm”;
/proton player [PlayerName] pdel [Perm] 从玩家“PlayerName”移除权限“Perm”;
/proton player [PlayerName] gadd [Group] 玩家“PlayerName”继承权限组“Group”;
/proton player [PlayerName] gdel [Group] 从权限组“Group”移除玩家“PlayerName”;
/proton player [PlayerName] dissociate [Group] 玩家从已继承的权限组“Group”获取全部权限并与该权限组脱钩。
其他:
/proton reload 重载配置文件。
语言更换说明
本模组的本地化处理在服务端上进行,语言由配置文件决定。
.minecraft/config/proton.cfg
# Configuration file
general {
# 本地化文件名 [default: en_us]
S:language=en_us
......
}
本地化文件的格式为 JSON,添加本地化文件时请保证其前缀名与配置文件中 language 项的值相同。
注意事项
你可以将本模组加入整合包;
如有新功能需求,请在评论区或 GitHub Issues 反馈。