Skip to content

Permissions

Default Permissions

Permission NodeDescriptionDefault
craftorithm.commandAll basic commandsOP
craftorithm.command.reloadReload pluginOP
craftorithm.command.versionView versionOP
craftorithm.command.createCreate recipesOP
craftorithm.command.disableDisable recipesOP
craftorithm.command.displayDisplay recipesOP
craftorithm.command.recipebookOpen recipe bookOP
craftorithm.command.openmenuOpen custom menusOP
craftorithm.command.scriptExecute scriptsOP
craftorithm.command.itemItem managementOP
craftorithm.edit_recipeEdit recipesOP
craftorithm.recipe.removeDelete recipesOP

Trigger Permissions

Custom permission nodes can be used in triggers for conditional checks:

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

Permission node names can be freely defined — just reference them in the trigger's perm() function.

Wildcard Permissions

Permission management plugins (such as LuckPerms) can be used to set wildcard permissions:

craftorithm.*          # Grant all permissions
craftorithm.command.*  # Grant all command permissions

基于 GPL-3.0 许可证发布