From 6aa95e9f0597ac6f0f5ff73e72c73efe89c15a45 Mon Sep 17 00:00:00 2001 From: KingSimon <19822231+KingOfSquares@users.noreply.github.com> Date: Fri, 7 May 2021 19:11:31 +0200 Subject: [PATCH] Fix wrong usage of translatable syntax Signed-off-by: KingSimon <19822231+KingOfSquares@users.noreply.github.com> --- core/src/main/java/tc/oc/pgm/picker/PickerMatchModule.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/core/src/main/java/tc/oc/pgm/picker/PickerMatchModule.java b/core/src/main/java/tc/oc/pgm/picker/PickerMatchModule.java index 0d47885f19..7f97a2cb69 100644 --- a/core/src/main/java/tc/oc/pgm/picker/PickerMatchModule.java +++ b/core/src/main/java/tc/oc/pgm/picker/PickerMatchModule.java @@ -693,10 +693,8 @@ private void handleInventoryClick( if (cmm.getCanChangeClass(player.getId())) { cmm.setPlayerClass(player.getId(), cls); player.sendMessage( - text() - .append(translatable("match.class.ok", NamedTextColor.GOLD)) - .append(text(name, NamedTextColor.GREEN)) - .build()); + translatable( + "match.class.ok", NamedTextColor.GOLD, text(name, NamedTextColor.GREEN))); scheduleRefresh(player); } else { player.sendMessage(translatable("match.class.sticky", NamedTextColor.RED));