Skip to content

Commit

Permalink
Cannot use '%'char, replace with tag instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Xephi committed Dec 21, 2015
1 parent 61735b4 commit 8f09893
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/main/java/fr/xephi/authme/SendMailSSL.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public void main(final PlayerAuth auth, final String newPass) {
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() {

Expand Down
10 changes: 5 additions & 5 deletions src/main/resources/email.html
Original file line number Diff line number Diff line change
@@ -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>

0 comments on commit 8f09893

Please sign in to comment.