diff options
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandmail.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandmail.java b/Essentials/src/com/earth2me/essentials/commands/Commandmail.java index d72d37a3c..8dba44a6b 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandmail.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandmail.java @@ -118,9 +118,9 @@ public class Commandmail extends EssentialsCommand sender.sendMessage(_("mailSent")); return; } - else if (args.length >= 1 && "sendall".equalsIgnoreCase(args[0])) + else if (args.length >= 2 && "sendall".equalsIgnoreCase(args[0])) { - ess.runTaskAsynchronously(new SendAll("Server: " + getFinalArg(args, 2))); + ess.runTaskAsynchronously(new SendAll("Server: " + getFinalArg(args, 1))); sender.sendMessage(_("mailSent")); return; } |