Skip to content
JasperLorelai edited this page Mar 21, 2022 · 9 revisions

Source Code

A targeted spell that summons a player to your location.

Configuration:

Option Description Default Value
max-accept-delay Max accept delay (in ticks). 90
require-exact-name Does the spell require the exact player name? false
require-acceptance Does the spell require the player's acceptance? true
str-usage Message sent to the caster when he uses the spell in a wrong way "Usage: /cast summon , or /cast summon while looking at a sign with a player name on the first line."
accept-command Accept command. accept
str-summon-pending Message sent to the caster. "You are being summoned! Type /accept to teleport."
str-summon-expired Message sent when the summon expires. "The summon has expired."
str-summon-accepted Message sent when the target accepts the summon. "You have been summoned."

Example:

summon_helper:
    spell-class: ".targeted.SummonSpell"
    require-exact-name: false
    require-acceptance: true
    max-accept-delay: 90
    accept-command: accept
    str-usage: |
        Usage: /cast summon <playername>, or /cast summon 
        while looking at a sign with a player name on the first line.
    str-no-target: Target player not found.
    str-summon-pending: You are being summoned! Type /accept to teleport.
    str-summon-accepted: You have been summoned.
    str-summon-expired: The summon has expired.
Clone this wiki locally