mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-04-02 09:55:59 +02:00
Added default white color to language names in the Language Panel
This will avoid the names to be italicized (which doesn't look that pretty).
This commit is contained in:
parent
7c7b66b6c0
commit
84664b6f50
@ -2,6 +2,7 @@ package world.bentobox.bentobox.panels;
|
|||||||
|
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
|
|
||||||
|
import org.bukkit.ChatColor;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
|
|
||||||
@ -35,7 +36,7 @@ public class LanguagePanel {
|
|||||||
localeIcon.icon(new ItemStack(Material.WHITE_BANNER, 1)); // Set to a blank banner.
|
localeIcon.icon(new ItemStack(Material.WHITE_BANNER, 1)); // Set to a blank banner.
|
||||||
}
|
}
|
||||||
|
|
||||||
localeIcon.name(fancyLocaleDisplayName(user, locale))
|
localeIcon.name(ChatColor.WHITE + fancyLocaleDisplayName(user, locale))
|
||||||
.clickHandler((panel, u, click, slot) -> {
|
.clickHandler((panel, u, click, slot) -> {
|
||||||
BentoBox.getInstance().getPlayers().setLocale(u.getUniqueId(), locale.toLanguageTag());
|
BentoBox.getInstance().getPlayers().setLocale(u.getUniqueId(), locale.toLanguageTag());
|
||||||
u.sendMessage("language.edited", "[lang]", fancyLocaleDisplayName(u, locale));
|
u.sendMessage("language.edited", "[lang]", fancyLocaleDisplayName(u, locale));
|
||||||
|
Loading…
Reference in New Issue
Block a user