Cannot use '%'char, replace with tag instead

This commit is contained in:
Xephi 2015-12-21 15:19:10 +01:00
parent 61735b4941
commit 8f09893337
2 changed files with 6 additions and 6 deletions

View File

@ -51,7 +51,7 @@ public class SendMailSSL {
final String subject = Settings.getMailSubject;
final String smtp = Settings.getmailSMTP;
final String password = Settings.getmailPassword;
final String mailText = Settings.getMailText.replace("%playername%", auth.getNickname()).replace("%servername%", plugin.getServer().getServerName()).replace("%generatedpass%", newPass);
final String mailText = Settings.getMailText.replace("<playername />", auth.getNickname()).replace("<servername />", plugin.getServer().getServerName()).replace("<generatedpass />", newPass);
final String mail = auth.getEmail();
Bukkit.getScheduler().runTaskAsynchronously(plugin, new Runnable() {

View File

@ -1,16 +1,16 @@
<h1>
Dear %playername%,
Dear <playername />,
</h1>
<p>
This is your new AuthMe password for the server %servername%:
%generatedpass%
<generatedpass />
%image%
<image />
Do not forget to change password after login!
/changepassword %generatedpass% newPassword'
/changepassword <generatedpass /> newPassword'
See you on %servername%!
See you on <servername />!
</p>