Various scoreboard API functions should throw a (length?) exception when trying to asked to use a player name longer than 16 characters
LadyCailin opened this issue ยท 4 comments
CMDHELPER-2647 - Reported by dddeeefff on 2013-04-13 18:31:23 UTC
I have a script set up that adds entries to the sidebar that aren't actually player's names. To do this, I use set_score().
The problem is that this type of thing can disconnect everyone on a server and then stop them reconnecting if the player's name is larger than 16 characters.
Comment by wizjany on 2013-04-13 18:57:11 UTC
player names aren't allowed to be longer than 16 characters, try running in online mode
same with objectives - in fact bukkit should throw an exception if you try to add something longer than the limit
Comment by dddeeefff on 2013-04-13 19:03:15 UTC
This isn't connected with offline/online mode on bukkit servers. I use the scoreboard to display things like countdown timers and scores for teams - so even though minecraft thinks that the item on the sidebar is a player, it's not.
Comment by jb_aero on 2013-04-13 20:41:06 UTC
The following functions now throw LengthExceptions (in next build):
create_objective - Objective names longer than 16 chars
create_team - Team names longer than 16 chars
team_add_player - OfflinePlayer names longer than 16 chars
set_pscore - OfflinePlayer names longer than 16 chars