forked from TheComputerGeek2/MagicSpells
-
Notifications
You must be signed in to change notification settings - Fork 3
Placeholder API Data Spell
MomoPewpew edited this page Jul 28, 2023
·
9 revisions
spell-class: ".targeted.ext.PlaceholderAPIDataSpell"
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 | 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.. |
# 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%"
!!!This is not the official MagicSpells wiki!!!
This wiki was cloned from the official one to document the changes to the plugin that were made specifically for Dwarves vs Zombies 2023 and Lords of Minecraft 2