Actions
About 264 wordsLess than 1 minute
Actions run once, immediately after a node is unlocked.
console_command
action:
console_command:
- 'eco give %player% 500'Runs the command as the console.
- If the command contains
%player%, it is executed once for every member of the company, including the employer, employees and custom positions. Offline members are included by name. - Without
%player%, the command runs once. - There is no other placeholder:
%company%,%position%and similar placeholders are not replaced. - Your economy or command plugin must accept console commands and offline player names.
disable_expertise
action:
disable_expertise: [zombie_loot_1, zombie_loot_2]Disables the listed nodes of the same focus.
- A disabled node is hidden from the menu and stops applying its effect.
- Its learned state is kept, and it still satisfies prerequisites of other nodes.
- Disabling an already disabled node logs a warning and stops the remaining ids in the list from being processed.
enable_expertise
action:
enable_expertise: [zombie_loot_1, zombie_loot_2]Brings disabled nodes back.
- The node must currently be disabled. Enabling an active node logs a warning and stops the remaining ids from being processed.
- After it is enabled, the node appears in the menu again and its effect applies immediately.
set_price_group
action:
set_price_group: mob-companySets the price group used by the company internal store. The multiplier of each group is configured in prices.yml:
prices.yml
multipliers:
company:
normal: 1.2
ore-company: 1.3
mob-company: 1.56The group is reset to normal when the company changes focus, so the node has to be learned again after a switch. The groups and their multipliers are configured in Internal Store Configuration.