Skip to content

[Bug]: seems like a event was not being catch #2

@Futureganteng

Description

@Futureganteng

Describe the bug

when there's a player on the server and the server has been shut down using stop command at the cli on server, i have found some error and bug

[2025-06-26 19:06:21.887 ERROR][LeviLamina] Error in Listenerll::event::player::PlayerDisconnectEvent[61] of HeadShow:
[2025-06-26 19:06:21.887 ERROR][LeviLamina] C++ Exception: std::out_of_range, from :
[2025-06-26 19:06:21.887 ERROR][LeviLamina] phmap at(): lookup non-existent key

To Reproduce

use Version: 1.21.80.3(ProtocolVersion 800) with LeviLamina-1.3.1, then just use the plugin as usually, 1 player stay online, then shutdown the server normally

Expected behavior

no error and the plugin dint show any error

Screenshots

No response

Platform

Windows 10 Home

BDS Version

1.21.80

LeviLamina Version

1.3.1

Version

No response

Additional context

sorry for submitting a new issue lately, thank you for your work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions