Dieser Commit ist enthalten in:
Ursprung
c0426c90ae
Commit
55fb0b8f47
@ -21,6 +21,7 @@ package de.steamwar.message;
|
|||||||
|
|
||||||
import de.steamwar.core.BountifulWrapper;
|
import de.steamwar.core.BountifulWrapper;
|
||||||
import de.steamwar.core.WorldOfColorWrapper;
|
import de.steamwar.core.WorldOfColorWrapper;
|
||||||
|
import de.steamwar.sql.UserConfig;
|
||||||
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;
|
||||||
import net.md_5.bungee.api.chat.HoverEvent;
|
import net.md_5.bungee.api.chat.HoverEvent;
|
||||||
@ -74,6 +75,10 @@ public class Message {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private Locale getLocale(Player player){
|
private Locale getLocale(Player player){
|
||||||
|
String dbLocale = UserConfig.getConfig(player.getUniqueId(), "language");
|
||||||
|
if (dbLocale != null) {
|
||||||
|
return new Locale(dbLocale);
|
||||||
|
}
|
||||||
return WorldOfColorWrapper.impl.getLocale(player);
|
return WorldOfColorWrapper.impl.getLocale(player);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren