SteamWar/SpigotCore
Archiviert
13
0

Fix Java 8 Properties
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
Lixfel 2022-06-13 21:09:47 +02:00
Ursprung bc5f099b3b
Commit 4bbdc93a44

Datei anzeigen

@ -20,6 +20,7 @@
package de.steamwar.message;
import de.steamwar.core.BountifulWrapper;
import de.steamwar.core.Core;
import de.steamwar.sql.SteamwarUser;
import net.md_5.bungee.api.ChatMessageType;
import net.md_5.bungee.api.chat.ClickEvent;
@ -35,9 +36,6 @@ import java.util.Locale;
import java.util.ResourceBundle;
public class Message {
private static final int JDK_VERSION = Integer.parseInt(System.getProperty("java.version").split("\\.")[1]);
private final String resourceBundleName;
private final ClassLoader classLoader;
@ -78,7 +76,7 @@ public class Message {
private String fromRB(ResourceBundle bundle, String 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);
return result;
}