Archiviert
1
0

Maybe fix resource bundle

Dieser Commit ist enthalten in:
yoyosource 2022-03-15 11:40:20 +01:00
Ursprung 23f8e687ad
Commit bd9e3e5d94

Datei anzeigen

@ -41,6 +41,11 @@ public class Message {
public long getTimeToLive(String arg0, Locale arg1) {
return 60000; //Cache only 1 minute
}
@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
}
};
public static TextComponent parseToComponent(String message, boolean prefixed, CommandSender sender, Object... params){