Skip to content

Silence Spell

MomoPewpew edited this page Jul 28, 2023 · 13 revisions

Source Code

spell-class: ".targeted.SilenceSpell"

Description:

A targeted spell that takes away the target's ability to cast spells.

Configuration:

Option Description Variable Type Default Value
prevent-cast Whether to stop the target from casting spells. Boolean true
prevent-chat Whether to stop the target from using chat. Boolean false
prevent-commands Whether to stop the target from using commands. Boolean false
spell-on-denied-cast Sub-spell to cast whenever the target's spell was silenced. String null
spell-on-denied-chat Sub-spell to cast whenever the target's chat was silenced. String null
spell-on-denied-command Sub-spell to cast whenever the target's command was silenced. String null
duration How long, in ticks, the silence spell lasts. Integer 200
str-silenced String message sent to any player who is silenced. String "You are silenced!
This spell depends on the Spell Filter options.

Example:

Silence:
    spell-class: ".targeted.SilenceSpell"
    range: 12
    prevent-cast: true
    prevent-chat: false
    prevent-commands: false
    duration: 30
    cooldown: 16
    allowed-spells:
        - list
        - help
    cost:
        - mana 35
    str-cost: 35 mana
    str-no-target: No target.
    str-cast-self: "You silence %t."
    str-cast-target: "%a silences you."
    str-silenced: "You are silenced."
Clone this wiki locally