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 | 3e203d193c087b5d7519ab7c3664ee3307565da4 (patch) | |
tree | 623588791592880fcd20220db477f6677cae3949 | |
parent | a92eb4dee6936a502a003533f6909231d0df4ffa (diff) | |
download | Essentials-3e203d193c087b5d7519ab7c3664ee3307565da4.tar Essentials-3e203d193c087b5d7519ab7c3664ee3307565da4.tar.gz Essentials-3e203d193c087b5d7519ab7c3664ee3307565da4.tar.lz Essentials-3e203d193c087b5d7519ab7c3664ee3307565da4.tar.xz Essentials-3e203d193c087b5d7519ab7c3664ee3307565da4.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."); } |