CommandHelper

CommandHelper

46.5k Downloads

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

commented

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.

commented

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

commented

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.

commented

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

commented

Comment by dddeeefff

Great turnaround! Thanks. Love the level of dev work that's going into CommandHelper.