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
Actions 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 |
| [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 |
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.
[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
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
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.
Oops... looks like the spiders padded through here
Add products to your cart and remove them from here Lets buy