
Various scoreboard API functions should throw a (length?) exception when trying to asked to use a player name longer than 16 characters
LadyCailinBot opened this issue ยท 4 comments
CMDHELPER-2647 - Reported by dddeeefff
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
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
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
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