1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-12-30 21:07:48 +01:00

Fix for entity names not being translated in GUI

This commit is contained in:
Zrips 2017-06-23 11:20:51 +03:00
parent 9940e9f3c6
commit 979fcb7195

View File

@ -197,7 +197,11 @@ public class GuiManager {
+ ".info")));
int y = 1;
for (int z = 0; z < info.size(); z++) {
String itemName = Jobs.getNameTranslatorManager().Translate(info.get(z).getName(), info.get(z));
String itemName = info.get(z).getName().toLowerCase().replace('_', ' ');
itemName = Character.toUpperCase(itemName.charAt(0)) + itemName.substring(1);
itemName = Jobs.getNameTranslatorManager().Translate(itemName, info.get(z));
itemName = org.bukkit.ChatColor.translateAlternateColorCodes('&', itemName);
double income = info.get(z).getIncome(level, numjobs);
income = income + (income * boost.getFinal(CurrencyType.MONEY));