Jobs is an optional feature that allows players to select skills as jobs to earn money while gaining XP.
Features:
To use jobs, the jobs.enabled option must be set to true in config.yml
Income for all XP sources is configured under jobs.income
If use_xp is true, sources will give a multiple of the XP gained based on default.income_per_xp
If use_expression is true, sources will give XP based on the result of default.expression
The available variables include xp, base_xp (value without multipliers), level (skill level), power, and skill_average
If use_final_xp is set to false, the calculation for income_per_xp will exclude all XP multipliers
Job selection is configured under jobs.selection
Players select a skill as a job using a new item in the level progression menu of a skill (gold_ingot by default)
If require_selection is set to false, players will gain income for all skills and selection will be hidden
The default_job_limit is the maximum number of skills that can be selected as jobs at the same time
The limit can be changed per-player using the auraskills.jobs.limit.[number] permission node (ex: auraskills.jobs.limit.4)
The disable_unselected_xp option will block gaining XP in all skills that are not active jobs if set to true
Income can also be configured per-source inside the sources files
Keys can be added to both the default section or an individual source
The following keys can be added to a source:
income_per_xp - The income to give per XP gained, works the same as the value in config.yml
income - A fixed decimal value for the money to give
income_expression - An expression to calculate the income, works the same as the expression in config.yml
Menu files will automatically update to add the new items and components to show job selection
However, you must manually add a new line - component: skill_job_active to the lore of the skill template in menus/skills.yml under - component: max_level
Everything will still work if this line isn't manually added, players just won't see the "Active Job" displayed in the skills menu
Jobs is an optional feature that allows players to select skills as jobs to earn money while gaining XP.
Features:
- component: skill_job_active
to the lore of the skill template in menus/skills.yml under- component: max_level