Skip to content

Commit

Permalink
Fix wrong usage of translatable syntax
Browse files Browse the repository at this point in the history
Signed-off-by: KingSimon <[email protected]>
  • Loading branch information
KingOfSquares authored and Electroid committed May 13, 2021
1 parent 959d473 commit 6aa95e9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions core/src/main/java/tc/oc/pgm/picker/PickerMatchModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 6aa95e9

Please sign in to comment.