marcelo-mason / SimpleClans

Full featured Clan system for Minecraft
http://dev.bukkit.org/server-mods/simpleclans/
50 stars 59 forks source link

Too long colored tag #598

Closed LoSCraft-Network closed 4 years ago

LoSCraft-Network commented 4 years ago

Good afternoon,

We've been having a problem that modifications to a clan tag aren't being saved, they rollback after a while and today I found this error on the console:

Here is the error: https://pastebin.com/gCQpt5cK

We're using SimpleClans verison 2.10.3 And tuinity git-tuinity-"6eb873c" (MC 1.15.2)

RoinujNosde commented 4 years ago

What tag was set?

LoSCraft-Network commented 4 years ago

&7&mI&c&l&mc&4&lD&c&l&mc&7&mI And it happens to other clans that try changing their tags

RoinujNosde commented 4 years ago

That's a long tag. I'm going to add a check for the tag size.

LoSCraft-Network commented 4 years ago

So if the tag is shortened it should work fine? How long should I tell him to keep the tag? Also, does the length include the color codes or only the letters?

RoinujNosde commented 4 years ago

Also, does the length include the color codes or only the letters?

Both.

So if the tag is shortened it should work fine? How long should I tell him to keep the tag?

Yes. 25 characters or less.

LoSCraft-Network commented 4 years ago

Thank you!

RoinujNosde commented 4 years ago

Add check on modtag command.