Archiviert
1
0
Dieser Commit ist enthalten in:
yoyosource 2022-03-15 19:05:08 +01:00
Ursprung 1fd34f8ccd
Commit 1f50bf15aa

Datei anzeigen

@ -33,11 +33,12 @@ import java.io.InputStream;
import java.text.DateFormat; import java.text.DateFormat;
import java.text.MessageFormat; import java.text.MessageFormat;
import java.util.*; import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.atomic.AtomicReference; import java.util.concurrent.atomic.AtomicReference;
public class Message { public class Message {
private static Map<String, SteamwarResourceBundle> bundles = new HashMap<>(); private static Map<String, SteamwarResourceBundle> bundles = new ConcurrentHashMap<>();
public static TextComponent parseToComponent(String message, boolean prefixed, CommandSender sender, Object... params){ public static TextComponent parseToComponent(String message, boolean prefixed, CommandSender sender, Object... params){
return new TextComponent(TextComponent.fromLegacyText(parse(message, prefixed, locale(sender), params))); return new TextComponent(TextComponent.fromLegacyText(parse(message, prefixed, locale(sender), params)));