Resolved Async & Bugged PlayerDeathEvent

Discussion in 'Bug Reports' started by SaltyAimbOtter, Oct 11, 2019 at 2:03 AM.

  1. SaltyAimbOtter

    SaltyAimbOtter New Member

    Joined:
    Jul 15, 2018
    Messages:
    6
    Likes Received:
    0
    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:
    6
    Likes Received:
    0
    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 Quality Assurance

    Joined:
    Mar 26, 2019
    Messages:
    2
    Likes Received:
    0
    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

Share This Page