Leveling up one skill triggers commands/functions for all skills with command/function perks
KatoNamus opened this issue ยท 0 comments
Describe the bug
After adding functions to pmmo-Perks.toml (to give Minecraft XP) whenever one skill is leveled up it triggers the commands/functions for ALL skills with a level-up function/command perk
Expected behavior
Only the leveled up skill's function/command should run.
To Reproduce
Steps to reproduce the behavior:
- Go to pmmo-Perks.toml
- Add a command (e.g. /xp add @p 1 level) to a few skills. E.g. [[Perks.For_Event.SKILL_UP.agility]], [[Perks.For_Event.SKILL_UP.magic]], etc
- Start Minecraft, run "/pmmo admin @p add agility 1 level" (or whichever skill you've added a command/function to)
- Note that instead of gaining only a single level, you've gained the same amount of levels as the skills that you've added command/function perk to.
- This doesn't seem to happen if you have 0xp in one of those skills with a level up perk command/function though.
Screenshots
If applicable, add screenshots to help explain your problem.
Versions:
- Minecraft: 1.19.2
- Loader: Forge 43.3.0 (observed with previous versions of Forge as well)
- PMMO: pmmo-1.19.2-3.3.5.jar
Additional context
My testing/dev "environment" Minecraft had 3 mods in:
pmmo-1.19.2-3.3.5.jar
pmmo_compat_1.19.2_v19.5.jar
globalxp-1.19-1.10.2.jar
PS: thanks for the previous help