Teach Spell - TheComputerGeek2/MagicSpells GitHub Wiki

Source Code

spell-class: ".command.TeachSpell"

Description:

This spell teaches the passed player the passed spell. You can pass the player and the spell to teach using the cast command or subspell args.

Configuration:

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

Option Description Type Default
require-known-spell Boolean true
str-usage Sent if no spell cast arguments are passed. Rich Text "Usage: /cast teach <target> <spell>"
str-no-spell Rich Text "You do not know a spell by that name."
str-no-target Rich Text "No such player."
str-cant-teach Rich Text "You can't teach that spell."
str-cant-learn Rich Text "That person cannot learn that spell."
str-cast-target Rich Text "%a has taught you the %s spell."
str-already-known Rich Text "That person already knows that spell."

Additional Placeholders:

  • str-cast-self/target:
    • %s: Spell name.
⚠️ **GitHub.com Fallback** ⚠️