1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-15 11:04:29 +02:00

Fix mail sendall from console skipping first param

This commit is contained in:
KHobbits
2013-08-13 22:01:13 +01:00
parent 751d2dc755
commit a03535e307

View File

@@ -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;
}