mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-02-09 08:51:40 +01:00
Fixed user#getTranslation() not replacing variables
This commit is contained in:
parent
5aa3594f42
commit
6536ff58cc
@ -160,7 +160,7 @@ public class User {
|
|||||||
String translation = plugin.getLocalesManager().get(this, reference);
|
String translation = plugin.getLocalesManager().get(this, reference);
|
||||||
if (variables.length > 1) {
|
if (variables.length > 1) {
|
||||||
for (int i = 0; i < variables.length; i+=2) {
|
for (int i = 0; i < variables.length; i+=2) {
|
||||||
translation.replace(variables[i], variables[i+1]);
|
translation = translation.replace(variables[i], variables[i+1]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user