Dieser Commit ist enthalten in:
Ursprung
bc5f099b3b
Commit
4bbdc93a44
@ -20,6 +20,7 @@
|
|||||||
package de.steamwar.message;
|
package de.steamwar.message;
|
||||||
|
|
||||||
import de.steamwar.core.BountifulWrapper;
|
import de.steamwar.core.BountifulWrapper;
|
||||||
|
import de.steamwar.core.Core;
|
||||||
import de.steamwar.sql.SteamwarUser;
|
import de.steamwar.sql.SteamwarUser;
|
||||||
import net.md_5.bungee.api.ChatMessageType;
|
import net.md_5.bungee.api.ChatMessageType;
|
||||||
import net.md_5.bungee.api.chat.ClickEvent;
|
import net.md_5.bungee.api.chat.ClickEvent;
|
||||||
@ -35,9 +36,6 @@ import java.util.Locale;
|
|||||||
import java.util.ResourceBundle;
|
import java.util.ResourceBundle;
|
||||||
|
|
||||||
public class Message {
|
public class Message {
|
||||||
|
|
||||||
private static final int JDK_VERSION = Integer.parseInt(System.getProperty("java.version").split("\\.")[1]);
|
|
||||||
|
|
||||||
private final String resourceBundleName;
|
private final String resourceBundleName;
|
||||||
private final ClassLoader classLoader;
|
private final ClassLoader classLoader;
|
||||||
|
|
||||||
@ -78,7 +76,7 @@ public class Message {
|
|||||||
|
|
||||||
private String fromRB(ResourceBundle bundle, String key) {
|
private String fromRB(ResourceBundle bundle, String key) {
|
||||||
String result = bundle.getString(key);
|
String result = bundle.getString(key);
|
||||||
if(JDK_VERSION < 9)
|
if(Core.getVersion() < 12)
|
||||||
result = new String(result.getBytes(StandardCharsets.ISO_8859_1), StandardCharsets.UTF_8);
|
result = new String(result.getBytes(StandardCharsets.ISO_8859_1), StandardCharsets.UTF_8);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren