Broadcast Effect - MomoPewpew/MagicSpells GitHub Wiki

Description: Broadcasts a message

Source Code

Configuration:

Option Description Default Value
message Text to be sent. Supports color codes and these placeholders: %a - caster's name, %t - target's name, %n - entity's name. ""
range Range of the broadcast. (0 is global) 0
targeted Defines whether the message should be broadcast to the target instead. false

Example:

broadcast:
    spell-class: ".instant.DummySpell"
    effects:
        eff1:
            position: caster
            effect: broadcast
            message: "&bTest Broadcast!"
            range: 25