Fix translate args

This commit is contained in:
Jesse Boyd
2019-12-25 02:34:20 +00:00
parent 50c19f5a1c
commit 9efdd886c5
13 changed files with 139 additions and 53 deletions

View File

@ -170,9 +170,7 @@ public class BukkitPlayer extends AbstractPlayerActor {
@Override
public void print(Component component) {
Component prefix = TranslatableComponent.of("fawe.prefix");
component = TextComponent.builder().append(prefix).append(component).build();
component = Caption.color(component, getLocale());
component = Caption.color(TranslatableComponent.of("prefix", component), getLocale());
TextAdapter.sendComponent(player, component);
}