Describe the bug
This is related to #525 , but I don't think it's exactly the same issue.
When assigning a command perk to Event.SKILL_UP, the command fires on respawn as per #525 .
When assigning a command perk to Event.RESPAWN, the command does not fire on respawn.
This happens on a clean or an unclean pack, dedicated server or not.
Expected behavior
Respawn events should fire commands on respawn, and Skill_up events should not.
To Reproduce
Steps to reproduce the behavior:
See example pmmo-Perks.toml screenshot below.
respawn
See example chat log.
Screenshots
Versions:
Minecraft: 1.18.2
Loader: Forge-40.2.21
PMMO: 1.18.2-6.2.7
Additional context
I've now read the event handling, and still have no idea why this happens. Loggy logs nothing insightful. The most I can assume is that it's related to the command perk itself, and not any events, as other perks no longer fire incorrectly on respawn as per 93d6964e70091698f108fd7eedef36d6cc64539c
Describe the bug This is related to #525 , but I don't think it's exactly the same issue. When assigning a command perk to Event.SKILL_UP, the command fires on respawn as per #525 . When assigning a command perk to Event.RESPAWN, the command does not fire on respawn.
This happens on a clean or an unclean pack, dedicated server or not.
Expected behavior Respawn events should fire commands on respawn, and Skill_up events should not.
To Reproduce Steps to reproduce the behavior:
Screenshots![image](https://github.com/Caltinor/Project-MMO-2.0/assets/43189368/b646a94d-ac27-48fc-bdbd-e9ada599ab08)
Versions:
Additional context I've now read the event handling, and still have no idea why this happens. Loggy logs nothing insightful. The most I can assume is that it's related to the command perk itself, and not any events, as other perks no longer fire incorrectly on respawn as per 93d6964e70091698f108fd7eedef36d6cc64539c