mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
Change tag character limit.
Now max = 20 characters, not including color codes. TFM_Util.colorise() -> TFM_Util.colorize()
This commit is contained in:
parent
faeaa3aab7
commit
97b27cd7b4
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user