mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-10-02 06:44:39 +00:00
parent
95ac4a4853
commit
d3c4c2ba6a
|
@ -81,7 +81,8 @@ public class Commandmail extends EssentialsCommand {
|
||||||
if (!user.isAuthorized("essentials.mail.sendall")) {
|
if (!user.isAuthorized("essentials.mail.sendall")) {
|
||||||
throw new Exception(tl("noPerm", "essentials.mail.sendall"));
|
throw new Exception(tl("noPerm", "essentials.mail.sendall"));
|
||||||
}
|
}
|
||||||
ess.runTaskAsynchronously(new SendAll(tl("mailFormat", user.getName(), FormatUtil.stripFormat(getFinalArg(args, 1)))));
|
ess.runTaskAsynchronously(new SendAll(tl("mailFormat", user.getName(),
|
||||||
|
FormatUtil.formatMessage(user, "essentials.mail", StringUtil.sanitizeString(FormatUtil.stripFormat(getFinalArg(args, 1)))))));
|
||||||
user.sendMessage(tl("mailSent"));
|
user.sendMessage(tl("mailSent"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue