Command and Message Actions - elBukkit/MagicPlugin GitHub Wiki

Command and Message

The Command and Message actions support a variety of placeholders:

Generally Command uses a @ prefix and Message uses a $ prefix, but for the case of numerical placeholders both are supported. Using @ will round numbers to the nearest whole number.

Caster location:

@world
@x
@y
@z

Target location:

@tworld
@tx
@ty
@tz

Caster entity:

@pd (display name)
@pn or @p (name)
@uuid

Target entity:

@td (display name)
@tn or @t (name)
@tuuid

Spell Cast Information

@spell (spell name)

Additionally, all variables and attributes are available for use in messages and commands

PlaceholderAPI

If you use PlaceholderAPI, you can use any placeholders in a message or command with the %placeholder% syntax.