Maybe fix resource bundle #312
@ -44,7 +44,7 @@ public class Message {
|
||||
|
||||
@Override
|
||||
public boolean needsReload(String baseName, Locale locale, String format, ClassLoader loader, ResourceBundle bundle, long loadTime) {
|
||||
return System.currentTimeMillis() - loadTime > 60000; //Reload if older than 1 minute
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
@ -71,7 +71,9 @@ public class Message {
|
||||
private static String parse(String message, boolean prefixed, Locale locale, Object... params){
|
||||
if(locale == null)
|
||||
locale = Locale.getDefault();
|
||||
System.out.println("parse " + message + " " + locale);
|
||||
ResourceBundle resourceBundle = ResourceBundle.getBundle("de.steamwar.messages.BungeeCore", locale, CONTROL);
|
||||
System.out.println(resourceBundle);
|
||||
String pattern = "";
|
||||
if(prefixed)
|
||||
pattern = resourceBundle.getObject("PREFIX") + " ";
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren