mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-11 02:47:52 +01:00
Fix mail sendall from console skipping first param
This commit is contained in:
parent
f17ad2c4e7
commit
66eb9202ce
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user