Project MMO

Project MMO

10M Downloads

Capture SKILL_UP Perks From Level Set Calls

Caltinor opened this issue ยท 0 comments

commented

Describe the bug
Increases in XP from play or commands trigger the SKILL_UP perk. However, any function which directly sets the XP (such as commands which set the level) will bypass this behavior.

Expected behavior
All changes in level, from all sources, triggers a SKILL_UP perk.

To Reproduce
Steps to reproduce the behavior:

  1. set up a perk
  2. add levels via command in that perk's skill
  3. see no change to perk

Versions:

  • Minecraft: 1.19.2
  • Loader: 43.1.20+
  • PMMO: 1.19-0.5.1

Additional context
Some cases may not warrant an update. Be mindful of those when implementing the fix.