geforkt von SteamWar/BungeeCore
Fix Message
Dieser Commit ist enthalten in:
Ursprung
080a9a9e34
Commit
9047c8ef6a
@ -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