PermissionSpell - TheComputerGeek2/MagicSpells GitHub Wiki

Source Code

This spell extends its options from Instant Spell.

spell-class: ".PermissionSpell"

Description:

Temporarily grants the caster the configured permission node.

Configuration:

Since 4.0 Beta 13 some of these options support dynamic values through numeric or string expressions.

Option Description Type Default Supports expressions
duration The duration, in ticks, the player will receive the permission for. Integer 0 true
permission-nodes A list of permission nodes to grant to the caster. String List false

Example:

permission:
  spell-class: ".PermissionSpell"
  duration: 100
  permission-nodes:
    - magicspells.grant.*