From 1f50bf15aa8323daad95bc22d07c920283be4f59 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Tue, 15 Mar 2022 19:05:08 +0100 Subject: [PATCH] Fix Message --- src/de/steamwar/bungeecore/Message.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/de/steamwar/bungeecore/Message.java b/src/de/steamwar/bungeecore/Message.java index 2ab6963..47d4b82 100644 --- a/src/de/steamwar/bungeecore/Message.java +++ b/src/de/steamwar/bungeecore/Message.java @@ -33,11 +33,12 @@ import java.io.InputStream; import java.text.DateFormat; import java.text.MessageFormat; import java.util.*; +import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.atomic.AtomicReference; public class Message { - private static Map bundles = new HashMap<>(); + private static Map bundles = new ConcurrentHashMap<>(); public static TextComponent parseToComponent(String message, boolean prefixed, CommandSender sender, Object... params){ return new TextComponent(TextComponent.fromLegacyText(parse(message, prefixed, locale(sender), params)));