-
Notifications
You must be signed in to change notification settings - Fork 1
Command modifiers
AlonsoAliaga edited this page Sep 22, 2023
·
16 revisions
You'll find information actions available for formats.
PlaceholderAPI is available in all of them except the ones related to SOUNDS or FIREWORK.
Actions for AlonsoJoin allow 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)
It also allows you to use different modifiers for performing the commands:
The modifiers go in the following order:
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 centered message directly to the player.
(Only plain text, cannot be combined with other modifiers)
- Broadcast centered message for all online players.
(Only plain text, cannot be combined with other modifiers)
- Broadcast centered message for all players in player world.
(Only plain text, cannot be combined with other modifiers)
- 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=AMOUNTanddelay=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!
- Send a player to other server. Format:
[BUNGEE_CONNECT]server
β οΈ Requires AlonsoBungee installed in bungeecord server!β οΈ
Example:[BUNGEE_CONNECT]skywars-1
- Broadcasts a message (and sound) to all players in specific servers/worlds. Available options:
once(true/false), this will make the action execute only once until player leaves the network.
servers, servers and words (in parenthesis) for the message to be sent.
sound, this will play the first sound available for the players.
Format:[BUNGEE_BROADCAST]options<SEPARATOR>othersoptions<SEPARATOR>message
β οΈ Requires AlonsoBungee installed in bungeecord server!β οΈ
Example:[BUNGEE_BROADCAST]once=true<SEPARATOR>servers=all(world,spawn)<SEPARATOR>sound=ENTITY_PLAYER_LEVELUP|LEVEL_UP,100,1<SEPARATOR>&4%vault_prefix%&{PLAYER}&4 joined the network!
- Kicks a player from bungeecord. Format:
[BUNGEE_KICK]kick-reason
β οΈ Requires AlonsoBungee installed in bungeecord server!β οΈ
Example:[BUNGEE_KICK]&cYou have been kicked
- Makes player close current inventory. Format:
[CLOSE_INVENTORY]
Example:[CLOSE_INVENTORY]
- Makes player leave current vehicle. Format:
[LEAVE_VEHICLE]
Example:[LEAVE_VEHICLE]
- Receives a message with skin avatar image. Format:
[AVATAR_MESSAGE]identifier
Example:[AVATAR_MESSAGE]default
- Broadcast a message with skin avatar image. Format:
[AVATAR_MESSAGE_BROADCAST]identifier
ignore-player, if set to true it will ignore the original player. (Won't receive the message)
Example:[AVATAR_MESSAGE_BROADCAST]default|ignore-player=true
- Broadcast a message to world players with skin avatar image. Format:
[AVATAR_MESSAGE_WORLD_BROADCAST]identifier
ignore-player, if set to true it will ignore the original player. (Won't receive the message)
Example:[AVATAR_MESSAGE_WORLD_BROADCAST]default|ignore-player=true
- Sends a message to the player using MiniMessage format. Format:
[MINI_MESSAGE]message
β οΈ Generate messages with MiniMessage format using this link!
Example:[MINI_MESSAGE]<rainbow>Welcome to the server <papi:player_name>!
- Broadcast message to all players using MiniMessage format. Format:
[MINI_MESSAGE_BROADCAST]message
β οΈ Generate messages with MiniMessage format using this link!
Example:[MINI_MESSAGE_BROADCAST]<rainbow><papi:player_name> joined the server!!
- Broadcast message to all players in player world using MiniMessage format. Format:
[MINI_MESSAGE_WORLD_BROADCAST]message
β οΈ Generate messages with MiniMessage format using this link!
Example:[MINI_MESSAGE_WORLD_BROADCAST]<rainbow><papi:player_name> joined the world!
- 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 COMMANDbutton. - 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
These modifiers go seeond in the command line.
- Only run the "command" if player has joined the server for the first time (spigot based).
- Only run the "commmand" if player is NOT NEW in the server (spigot based).
- By default, if specified [NORMAL] or not specified it will run every time the player joins.
These modifiers go third in the command line.
By default, if not specified it will use [NOT_IN_VANISH].
- It will always run the command. Ignores if player is in vanish or not.
- Only run the "commmand" if player is on vanish when joined.
- Only run the "commmand" if player is not on vanish when joined. (By default)
β οΈ AlonsoBungee can be downloaded only on Github. β οΈ
AlonsoJoin - Developed by AlonsoAliaga