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

@ -1,5 +1,5 @@
#Thu, 19 Sep 2013 21:24:16 -0400 #Sat, 21 Sep 2013 13:56:10 -0400
program.VERSION=3.2 program.VERSION=3.2
program.BUILDNUM=599 program.BUILDNUM=600
program.BUILDDATE=09/19/2013 09\:24 PM program.BUILDDATE=09/21/2013 01\:56 PM

View File

@ -1,3 +1,3 @@
#Build Number for ANT. Do not edit! #Build Number for ANT. Do not edit!
#Thu Sep 19 21:24:16 EDT 2013 #Sat Sep 21 13:56:10 EDT 2013
build.number=600 build.number=601

View File

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

View File

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

View File

@ -63,9 +63,9 @@ public class Command_tag extends TFM_Command
return true; 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; return true;
} }

View File

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

View File

@ -489,7 +489,7 @@ public class TFM_PlayerData
} }
else 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())); 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); return ChatColor.translateAlternateColorCodes('&', string);
} }