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

LadyCailin opened this issue ยท 4 comments

commented

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.

commented

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

commented

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.

commented

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

commented

Comment by dddeeefff on 2013-04-13 20:52:02 UTC

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