I fully realize this may be a silly bug report; a crash like this is likely fully normal for a development snapshot (and this one in particular even useful while debugging the scoreboard). Making sure it doesn't slip through to final release regardless.
If you send two scoreboard objective-creation packets to the client with the same objective names, the game will crash with an IllegalArgumentException referencing the duplicate objective
Quick edit here: The game also crashes if an objective-deletion packet with a name unknown to the client is received, however the game does not crash if you send a scoreboard display packet with a name unknown to the client.
Linked issues
is duplicated by 6
relates to 1
Attachments
Comments 11
Please do not mark issues as private, unless your bug report is a security issue containing information that may compromise your server/client.
Unless you can replicate this in vanilla, there is no issue. It is your duty, if you're sending custom packets, to remember what the client knows about already.
This is 100% absolutely a bug with Bukkit. They should be tracking which players know about which objectives, and not send two different objectives with the same name - doing so can either cause huge screwups, or I can make it catch this early and tell you about it (this is what it does now). I think the catching it earlier is the best solution.
I will report this to bukkit, but to be clear I am using the supported Bukkit scoreboard API, and I still get this crash. This may be paritally due to the fact we are using a proxy as well, so I'm sure this may neither be a bukkit bug.
If it's not Bukkit then it could very well be your proxy. At the end of the day, something is telling the client "I have a whole new thing called xxxx" and this is not allowed and would cause big bugs if we had not caught it first, so it's working as intended on our end.
Note: