Change tag character limit.

Now max = 20 characters, not including color codes.
TFM_Util.colorise() -> TFM_Util.colorize()
This commit is contained in:
StevenLawson
2013-09-21 13:58:16 -04:00
parent faeaa3aab7
commit 97b27cd7b4
8 changed files with 12 additions and 12 deletions

View File

@ -15,7 +15,7 @@ public class Command_rawsay extends TFM_Command
{
if (args.length > 0)
{
TFM_Util.bcastMsg(TFM_Util.colorise(StringUtils.join(args, " ")));
TFM_Util.bcastMsg(TFM_Util.colorize(StringUtils.join(args, " ")));
}
return true;

View File

@ -78,7 +78,7 @@ public class Command_saconfig extends TFM_Command
}
else
{
playerMsg(ChatColor.stripColor(TFM_Util.colorise(superadmin.toString())));
playerMsg(ChatColor.stripColor(TFM_Util.colorize(superadmin.toString())));
}
return true;

View File

@ -63,9 +63,9 @@ public class Command_tag extends TFM_Command
return true;
}
if (args[0].length() > 15)
if (ChatColor.stripColor(TFM_Util.colorize(args[0])).length() > 20)
{
playerMsg("That tag is too long.");
playerMsg("That tag is too long [Max = 20 characters, not including color codes].");
return true;
}

View File

@ -311,7 +311,7 @@ public class TFM_CommandBlocker
}
else
{
response = ChatColor.GRAY + TFM_Util.colorise(this.message);
response = ChatColor.GRAY + TFM_Util.colorize(this.message);
}
sender.sendMessage(response);

View File

@ -489,7 +489,7 @@ public class TFM_PlayerData
}
else
{
this.tag = TFM_Util.colorise(tag) + ChatColor.WHITE;
this.tag = TFM_Util.colorize(tag) + ChatColor.WHITE;
}
}

View File

@ -993,7 +993,7 @@ public class TFM_Util
return COLOR_POOL.get(RANDOM.nextInt(COLOR_POOL.size()));
}
public static String colorise(String string)
public static String colorize(String string)
{
return ChatColor.translateAlternateColorCodes('&', string);
}