Forgot to use variables to substitute

This commit is contained in:
spacerocket62 2021-10-31 20:27:36 -07:00
parent 097e5feab1
commit c47e42256e

View file

@ -49,7 +49,7 @@ public class JoinListener implements Listener
String guildTagStripped = GUtil.removeColorCodes(guild.getTag());
if (tfmTagStripped != null && guildTagStripped != null)
{
int length = GUtil.removeColorCodes(tfmTag).length() + GUtil.removeColorCodes(guild.getTag()).length();
int length = tfmTagStripped.length() + guildTagStripped.length();
if (length > maxLength)
{
TFGuilds.getPlugin().getTfmBridge().clearTag(player);