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:
parent
9940e9f3c6
commit
979fcb7195
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user