Command spell. This spell teaches another player a spell that you know. You cannot teach a spell you do not know. Additionally, if the target player cannot learn the spell (due to having Permissions enabled and not having the magicspells.learn.spell permission), you will not be able to teach the spell. If you do not want to use this feature you can grant users all spells by using the permission magicspells.grant.* and then control which spells they can and cannot cast using magicspells.cast.*
/cast teach <player> <spell>.
|require-known-spell||Whether the caster must know the spell in order to teach it.||true|
|str-usage||The string that shows if the player casts the spell incorrectly.||Usage: /cast teach <target> <spell>|
|str-no-target||The string that shows if the caster types an invalid player name.||No such player|
|str-no-spell||The string that shows if the cast does not know the spell they typed.||You do not know a spell by that name.|
|str-cant-teach||The string that shows if the casting player cannot teach the spell.||You can't teach that spell.|
|str-cant-learn||The string that shows if the target cannot learn the spell.||That person cannot learn that spell.|
|str-already-known||The string that show if the target player already knows the spell.||That person already knows that spell.|
|str-cast-target||The message sent to the target upon learning the spell.||%a has taught you the %s spell.|
|%a||The actor (the person casting the spell)|
|%t||The target (the person learning the new spell)|
|%s||The spell name being taught|
teach: spell-class: ".command.TeachSpell" name: teach description: Teach a spell to another player. require-known-spell: true str-usage: "Usage: /cast teach <target> <spell>" str-no-target: No such player. str-no-spell: You do not know a spell by that name. str-cant-teach: You can't teach that spell. str-cant-learn: That person cannot learn that spell. str-cast-self: You have taught %t the %s spell. str-cast-target: "%a has taught you the %s spell."