Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,14 @@ public boolean run(CommandSender sender, Player playerSender, Command cmd, Strin
{
return false;
}

final String tag = FUtil.rainbowify(ChatColor.stripColor(FUtil.colorize(StringUtils.join(args, " "))));

final String tag = ChatColor.stripColor(FUtil.colorize(StringUtils.join(args, " ")));

if(tag.length() > 20)
{
msg("That tag is too long (Max is 20 characters).);
Comment thread
Wild1145 marked this conversation as resolved.
Outdated
return true;
}

for (String word : Command_tag.FORBIDDEN_WORDS)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will need to be changed, assuming there is a merge of the 5.0.2 release as the forbidden tags system has changed. That's something I can change though once the PR goes in.

{
Expand All @@ -33,7 +39,7 @@ public boolean run(CommandSender sender, Player playerSender, Command cmd, Strin
}
}

plugin.pl.getPlayer(playerSender).setTag(tag);
plugin.pl.getPlayer(playerSender).setTag(FUtil.rainbowify(tag));

msg("Set tag to " + tag);

Expand Down