Your cart is empty
Looks like the spiders padded through here. Pick a plugin and it will show up here. Continue shoppingActions run when a player clicks an NPC, walks up to it or picks a dialogue choice. They run in order, top to bottom. Each one is written as the type in brackets, then its arguments separated by ;.
| Action Type | Description |
|---|---|
| [MESSAGE] | Send a message to the player |
| [COMMAND] | Run a command as the console, the player or the player with OP |
| [SERVER] | Send the player to another server on the proxy |
| [PHOENIXSHOP] | Open a PhoenixShop shop or one of its categories |
| [TRADE] | Open the NPC's vanilla trade window |
| [GIVE_ITEM] | Give the player an item |
| [OPEN_MENU] | Open a DeluxeMenus, ChestCommands or TrMenu menu |
| [PERMISSION] | Stop here for players without a permission |
| [CONDITION] | Stop here for players who fail a condition |
| [RANDOM] | Run one action picked at random |
| [DIALOGUE] | Open a step of the NPC's dialogue |
| [SOUND] | Play a sound to the player |
| [ACTION_BAR] | Show a message in the action bar |
| [TITLE] | Show a title and subtitle |
| [DELAY] | Wait before running the next actions |
| [SPEAK] | Show a speech bubble above the NPC to the player |
| [TELEPORT] | Teleport the player to a location |
| [ITEM_COST] | Take items from the player, or stop when they have too few |
| [EXP_COST] | Take experience from the player, or stop when they have too little |
| [FOLLOW] | Make the NPC follow the player |
| [STOP_FOLLOW] | Make the NPC stop following |
| [WALK] | Make the NPC walk to an anchor, the player, home or a spot |
| [MYTHIC_SKILL] | Cast a MythicMobs skill from the NPC at the player |
| [MYTHIC_SPAWN] | Spawn a MythicMobs mob at the NPC |
Other plugins can add action types of their own through the API, such as the currency actions of PhoenixCurrencies.
[MESSAGE] <message>
[MESSAGE] &aWelcome, %player%!
op runs the command as the player with OP for that one command, and only when Allow Op Commands is on. It is off by default: while it is off, an op command is skipped and the console warns once per NPC. The editor's command builder only offers console and player.
[COMMAND] <console|player|op>; <command>
[COMMAND] console; give %player% diamond 1
Uses the BungeeCord plugin channel, so the proxy has to accept it. The server name is the one in the proxy's config.
[SERVER] <server>
[SERVER] survival
Opens a shop of PhoenixShop or PhoenixShop Lite, as if the player typed /phoenixshop open, so the shop's own permissions and conditions apply. With a category, that category opens straight away. Without PhoenixShop installed the action does nothing, and the console says so once per NPC. In the editor's Action Builder the shop is picked from a list when PhoenixShop is installed.
[PHOENIXSHOP] <shop>; [category]
[PHOENIXSHOP] shop; ores-and-gems
Opens a vanilla villager trade window with the NPC's trades. Without a shop name it uses the trades of this NPC; a name uses the trades saved under that name, the id of the NPC they were made on.
[TRADE] [shop]
[TRADE]
Gives the player the items, or drops them at their feet when the inventory is full. Give a material, or item: and the encoded item for an item exactly like one you held. With once each player gets it only one time.
[GIVE_ITEM] <amount>; <material|item:...>; [once]
[GIVE_ITEM] 1; BREAD; once
Opens a menu of another menu plugin for the player. auto uses the first of DeluxeMenus, ChestCommands and TrMenu that is installed. Add player to run the open command as the player instead of the console. Without the menu plugin the action does nothing, and the console says so once.
[OPEN_MENU] <auto|deluxemenus|chestcommands|trmenu>; <menu>; [console|player]
[OPEN_MENU] auto; spawn_menu
A player without the permission is told they are not allowed, and no later action runs. An empty permission lets everyone through.
[PERMISSION] <permission>
[PERMISSION] server.vip
A player who fails the condition gets the optional message, and no later action runs.
[CONDITION] <condition>; [message]
[CONDITION] %player_level% >= 10; &cCome back at level 10.
Picks one of the actions separated by || and runs it, then carries on with the rest of the list.
[RANDOM] <action> || <action> || ...
[RANDOM] [MESSAGE] &eHello! || [MESSAGE] &eNice day. || [MESSAGE] &eGo away.
Opens a step of the NPC's dialogue. Without a step, the start step opens.
[DIALOGUE] [step]
[DIALOGUE] step_2
[SOUND] <sound>; <volume>; <pitch>
[SOUND] ENTITY_VILLAGER_YES; 1; 1
[ACTION_BAR] <message>
[ACTION_BAR] &eRight-click again to buy.
Fade in, stay and fade out are in ticks.
[TITLE] <title>; <subtitle>; <fadein>; <stay>; <fadeout>
[TITLE] &6Welcome; &7to the server; 10; 40; 10
Waits that many seconds before the actions below it run. The rest of the list is dropped if the player leaves.
[DELAY] <seconds>
[DELAY] 1.5
Shows the text above the NPC's name to the player only, for the given seconds or the NPC's bubble time. Placeholders work, and \n starts a new line.
[SPEAK] <text>; [seconds]
[SPEAK] &eHello, %player%!; 5
The NPC follows the player who clicked it, see Movement. [STOP_FOLLOW] ends it and sends the NPC back to its route or home.
[FOLLOW], [STOP_FOLLOW]
The NPC walks to one of its anchors, player for the one who clicked, home, or x y z in its own world. The next actions run without waiting for it to arrive.
[WALK] <anchor | player | home | x y z>
[WALK] market
Needs MythicMobs. [MYTHIC_SKILL] casts a skill with the NPC as the origin and the player as the target. [MYTHIC_SPAWN] spawns a mob at the NPC, at level 1 unless a level is given.
[MYTHIC_SKILL] <skill>, [MYTHIC_SPAWN] <mob>; [level]
[MYTHIC_SPAWN] SkeletalKnight; 5
Works on Folia, across regions and worlds. The builder's Use Your Location button fills in where you stand.
[TELEPORT] <world>; <x>; <y>; <z>; [yaw]; [pitch]
[TELEPORT] world; 100.5; 64; -20.5; 90; 0
Takes the items from the inventory and off hand. A player with too few gets a message and no later action runs. Give a material to take any item of it, or item: and the encoded item for items exactly like one you held; the builder fills that in from your hand.
[ITEM_COST] <amount>; <material|item:...>
[ITEM_COST] 5; DIAMOND
Takes levels or experience points. A player with too little gets a message and no later action runs.
[EXP_COST] <amount>; <levels|points>
[EXP_COST] 10; levels
Before the first cost of a list runs, every cost up to the next [DELAY] is checked, so a player who can pay the first cost but not the second keeps both.
With PhoenixCurrencies installed, three more types sell, reward or check for any of its currencies. A take or require the player cannot afford stops the actions after it, so put it before the reward.
[CURRENCY_GIVE] <currency> <amount>, [CURRENCY_TAKE] <currency> <amount>, [CURRENCY_REQUIRE] <currency> <amount>
[CURRENCY_TAKE] gems 50
See the PhoenixCurrencies page NPCs & Holograms.
Your guide to the docs
Ask me anything about our plugins. I know these docs inside out, check the latest versions and changelogs, and can read your server logs.
Try asking
Your cart is empty
Looks like the spiders padded through here. Pick a plugin and it will show up here. Continue shopping