1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-22 22:34:43 +02:00

fix msg and pay to accept 2 character names

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

View File

@@ -21,7 +21,7 @@ public class Commandmsg extends EssentialsCommand
@Override
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();
}

View File

@@ -23,7 +23,7 @@ public class Commandpay extends EssentialsCommand
}
//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.");
}