Forget Spell - TheComputerGeek2/MagicSpells GitHub Wiki

Source Code

spell-class: ".command.ForgetSpell"

Description:

This spell removes spells from a player. You can pass a player and the spell to remove using the cast command or subspell args. If allow-self-forget is true, the only argument passed should be the spell to forget or * for all spells. If it's false, and the player has the magicspells.advanced.forget permission, then the first argument should be a player name, and the second should be a spell or * for all spells.

Configuration:

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

Option Description Type Default
allow-self-forget If this is true the passed spell cast argument should be a spell or * for all spells. Otherwise, if the player has the magicspells.advanced.forget permission, the first argument should be a player name and the second should be a spell or * for all spells. Boolean false
str-usage Rich Text "Usage: /cast forget <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-reset-self Rich Text "You have forgotten all of your spells."
str-doesnt-know Rich Text "That person does not know that spell."
str-cast-target Rich Text "%a has made you forget the %s spell."
str-reset-target Rich Text "You have reset %t's spellbook."
str-cast-self-target Rich Text "You have forgotten the %s spell."

Additional Placeholders:

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