Skip to content

权限节点

默认权限

权限节点说明默认
craftorithm.command所有基础命令OP
craftorithm.command.reload重载插件OP
craftorithm.command.version查看版本OP
craftorithm.command.create创建配方OP
craftorithm.command.disable禁用配方OP
craftorithm.command.display展示配方OP
craftorithm.command.recipebook打开配方书OP
craftorithm.command.openmenu打开自定义菜单OP
craftorithm.command.script执行脚本OP
craftorithm.command.item物品管理OP
craftorithm.edit_recipe编辑配方OP
craftorithm.recipe.remove删除配方OP

触发器权限

触发器中可使用自定义权限节点进行条件判断:

yaml
my_trigger:
  type: crafting
  recipes: ['craftorithm:my_recipe']
  conditions:
    - 'perm("craftorithm.trigger.vip")'
  actions:
    - 'tell("&aVIP 专属配方!")'

权限节点名称可自由定义,在触发器的 perm() 函数中引用即可。

通配符权限

使用权限管理插件(如 LuckPerms)可设置通配符权限:

craftorithm.*          # 授予所有权限
craftorithm.command.*  # 授予所有命令权限

基于 GPL-3.0 许可证发布