Actions

Actions, also known as commands are the muscles of menus. They are used as interactions for clicks, requirement denies and requirement successes.

Actions types

The full list of actions is as follows:

Tag

Description

[player] <command>

Executes a command as the player.

[console] <command>

Executes a command from the console.

[commandevent] <command>

Executes an unregistered command as the player. IMPORTANT: Currently, this action is simply an alias for the [player] action.

[placeholder] <papi-placeholders>

Parse placeholders for a player without any chat or console output from DeluxeMenus. IMPORTANT: If the placeholders have output, it is not hidden!

[message] <text>

Sends a message to the player. You can use placeholders and color/format codes here.

[broadcast] <text>

Sends a message to everyone online including the console.

You can use placeholders and color/format codes here.

[minimessage] <text>

Sends a message to a player using the more modern MiniMessage format!

[minibroadcast] <text>

Sends a message to everyone online using the more modern MiniMessage format!

[openguimenu] <menu-name> [arguments]

Opens another GUI from DeluxeMenus.

All arguments from the current menu are passed to the opened menu by default. If the opened menu also has arguments, they can be specified as well.

[connect] <server-name>

Connects the player to a server on the same BungeeCord. IMPORTANT: Requires BungeeMessaging. This is present on BungeeCord and WaterFall. On Velocity it might be disabled by default. Check your proxy config.

[close]

Closes the currently opened GUI.

[json] <JSON-text>

Send a json message to the player. Use this website to easily generate the JSON text.

[jsonbroadcast] <JSON-text>

Send a json message to everyone online. Use this website to easily generate the JSON text.

[refresh]

Refresh items in the current menu view. This updates the shown Items themselves.

[broadcastsound] <sound> <volume> <pitch>

Broadcast a sound to all players on the server.

[broadcastsoundworld] <sound> <volume> <pitch>

Broadcast a sound to all players in the world.

[sound] <sound> <volume> <pitch>

Play a sound for the player.

[takemoney] <amount>

Take a certain amount of money from the player. Vault is required for this action to work.

[givemoney] <amount>

Give a certain amount of money to the player. Vault is required for this action to work.(requires Vault)

[takeexp] #L

Take a certain amount of exp levels or points from a player. To give levels, add L at the end, otherwise remove it.

[giveexp] #L

Give a certain amount of exp levels or points to a player. To give levels, add L at the end, otherwise remove it

[givepermission] <perm.node>

Giv a permission to a player. Vault is required for this action to work.

[takepermission] <perm.node>

Take a permission from a player. Vault is required for this action work.

[meta] <set/remove/add/subtract/switch> <key> <type> <value>

Modifies the player's meta. add/subtract are for number types. switch is for boolean, it will swap it from true/false. Check here for more detail.

[chat] <message>

Send a message in chat as the player who this action got executed for.

Action tags

These tags can be added with the action (e.g. - '[message] example<delay=20>').

Tag

Description

<delay=<time>>

Executes the action after the specified delay (in ticks, 20 ticks = 1 second).

<chance=<chance>>

Sets a chance to execute the action. Can be from 0 to 100 where 0 means that the action will never execute and 100 means it will always execute.

Last updated

Was this helpful?