mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-16 07:35:38 +01:00
Support mail chat formatting via essentials.mail
base permission. (#1611)
`essentials.mail.url`, `essentials.mail.color`, etc.
This commit is contained in:
parent
57e87d9d4e
commit
c14d565b56
@ -56,7 +56,8 @@ public class Commandmail extends EssentialsCommand {
|
||||
throw new Exception(tl("playerNeverOnServer", args[1]));
|
||||
}
|
||||
|
||||
final String mail = tl("mailFormat", user.getName(), StringUtil.sanitizeString(FormatUtil.stripFormat(getFinalArg(args, 2))));
|
||||
String mail = tl("mailFormat", user.getName(), StringUtil.sanitizeString(FormatUtil.stripFormat(getFinalArg(args, 2))));
|
||||
mail = FormatUtil.formatMessage(user, "essentials.mail", mail);
|
||||
if (mail.length() > 1000) {
|
||||
throw new Exception(tl("mailTooLong"));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user