Skip to content

VariableCastSpell

JasperLorelai edited this page Mar 21, 2022 · 6 revisions

Qualified Name: com.nisovin.magicspells.spells.instant.VariableCastSpell

Parent: InstantSpell

Source Code

Description:

Casts a spell saved to the variable's name.

Configuration:

Option Description Default Value
variable-name Name of the variable. null
str-doesnt-contain-spell Message sent to the caster when the variable-name doesn't contain a valid spell. "You do not have a valid spell in memory"

Example:

variablecast:
    spell-class: ".instant.VariableCastSpell"
    variable-name: spell_variable
    str-doesnt-contain-spell: "You currently dont have any stored spell."
Clone this wiki locally