Skip to content

Placeholder API Data Spell

MomoPewpew edited this page Jul 28, 2023 · 9 revisions

Source Code

spell-class: ".targeted.ext.PlaceholderAPIDataSpell"

Description:

Requires PlaceholderAPI plugin. When used it will save the value of any placeholder supported by the PlaceholderAPI plugin to a playerstring type variable. Most up to date list of placeholders.

Options:

Options Description
variable-name Variable of playerstring type to save the placeholder value to.
placeholderapi-template The placeholder to save to the playerstring variable. This supports bracket placeholders and variable replacement. List of placeholders..

Examples:

# Requires the Server PlaceholderAPI expansion.
# Type /tps to use.
variables:
    String:
        type: playerstring

tps:
    spell-class: ".targeted.ext.PlaceholderAPIDataSpell"
    incantations: ["/tps"]
    target-self: true
    variable-name: String
    placeholderapi-template: "%server_tps%"
    str-cast-self: "TPS&f: &b%var:String%"
Clone this wiki locally