Command modifiers - AlonsoAliaga/AlonsoPlus GitHub Wiki
Commands placeholders 💎 (Since 0.5-BETA ✔️)
You'll find information about items that allows you to run commands on click.
PlaceholderAPI is available in all of them except the ones related to SOUNDS.
AlonsoPlus's configuration for "Close" and "Back" items allows certain placeholders:
{PLAYER}
- Replaced with player name
{UUID}
- Replaced with player uuid
{WORLD}
- Replaced with world name
{WORLD_UUID}
- Replaced with world uuid
{X}
- Replaced with player location (X axis, double)
{Y}
- Replaced with player location (Y axis, double)
{Z}
- Replaced with player location (Z axis, double)
It also allows you to use different modifiers for performing the commands:
The modifier goes at the beginning of the command like:
[MODIFIER]thecommand
Command modifiers 💎 (Since 0.5-BETA ✔️)
Available modifiers are:
[PLAYER]
- Default one, if not specified, command will be run as player.
[CONSOLE]
- Run command as console. CAUTION!
[CHAT]
- Makes the player send a message. If command starts with slash, it will be taken as a command.
Not recommended to use slash, use [PLAYER] instead.
[OP]
- Run command as player (having OP). Not recommended to use!
[MESSAGE]
- Send message directly to the player.
[MESSAGE_BROADCAST]
- Broadcast message for all online players.
[MESSAGE_WORLD_BROADCAST]
- Broadcast message for all players in player world.
[SOUND]
- Send sound to the player. Format:
[SOUND]THE_SOUND,volume,pitch
Example:[SOUND]LEVEL_UP,1,1
[SOUND_BROADCAST]
- Send sound to all online players. Format:
[SOUND]THE_SOUND,volume,pitch
Example:[SOUND]LEVEL_UP,1,1
[SOUND_WORLD_BROADCAST]
- Send sound to all players in player's world. Format:
[SOUND]THE_SOUND,volume,pitch
Example:[SOUND]LEVEL_UP,1,1