diff options
author | Iaccidentally <coryhuckaby@gmail.com> | 2012-08-10 06:54:42 -0400 |
---|---|---|
committer | Iaccidentally <coryhuckaby@gmail.com> | 2012-08-10 06:54:42 -0400 |
commit | b81e834b4bdf7b2df57822b51bc49ad443fd3087 (patch) | |
tree | 5e949bfc09633b0015d246a2fee6eec673e8ce31 | |
parent | 38503e4dcfc2b820d50f983faf2e2b1377742d30 (diff) | |
download | Essentials-b81e834b4bdf7b2df57822b51bc49ad443fd3087.tar Essentials-b81e834b4bdf7b2df57822b51bc49ad443fd3087.tar.gz Essentials-b81e834b4bdf7b2df57822b51bc49ad443fd3087.tar.lz Essentials-b81e834b4bdf7b2df57822b51bc49ad443fd3087.tar.xz Essentials-b81e834b4bdf7b2df57822b51bc49ad443fd3087.zip |
fix msg and pay to accept 2 character names
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandmsg.java | 2 | ||||
-rw-r--r-- | 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."); } |