Resolved Async & Bugged PlayerDeathEvent

Discussion in 'Bug Reports' started by SaltyAimbOtter, Oct 11, 2019.

  1. SaltyAimbOtter

    SaltyAimbOtter New Member

    Joined:
    Jul 15, 2018
    Messages:
    15
    Likes Received:
    1
    Version: 1.0.13-SNAPSHOT
    Paper 1.14.4 b199
    I gave myself an extremly large XP Count before and restarted the server while deleting my playerdata file from the plugins folder. Then I discovered the admin reset command and ran that too. Then I wanted to test the NoCD command and run that.
    I changed my class by using /mmocore admin class SaltyAimbOtter ROUGE and a PlayerDeathEvent was fired (i experienced the damage animation + the world unloaded). I logged out and in again and im still in a fully empty world since im propably in the "death" state, i cannot run any commands. The plugin also logged this message:
    [10:55:03] [Server thread/WARN]: SaltyAimbOtter tried to crash the server with a large health attribute

    Full Server LOG: https://pastebin.com/j1CaBm9G
    Relevant Exception + Context: https://pastebin.com/f443eenz
     
    #1
  2. SaltyAimbOtter

    SaltyAimbOtter New Member

    Joined:
    Jul 15, 2018
    Messages:
    15
    Likes Received:
    1
    This is really critical, I was stuck in this mode for quite some time. I relogged & killed myself through console and also restarted the server. Then i was able to interact with the world again + I could run commands. But my health was still 0 hearts. The finial solution was to change my class through admin commands. You can also see in the scoreboard on the right that my health and mana seems to be null since no value is displayed, as soon as I change my class the numbers appear again.
    You can see the fix and bug here:
    https://youtu.be/ugKA04JRsDM
     
    #2
  3. AriaSangarin

    AriaSangarin Developer
    Developer Premium Supporter Supporter Moderator Quality Assurance

    Joined:
    Mar 26, 2019
    Messages:
    3
    Likes Received:
    1
    The bug should be because the natural health regen included in MMOCore somehow managed to regenerate your health to a value below zero.
    I've added a check to make sure the mechanic doesn't set your health below zero so it should hopefully be fixed in the next dev build :)
     
    #3
  4. SaltyAimbOtter

    SaltyAimbOtter New Member

    Joined:
    Jul 15, 2018
    Messages:
    15
    Likes Received:
    1
    This bug is still present in v1.1-SNAPSHOT.
    I have added my whole config folder to this post, maybe it has to do with our config.
     

    Attached Files:

    #4
  5. SaltyAimbOtter

    SaltyAimbOtter New Member

    Joined:
    Jul 15, 2018
    Messages:
    15
    Likes Received:
    1
    This issue is still present as of 10.31.2019 (latest version used).
     
    #5
  6. SaltyAimbOtter

    SaltyAimbOtter New Member

    Joined:
    Jul 15, 2018
    Messages:
    15
    Likes Received:
    1
    The inheritence from stats.yml does not work. Thats the reason for this bug. When I add the max-health parameter the bug does not appear. Normally it should inherit the values from stats.yml as of the wiki (on github).
    "The "default" section with all of the player statistics under it handles the base statistics for all players and classes, unless it is overridden by a classes attributes specifically."
     
    #6

Share This Page