From b81e834b4bdf7b2df57822b51bc49ad443fd3087 Mon Sep 17 00:00:00 2001 From: Iaccidentally Date: Fri, 10 Aug 2012 06:54:42 -0400 Subject: [PATCH] fix msg and pay to accept 2 character names --- Essentials/src/com/earth2me/essentials/commands/Commandmsg.java | 2 +- Essentials/src/com/earth2me/essentials/commands/Commandpay.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandmsg.java b/Essentials/src/com/earth2me/essentials/commands/Commandmsg.java index fe39a1c04..6b6392cdb 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandmsg.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandmsg.java @@ -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(); } diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandpay.java b/Essentials/src/com/earth2me/essentials/commands/Commandpay.java index af7519f56..5ce131281 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandpay.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandpay.java @@ -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."); }