From a50c09bd9ba0f659148b1f4bf24a419e8ce96a21 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Mon, 9 Dec 2019 17:44:48 +0100 Subject: [PATCH] Optimising Formatcode --- SpigotCore_Main/src/de/steamwar/core/events/ChattingEvent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SpigotCore_Main/src/de/steamwar/core/events/ChattingEvent.java b/SpigotCore_Main/src/de/steamwar/core/events/ChattingEvent.java index fd95b2e..8c197c2 100644 --- a/SpigotCore_Main/src/de/steamwar/core/events/ChattingEvent.java +++ b/SpigotCore_Main/src/de/steamwar/core/events/ChattingEvent.java @@ -8,6 +8,6 @@ public class ChattingEvent implements Listener { @EventHandler private void onChat(AsyncPlayerChatEvent event) { - event.setFormat("§eLokal §r"+ event.getPlayer().getDisplayName() + "§8» §7" + event.getMessage()); + event.setFormat("§eLokal §r"+ event.getPlayer().getDisplayName() + "§8»§7 %2$s"); } } -- 2.39.2