mirror of
https://github.com/Zrips/Jobs.git
synced 2025-01-02 14:29:07 +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")));
|
+ ".info")));
|
||||||
int y = 1;
|
int y = 1;
|
||||||
for (int z = 0; z < info.size(); z++) {
|
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);
|
double income = info.get(z).getIncome(level, numjobs);
|
||||||
income = income + (income * boost.getFinal(CurrencyType.MONEY));
|
income = income + (income * boost.getFinal(CurrencyType.MONEY));
|
||||||
|
Loading…
Reference in New Issue
Block a user