1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2026-02-19 10:22:58 +01:00

Changed how prefix length is calculated

This commit is contained in:
cerevisiae
2010-12-09 23:02:53 -06:00
parent 8085b43258
commit a6de66f825
2 changed files with 7 additions and 7 deletions

View File

@@ -194,7 +194,7 @@ public class vMinecraftCommands{
}
//Check if the prefix is too long
if(args[1].length() > 15)
if(vMinecraftChat.msgLength(args[1]) > 60)
{
vMinecraftChat.sendMessage(player, player, Colors.Rose
+ "The prefix you entered was too long.");
@@ -237,7 +237,7 @@ public class vMinecraftCommands{
}
if(args.length >= 2 && args[1] != null){
//Check if the prefix is too long
if(args[1].length() > 15)
if(vMinecraftChat.msgLength(args[1]) > 60)
{
vMinecraftChat.sendMessage(player, player, Colors.Rose
+ "The prefix you entered was too long.");
@@ -266,7 +266,7 @@ public class vMinecraftCommands{
}
//Check if the nickname is too long
if(args[1].length() > 30)
if(vMinecraftChat.msgLength(args[1]) > 85)
{
vMinecraftChat.sendMessage(player, player, Colors.Rose
+ "The suffix you entered was too long.");
@@ -292,7 +292,7 @@ public class vMinecraftCommands{
}
//Check if the nickname is too long
if(args[0].length() > 30)
if(vMinecraftChat.msgLength(args[1]) > 85)
{
vMinecraftChat.sendMessage(player, player, Colors.Rose
+ "The suffix you entered was too long.");
@@ -327,7 +327,7 @@ public class vMinecraftCommands{
}
//Check if the suffix is too long
if(args[1].length() > 20)
if(vMinecraftChat.msgLength(args[1]) > 60)
{
vMinecraftChat.sendMessage(player, player, Colors.Rose
+ "The suffix you entered was too long.");
@@ -358,7 +358,7 @@ public class vMinecraftCommands{
}
//Check if the suffix is too long
if(args[0].length() > 20)
if(vMinecraftChat.msgLength(args[1]) > 60)
{
vMinecraftChat.sendMessage(player, player, Colors.Rose
+ "The suffix you entered was too long.");