Actions
On this page you will learn how to create and configure actions that will be executed upon certain events, such as a player teleporting.
You can set actions to run on certain DeluxeTeleport events. See each feature's settings to learn how you can use them.
You can also set up conditions within actions so that they are executed only if a certain condition is met. See the documentation on conditions [HERE].
General values
These values ​​apply to all actions and some are required for it to work.
type
The type of action to perform.
enabled
Yes, this action will be enabled (default true
)
when
When is this action performed?
whom
This indicates who the actions are executed on (for tpa only).
conditions
Values ​​for when
when
Esto indica cuándo se ejecuta la acción.
none
Plays when the player is teleported, whether or not they have delay.
before_delay
It is executed when the delay starts.
during_delay
It runs every second during the delay.
after_delay
It is executed when the delay ends (when the player is teleported).
cancel_delay
It is executed when the teleport has been cancelled (usually by movement).
You can use multiple values ​​in the same action, just separate them by ,
.
Example:
Values ​​for whom
whom
This indicates who the actions are executed on (for tpa only).
player
This is the player who sends the teleport request.
target_player
This is the player who receives the teleport request.
both
This indicates both players.
Player Command
Sends a command as if it were executed by the player.
Example:
Console command
Send a command from the console.
Example:
Sound
Sends a sound to the player.
Example:
Message
Send a message to the player in chat.
Example:
Centered Message
Send a chat centered message to the player.
Example:
Broadcast
Send a message to all online players.
Example:
Title
Sends a title to the player's screen.
Example:
Gamemode
Switches the player to game mode (gamemode:
SURVIVAL, ADVENTURE, CREATIVE, SPECTATOR).
Example:
Potion Effect
Grants a potion effect to the player.
Example:
Actionbar
Sends a message in the player's action bar.
Example:
Last updated
Was this helpful?