Fixed user#getTranslation() not replacing variables

This commit is contained in:
Florian CUNY 2018-01-03 16:09:54 +01:00
parent 5aa3594f42
commit 6536ff58cc

View File

@ -160,7 +160,7 @@ public class User {
String translation = plugin.getLocalesManager().get(this, reference);
if (variables.length > 1) {
for (int i = 0; i < variables.length; i+=2) {
translation.replace(variables[i], variables[i+1]);
translation = translation.replace(variables[i], variables[i+1]);
}
}