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>
[broadcast] <text>
Sends a message to everyone online including the console.
[minimessage] <text>
[minibroadcast] <text>
[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>
[jsonbroadcast] <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>
[givemoney] <amount>
[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>
[takepermission] <perm.node>
[meta] <set/remove/add/subtract/switch> <key> <type> <value>
[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.
To note is that chance tags are per action. So if you have 2 action, both with a 50% chance, there won't be just 1 of the actions that execute but instead it will could be none, 1 or both.
Last updated
Was this helpful?