AuraDevelopmentTeam / BungeeChat2

A new way to send private, global or help messages and to do much more with chatting network wide!
https://www.spigotmc.org/threads/bungee-chat.93960
GNU General Public License v3.0
65 stars 43 forks source link

NoSuchElementException on ChatLeave #172

Closed EscolarProgramming closed 3 years ago

EscolarProgramming commented 4 years ago

Issue Description:

Sometimes the exception "java.util.NoSuchElementException: No value present" gets thrown, most times on BungeeChatLeaveEvent but also on ChatEvent (like in the stacktrace I've appended below).

Steps to reproduce:

Unfortunately I don't know how to reproduce it, it seems to be randomly.

Affected Versions:

Your most recent log or stack trace file where the issue was present:

https://pastebin.com/SqZbhnmb

BrainStone commented 4 years ago

That typically happens when the associated player got deleted from the internal storage.
Which in turn only really happens when another error appears.

So could you please check for errors from when that player joined until they left.

BrainStone commented 3 years ago

With the recent PR that should have been fixed alltogether. If it still happens, let me know!