mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-06-12 13:53:54 +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:
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user