Skip to content

Commit

Permalink
Fix invalid usage of String.format on paper implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
TBlueF authored Nov 16, 2023
1 parent 665af55 commit c69b31c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public synchronized void onPlayerLeave(PlayerQuitEvent evt) {

@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
public synchronized void onPlayerChat(AsyncChatEvent evt) {
String message = String.format(PlainTextComponentSerializer.plainText().serialize(evt.message()));
String message = PlainTextComponentSerializer.plainText().serialize(evt.message());
for (ServerEventListener listener : listeners) listener.onChatMessage(Text.of(message));
}

Expand Down

0 comments on commit c69b31c

Please sign in to comment.