mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-02 10:36:39 +00:00
Add mailFormat TL key.
This commit is contained in:
parent
d9fbd68529
commit
4fd026ff99
25 changed files with 29 additions and 5 deletions
|
@ -59,7 +59,7 @@ public class Commandmail extends EssentialsCommand
|
||||||
throw new Exception(tl("playerNeverOnServer", args[1]));
|
throw new Exception(tl("playerNeverOnServer", args[1]));
|
||||||
}
|
}
|
||||||
|
|
||||||
final String mail = user.getName() + ": " + StringUtil.sanitizeString(FormatUtil.stripFormat(getFinalArg(args, 2)));
|
final String mail = tl("mailFormat", user.getName(), StringUtil.sanitizeString(FormatUtil.stripFormat(getFinalArg(args, 2))));
|
||||||
if (mail.length() > 1000)
|
if (mail.length() > 1000)
|
||||||
{
|
{
|
||||||
throw new Exception(tl("mailTooLong"));
|
throw new Exception(tl("mailTooLong"));
|
||||||
|
@ -90,7 +90,7 @@ public class Commandmail extends EssentialsCommand
|
||||||
{
|
{
|
||||||
throw new Exception(tl("noPerm", "essentials.mail.sendall"));
|
throw new Exception(tl("noPerm", "essentials.mail.sendall"));
|
||||||
}
|
}
|
||||||
ess.runTaskAsynchronously(new SendAll(user.getName() + ": " + FormatUtil.stripFormat(getFinalArg(args, 1))));
|
ess.runTaskAsynchronously(new SendAll(tl("mailFormat", user.getName(), FormatUtil.stripFormat(getFinalArg(args, 1)))));
|
||||||
user.sendMessage(tl("mailSent"));
|
user.sendMessage(tl("mailSent"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -121,13 +121,13 @@ public class Commandmail extends EssentialsCommand
|
||||||
{
|
{
|
||||||
throw new Exception(tl("playerNeverOnServer", args[1]));
|
throw new Exception(tl("playerNeverOnServer", args[1]));
|
||||||
}
|
}
|
||||||
u.addMail("Server: " + getFinalArg(args, 2));
|
u.addMail(tl("mailFormat", "Server", getFinalArg(args, 2)));
|
||||||
sender.sendMessage(tl("mailSent"));
|
sender.sendMessage(tl("mailSent"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if (args.length >= 2 && "sendall".equalsIgnoreCase(args[0]))
|
else if (args.length >= 2 && "sendall".equalsIgnoreCase(args[0]))
|
||||||
{
|
{
|
||||||
ess.runTaskAsynchronously(new SendAll("Server: " + getFinalArg(args, 1)));
|
ess.runTaskAsynchronously(new SendAll(tl("mailFormat", "Server", getFinalArg(args, 1))));
|
||||||
sender.sendMessage(tl("mailSent"));
|
sender.sendMessage(tl("mailSent"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -139,7 +139,7 @@ public class Commandmail extends EssentialsCommand
|
||||||
{
|
{
|
||||||
throw new Exception(tl("playerNeverOnServer", args[0]));
|
throw new Exception(tl("playerNeverOnServer", args[0]));
|
||||||
}
|
}
|
||||||
u.addMail("Server: " + getFinalArg(args, 1));
|
u.addMail(tl("mailFormat", "Server", getFinalArg(args, 1)));
|
||||||
sender.sendMessage(tl("mailSent"));
|
sender.sendMessage(tl("mailSent"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -554,3 +554,4 @@ mailSentTo=\u00a7c{0}\u00a76 has been sent the following mail\:
|
||||||
mailMessage={0}
|
mailMessage={0}
|
||||||
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
||||||
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
||||||
|
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
||||||
|
|
|
@ -555,3 +555,4 @@ mailMessage={0}
|
||||||
|
|
||||||
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
||||||
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
||||||
|
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
||||||
|
|
|
@ -555,3 +555,4 @@ mailMessage={0}
|
||||||
|
|
||||||
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
||||||
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
||||||
|
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
||||||
|
|
|
@ -555,3 +555,4 @@ mailMessage={0}
|
||||||
|
|
||||||
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
||||||
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
||||||
|
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
||||||
|
|
|
@ -554,3 +554,4 @@ mailSentTo=\u00a7c{0}\u00a76 has been sent the following mail\:
|
||||||
mailMessage={0}
|
mailMessage={0}
|
||||||
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
||||||
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
||||||
|
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
||||||
|
|
|
@ -555,3 +555,4 @@ mailMessage={0}
|
||||||
|
|
||||||
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
||||||
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
||||||
|
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
||||||
|
|
|
@ -555,3 +555,4 @@ mailMessage={0}
|
||||||
|
|
||||||
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
||||||
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
||||||
|
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
||||||
|
|
|
@ -555,3 +555,4 @@ mailMessage={0}
|
||||||
|
|
||||||
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
||||||
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
||||||
|
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
||||||
|
|
|
@ -555,3 +555,4 @@ mailMessage={0}
|
||||||
|
|
||||||
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
||||||
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
||||||
|
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
||||||
|
|
|
@ -555,3 +555,4 @@ mailMessage={0}
|
||||||
|
|
||||||
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
||||||
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
||||||
|
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
||||||
|
|
|
@ -555,3 +555,4 @@ mailMessage={0}
|
||||||
|
|
||||||
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
||||||
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
||||||
|
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
||||||
|
|
|
@ -555,3 +555,4 @@ mailMessage={0}
|
||||||
|
|
||||||
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
||||||
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
||||||
|
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
||||||
|
|
|
@ -555,3 +555,4 @@ mailMessage={0}
|
||||||
|
|
||||||
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
||||||
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
||||||
|
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
||||||
|
|
|
@ -555,3 +555,4 @@ mailMessage={0}
|
||||||
|
|
||||||
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
||||||
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
||||||
|
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
||||||
|
|
|
@ -555,3 +555,4 @@ mailMessage={0}
|
||||||
|
|
||||||
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
||||||
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
||||||
|
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
||||||
|
|
|
@ -555,3 +555,4 @@ mailMessage={0}
|
||||||
|
|
||||||
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
||||||
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
||||||
|
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
||||||
|
|
|
@ -555,3 +555,4 @@ mailMessage={0}
|
||||||
|
|
||||||
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
||||||
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
||||||
|
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
||||||
|
|
|
@ -555,3 +555,4 @@ mailMessage={0}
|
||||||
|
|
||||||
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
||||||
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
||||||
|
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
||||||
|
|
|
@ -555,3 +555,4 @@ mailMessage={0}
|
||||||
|
|
||||||
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
||||||
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
||||||
|
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
||||||
|
|
|
@ -555,3 +555,4 @@ mailMessage={0}
|
||||||
|
|
||||||
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
||||||
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
||||||
|
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
||||||
|
|
|
@ -555,3 +555,4 @@ mailMessage={0}
|
||||||
|
|
||||||
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
||||||
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
||||||
|
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
||||||
|
|
|
@ -555,3 +555,4 @@ mailMessage={0}
|
||||||
|
|
||||||
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
||||||
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
||||||
|
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
||||||
|
|
|
@ -555,3 +555,4 @@ mailMessage={0}
|
||||||
|
|
||||||
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
||||||
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
||||||
|
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
||||||
|
|
|
@ -555,3 +555,4 @@ mailMessage={0}
|
||||||
|
|
||||||
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
||||||
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
||||||
|
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue