fix msg and pay to accept 2 character names

This commit is contained in:
Iaccidentally 2012-08-10 06:54:42 -04:00
parent a92eb4dee6
commit 3e203d193c
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ public class Commandmsg extends EssentialsCommand
@Override @Override
public void run(Server server, CommandSender sender, String commandLabel, String[] args) throws Exception public void run(Server server, CommandSender sender, String commandLabel, String[] args) throws Exception
{ {
if (args.length < 2 || args[0].trim().length() < 3 || args[1].trim().isEmpty()) if (args.length < 2 || args[0].trim().length() < 2 || args[1].trim().isEmpty())
{ {
throw new NotEnoughArgumentsException(); throw new NotEnoughArgumentsException();
} }

View File

@ -23,7 +23,7 @@ public class Commandpay extends EssentialsCommand
} }
//TODO: TL this //TODO: TL this
if (args[0].trim().length() < 3) if (args[0].trim().length() < 2)
{ {
throw new NotEnoughArgumentsException("You need to specify a player to pay."); throw new NotEnoughArgumentsException("You need to specify a player to pay.");
} }