diff options
author | Iaccidentally <coryhuckaby@gmail.com> | 2012-06-12 22:33:12 -0400 |
---|---|---|
committer | Iaccidentally <coryhuckaby@gmail.com> | 2012-06-12 22:33:12 -0400 |
commit | cafdb919e49ab397286e7b45a1f7170348e30066 (patch) | |
tree | ce7e575fafb340d80ad49395e911706bd9be1927 | |
parent | 808f44839956b23beec64424f70d9b7245a80d75 (diff) | |
parent | 10d902e730581e579c4da5d4f2d0e2c2a5da07c4 (diff) | |
download | Essentials-cafdb919e49ab397286e7b45a1f7170348e30066.tar Essentials-cafdb919e49ab397286e7b45a1f7170348e30066.tar.gz Essentials-cafdb919e49ab397286e7b45a1f7170348e30066.tar.lz Essentials-cafdb919e49ab397286e7b45a1f7170348e30066.tar.xz Essentials-cafdb919e49ab397286e7b45a1f7170348e30066.zip |
Merge branch 'master' of https://github.com/essentials/Essentials
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandmsg.java | 4 | ||||
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandpay.java | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandmsg.java b/Essentials/src/com/earth2me/essentials/commands/Commandmsg.java index 2e1011e3b..2b7be976e 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandmsg.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandmsg.java @@ -21,11 +21,11 @@ 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().isEmpty() || args[1].trim().isEmpty()) + if (args.length < 2 || args[0].trim().length() < 3 || args[1].trim().isEmpty()) { throw new NotEnoughArgumentsException(); } - + String message = getFinalArg(args, 1); if (sender instanceof Player) { diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandpay.java b/Essentials/src/com/earth2me/essentials/commands/Commandpay.java index ed9a6bc29..08d024636 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandpay.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandpay.java @@ -22,7 +22,7 @@ public class Commandpay extends EssentialsCommand throw new NotEnoughArgumentsException(); } - if (args[0] == "") + if (args[0].trim().length() < 3) { throw new NotEnoughArgumentsException("You need to specify a player to pay."); } |