Oops... looks like the spiders padded through here
Add products to your cart and remove them from here Lets buyActions that are used on our plugin
In our system's configuration files, you can utilize various action types to perform different actions. These actions enable you to interact with players, broadcast messages, play sounds, set gamemodes, and much more.
| Action List | Description |
|---|---|
| [MESSAGE] | Display a custom message to the player |
| [TITLE] | Display a custom title message to the player |
| [ACTION_BAR] | This is a custom action bar |
| [CLOSE_INVENTORY] | Close the player's current inventory |
| [COMMAND] | Execute a command (console or player) |
| [GAMEMODE] | Set the player's gamemode |
| [POTION_EFFECT] | Apply a potion effect to the player |
| [SOUND] | Play a sound for the player |
| [DELAY] | A way to delay some actions |
| [OPEN] | Opens the crate |
| [GOBACK] | Return to the previous menu |
Explore each action type to learn more about its syntax and usage. Examples are provided to illustrate how to use these actions effectively in your system or application.
This action sends a custom message to the player.
[MESSAGE] <message>
[MESSAGE] &aThis is a custom message
Semicolons inside the message are kept, so you do not have to escape them.
This action displays a custom title message to the player.
[TITLE] <title>; <subtitle>; <fadein>; <stay>; <fadeout>
[TITLE] &aCustom title;&7Custom Subtitle; 20; 40; 20
This action displays a custom action bar message to the player.
[ACTION_BAR] <message>
[ACTION_BAR] This is a custom action bar
This action closes the inventory the player has open.
[CLOSE_INVENTORY]
[CLOSE_INVENTORY]
This action executes a command either from the console or as a player.
[COMMAND] <target>; <command>
[COMMAND] console; mvtp %player% world [COMMAND] player; warp spawn
The target has to be either console or player. A leading / is optional.
The action itself only replaces %player%. Any other placeholder is passed through untouched, so it will only work if the command you are running resolves it.
This action sets the gamemode for the player.
[GAMEMODE] <gamemode>
[GAMEMODE] adventure
This action gives the player a potion effect.
[POTION_EFFECT] <effect>; <duration>; <amplifier>
[POTION_EFFECT] speed; 5; 2
The duration is in seconds. Any negative value gives an effect that never runs out, so [POTION_EFFECT] night_vision; -1; 0 is a permanent one.
This action plays a sound for the player.
[SOUND] <sound>; <volume>; <pitch>
[SOUND] entity_arrow_hit_player; 1; 1
This action will make a short pause until it continues executing actions.
[DELAY] <seconds>
[DELAY] 3
[DELAY] 0.5
Decimals are accepted, so you can pause for less than a second.
This action opens the crate whose preview menu the player currently has open. It takes no arguments, and it only works from a rewards preview menu, which makes it the way to add an "open now" button to a preview.
[OPEN]
[OPEN]
This action returns the player to the menu they came from. If there is no previous menu, the inventory is closed instead. It takes no arguments.
[GOBACK]
[GOBACK]
Oops... looks like the spiders padded through here
Add products to your cart and remove them from here Lets buy