Shopkeepers

Shopkeepers

2M Downloads

Hired Citizen not inheriting players name correctly

blablubbabcDEV opened this issue ยท 3 comments

commented

Migrated from: https://dev.bukkit.org/projects/shopkeepers/issues/350

Originally posted by Bob1nz (Oct 31, 2015):

What steps will reproduce the problem?
1.Create a citizen shopkeeper for hire
2.Player hires shopkeeper (Players names is GingerNinja2008)
3.Shopkeepers name shows as GingerNinja200 (missing the last character)What is the expected output? What do you see instead?
I expected the name to be GingerNinja2008. It shows as GingerNinja200 insteadWhat version of the product are you using?
Shopkeeper 1.65, Spigot 1.8.8-R0.1-Snapshot, Citizens 2.0.16-SNAPSHOT (b1267)Do you have an error log of what happened?
No error is produced in the logsPlease provide any additional information below.
The error may be to do with the length of the players name as I was able to hire the shopkeeper and my name was fine (only 6 characters)
I am able to do /npc rename GingerNinja2008 and it shows correctly then but i believe the intended result was for it to be done upon hiring.

commented

Originally closed by blablubbabc (Oct 31, 2015)

commented

Originally commented by blablubbabc (Oct 31, 2015):

Hm, from my testing it seems that citizens has a built-in limit of 16 characters somewhere (maybe here). The name 'GingerNinja2008' has 15 characters, however shopkeepers adds another 2 character for the color, so try the following command on a normal citizens npc and you should get the same result:

/npc rename &aGingerNinja2008

commented

Originally commented by Bob1nz (Oct 31, 2015):

I see.
Thank you for taking the time to look at this. I will just remove the prefix to bypass ths little issue then.
Thank again for all your help.