Command modifiers - AlonsoAliaga/AlonsoTags GitHub Wiki
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.
💠 AlonsoTags's configuration for "Close" and in Pro Version for "Close-colors" items, "Purchase-commands", "Select-commands.Pre" and "Select-commands.Post" tags options allows certain placeholders:
- Replaced with player name
- Replaced with player uuid
- Replaced with world name
- Replaced with world uuid
- Replaced with player location (X axis, double)
- Replaced with player location (Y axis, double)
- Replaced with player location (Z axis, double)
💠 AlonsoTagsPro's configuration for "Purchase-commands", "Select-commands.Pre" and "Select-commands.Post" tags allows certain placeholders:
- Replaced with tag identifier being selected or purchased
- Replaced with tag name being selected or purchased
- Replaced with tag being selected or purchased as final (how it will look like)
It also allows you to use different modifiers for performing the commands:
The modifier goes at the beginning of the command like:
Available modifiers are:
- Default one, if not specified, command will be run as player.
- Run command as console. CAUTION!
- 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.
- Run command as player (having OP). Not recommended to use!
- Send message directly to the player.
- Broadcast message for all online players.
- Broadcast message for all players in player world.
- Send sound to the player. Format:
[SOUND]THE_SOUND,volume,pitch
You can find all available sounds in this site.
Example:[SOUND]LEVEL_UP,1,1
- Send sound to all online players. Format:
[SOUND_BROADCAST]THE_SOUND,volume,pitch
You can find all available sounds in this site.
Example:[SOUND_BROADCAST]LEVEL_UP,1,1
- Send sound to all players in player's world. Format:
[SOUND_WORLD_BROADCAST]THE_SOUND,volume,pitch
You can find all available sounds in this site.
Example:[SOUND_WORLD_BROADCAST]LEVEL_UP,1,1
- Send custom sound to the player. Format:
[CUSTOM_SOUND]THE_SOUND,volume,pitch,CATEGORY
You can find all available sounds in this site. Category is optional and depends on your sound.
Example:[CUSTOM_SOUND]custom.sound.name,1,1,MASTER
- Send custom sound to all online players. Format:
[CUSTOM_SOUND_BROADCAST]THE_SOUND,volume,pitch,CATEGORY
You can find all available sounds in this site. Category is optional and depends on your sound.
Example:[CUSTOM_SOUND_BROADCAST]custom.sound.name,1,1,MASTER
- Send custom sound to all players in player's world. Format:
[CUSTOM_SOUND_WORLD_BROADCAST]THE_SOUND,volume,pitch,CATEGORY
You can find all available sounds in this site. Category is optional and depends on your sound.
Example:[CUSTOM_SOUND_WORLD_BROADCAST]custom.sound.name,1,1,MASTER
- Send a title/subtitle to the player. Format:
[TITLE]title<SEPARATOR>subtitle
Example:[TITLE]&cThis is the title!<SEPARATOR><SEPARATOR>&6This is the subtitle!
- Send a title/subtitle to all players. Format:
[TITLE_BROADCAST]title<SEPARATOR>subtitle
Example:[TITLE_BROADCAST]&cThis is the title!<SEPARATOR>&6This is the subtitle!
- Send a title/subtitle to all players in player's world. Format:
[TITLE_WORLD_BROADCAST]title<SEPARATOR>subtitle
Example:[TITLE_WORLD_BROADCAST]&cThis is the title!<SEPARATOR>&6This is the subtitle!
- Send a message in action bar to the player. Format:
[ACTION_BAR]message
Example:[ACTION_BAR]&aThis is an action bar message!
- Send a message in action bar to all players. Format:
[ACTION_BAR_BROADCAST]message
Example:[ACTION_BAR_BROADCAST]&aThis is an action bar message!
- Send a message in action bar to all players in player's world. Format:
[ACTION_BAR_WORLD_BROADCAST]message
Example:[ACTION_BAR_WORLD_BROADCAST]&aThis is an action bar message!
- Spawns a firework with custom effects. Format:
[FIREWORK]TYPE:COLOR:FADE_COLOR:flicker?:trail?
You can add many effects adding|
and repeating the format. To modify power and delay
you can addpower=AMOUNT
anddelay=AMOUNT
Effect types can be grabbed from this site. Some may be different in other versions.
Example:[FIREWORK]CREEPER:GREEN:RED:true:true|STAR:YELLOW:RED:true:true|power=1|delay=5
- Send json message to the player. Format:
[JSON]theJSONmessage
You can create the json message using this generator.
Example:[JSON]{"text":"Made by AlonsoAliaga!","bold":true,"color":"dark_purple"}
- Send json message to all players. Format:
[JSON_BROADCAST]theJSONmessage
You can create the json message using this generator.
Example:[JSON_BROADCAST]{"text":"Made by AlonsoAliaga!","bold":true,"color":"dark_purple"}
- Send json message to all players in player's world. Format:
[JSON_WORLD_BROADCAST]theJSONmessage
You can create the json message using this generator.
Example:[JSON_WORLD_BROADCAST]{"text":"Made by AlonsoAliaga!","bold":true,"color":"dark_purple"}
- Make player chat in bungeecord level. Format:
[BUNGEE_PLAYER_CHAT]message
⚠️ Requires AlonsoBungee installed in bungeecord server!⚠️
Example:[BUNGEE_PLAYER_CHAT]&6This is a message in bungee!
- Make player execute a command in bungeecord level. Format:
[BUNGEE_PLAYER_COMMAND]command
Useful if you want player to execute a command not available in spigot, but in bungeecord.
⚠️ Requires AlonsoBungee installed in bungeecord server!⚠️
Example:[BUNGEE_PLAYER_COMMAND]glist
- Execute a command in bungeecord server. Format:
[BUNGEE_CONSOLE]command
⚠️ Requires AlonsoBungee installed in bungeecord server!⚠️
Example:[BUNGEE_CONSOLE]alert This is a console command from spigot!
- Opens a book for the player. Format:
[BOOK]nameofthebook.txt
You need to create the book using this generator and follow steps below.\
- Create the book as you want.
- Click the
GENERATE THE COMMAND
button. - Copy the command for the versionn of your server.
- Paste the content in a .txt file and place it inside the /books/ folder.
- Reload the configuration. (Restart recommended)
- Use the name of the file in the format.
Example: [BOOK]defaultbook.txt