From 0f47914c4d3616438a275d7e38482b8894b20af3 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Fri, 4 Feb 2022 12:59:47 +0100 Subject: [PATCH] Hotfix message Signed-off-by: Lixfel --- src/de/steamwar/bungeecore/Message.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/de/steamwar/bungeecore/Message.java b/src/de/steamwar/bungeecore/Message.java index f755cdf..a54694e 100644 --- a/src/de/steamwar/bungeecore/Message.java +++ b/src/de/steamwar/bungeecore/Message.java @@ -64,6 +64,8 @@ public class Message { } private static String parse(String message, boolean prefixed, Locale locale, Object... params){ + if(locale == null) + locale = Locale.getDefault(); ResourceBundle resourceBundle = ResourceBundle.getBundle("de.steamwar.messages.BungeeCore", locale, CONTROL); String pattern = ""; if(prefixed)