mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-02-04 22:41:27 +01: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 org.bukkit.ChatColor;
|
||||
import org.bukkit.Material;
|
||||
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.name(fancyLocaleDisplayName(user, locale))
|
||||
localeIcon.name(ChatColor.WHITE + fancyLocaleDisplayName(user, locale))
|
||||
.clickHandler((panel, u, click, slot) -> {
|
||||
BentoBox.getInstance().getPlayers().setLocale(u.getUniqueId(), locale.toLanguageTag());
|
||||
u.sendMessage("language.edited", "[lang]", fancyLocaleDisplayName(u, locale));
|
||||
|
Loading…
Reference in New Issue
Block a user