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, send messages, play sounds, set gamemodes, and much more.
Actions run from four places:
| Action Type | Description | Where |
|---|---|---|
| [ACTION_BAR] | Display a custom action bar to the player | Everywhere |
| [CLOSE_INVENTORY] | Close the player's current inventory | Everywhere |
| [SOUND] | Play a sound for the player | Everywhere |
| [TITLE] | Display a custom title message to the player | Everywhere |
| [DELAY] | A way to delay some actions | Everywhere |
| [MESSAGE] ⭐ | Display a custom message to the player | Everywhere |
| [COMMAND] ⭐ | Execute a command (console or player) | Everywhere |
| [GAMEMODE] ⭐ | Set the player's gamemode | Everywhere |
| [PARTICLE] ⭐ | Show particles around the player | Everywhere |
| [CATEGORY] | Open a category | Everywhere |
| [SHOP] | Open a shop's main menu | Everywhere |
| [ENCHANT] ⭐ | Enchant the item in the player's hand | Deny actions |
| [PERMISSION] ⭐ | Give or take a permission | Deny actions |
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.
The actions do not replace any placeholder themselves. In a menu button, the menu's own placeholders are filled in before the action runs, so a button in a category can use %player%. See Placeholders.
This action displays a custom action bar message to the player.
[ACTION_BAR] <message>
[ACTION_BAR] &aThanks for shopping
This action closes the inventory the player has open.
[CLOSE_INVENTORY]
[CLOSE_INVENTORY]
This action plays a sound for the player.
[SOUND] <sound>; <volume>; <pitch>
[SOUND] entity_experience_orb_pickup; 1; 1
This action displays a custom title message to the player. The timings are in ticks.
[TITLE] <title>; <subtitle>; <fadein>; <stay>; <fadeout>
[TITLE] &aCustom title; &7Custom Subtitle; 20; 40; 20
This action will make a short pause until it continues executing actions.
[DELAY] <seconds>
[DELAY] 3
[DELAY] 0.5
This action opens a category for the player, with the same checks as clicking it in the main menu: the shop's and the category's conditions apply and a disabled category does not open. A hidden category opens.
[CATEGORY] <category> or [CATEGORY] <shop>:<category>
[CATEGORY] ores
[CATEGORY] blocks:wool
Without a shop, the category is looked up in the shop the action runs in. Outside a shop menu, such as in a deny action, write the shop as well.
This action opens a shop's main menu for the player, with the same checks as its open command.
[SHOP] <shop>
[SHOP] blocks
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 executes a command either from the console or as a player.
[COMMAND] <target>; <command>
[COMMAND] console; give %player% diamond 1
[COMMAND] player; spawn
The target has to be either console or player. A leading / is optional.
This action sets the gamemode for the player.
[GAMEMODE] <gamemode>
[GAMEMODE] adventure
This action spawns particles at the player's location, seen only by that player.
[PARTICLE] <particle>; <count>; <offset x>; <offset y>; <offset z>
[PARTICLE] happy_villager; 20; 0.5; 1; 0.5
Particles that need a color, a block or an item, such as dust, are skipped.
This action adds an enchantment to the item in the player's main hand. Nothing happens when the hand is empty.
[ENCHANT] <enchantment>; <level>
[ENCHANT] sharpness; 5
This action gives the player a permission, or takes it away when remove is added. It needs Vault and a permissions plugin hooked into Vault.
[PERMISSION] <permission>; [remove]
[PERMISSION] essentials.fly
[PERMISSION] essentials.fly; remove
Oops... looks like the spiders padded through here
Add products to your cart and remove them from here Lets buy