From 88c8787293033c02807016d0b471ce7013a9c59e Mon Sep 17 00:00:00 2001 From: cerevisiae Date: Thu, 9 Dec 2010 21:41:44 -0600 Subject: [PATCH] Minor bug with error checking with /prefix --- vMinecraftCommands.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/vMinecraftCommands.java b/vMinecraftCommands.java index f32f0954b..29410a191 100644 --- a/vMinecraftCommands.java +++ b/vMinecraftCommands.java @@ -184,14 +184,9 @@ public class vMinecraftCommands{ //if the player can prefix others if(player.canUseCommand("/prefixother")){ - if(args.length < 2){ - vMinecraftChat.sendMessage(player, player, Colors.Rose - + "Usage is /prefix [Player] [Name]"); - return EXIT_SUCCESS; - } //Check if the nickname is too long - if(args[1].length() > 20) + if(args[1].length() > 10) { vMinecraftChat.sendMessage(player, player, Colors.Rose + "The prefix you entered was too long."); @@ -209,7 +204,7 @@ public class vMinecraftCommands{ //Check if there are enough arguments if(args.length < 2){ - vMinecraftChat.sendMessage(player, player, Colors.Rose + "Usage is /prefix [Player] [Color Code] "); + vMinecraftChat.sendMessage(player, player, Colors.Rose + "Usage is /prefix [Color Code] "); player.sendMessage(Colors.DarkPurple + "Example: /prefix " + player.getName() + " e ^0[^a<3^0]"); vMinecraftChat.sendMessage(player, player, Colors.DarkPurple + "This would produce a name like... " + Colors.Black + "[" + Colors.LightGreen + "<3" + Colors.Black + "]" + Colors.Yellow + player.getName()); return EXIT_SUCCESS;