From 6536ff58cc61bdbdf02c9006e335b3660df3d292 Mon Sep 17 00:00:00 2001 From: Florian CUNY Date: Wed, 3 Jan 2018 16:09:54 +0100 Subject: [PATCH] Fixed user#getTranslation() not replacing variables --- src/main/java/us/tastybento/bskyblock/api/commands/User.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/us/tastybento/bskyblock/api/commands/User.java b/src/main/java/us/tastybento/bskyblock/api/commands/User.java index 0002f6d29..ecb181091 100644 --- a/src/main/java/us/tastybento/bskyblock/api/commands/User.java +++ b/src/main/java/us/tastybento/bskyblock/api/commands/User.java @@ -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]); } }