mirror of
https://github.com/Zrips/Jobs.git
synced 2025-03-10 05:39:12 +01:00
Lets check translatable word split lenghtin case its wrong
This commit is contained in:
parent
ab70033fb2
commit
12232cb9fa
@ -362,7 +362,6 @@ public class ItemManager {
|
||||
}
|
||||
|
||||
public enum CMIEntityType {
|
||||
|
||||
PLAYER(-1, "Player"),
|
||||
DROPPED_ITEM(1, "Item"),
|
||||
EXPERIENCE_ORB(2, "Experience Orb"),
|
||||
|
@ -37,6 +37,7 @@ import org.bukkit.inventory.meta.ItemMeta;
|
||||
import com.gamingmesh.jobs.Jobs;
|
||||
import com.gamingmesh.jobs.CMILib.ItemManager.CMIMaterial;
|
||||
import com.gamingmesh.jobs.resources.jfep.Parser;
|
||||
import com.gamingmesh.jobs.stuff.ChatColor;
|
||||
import com.gamingmesh.jobs.stuff.Debug;
|
||||
import com.gamingmesh.jobs.container.CurrencyLimit;
|
||||
import com.gamingmesh.jobs.container.CurrencyType;
|
||||
@ -941,7 +942,7 @@ public class GeneralConfigManager {
|
||||
|
||||
guiFiller = tmat == null ? CMIMaterial.GREEN_STAINED_GLASS_PANE.newItemStack() : tmat.newItemStack();
|
||||
ItemMeta meta = guiFiller.getItemMeta();
|
||||
meta.setDisplayName(" ");
|
||||
meta.setDisplayName(ChatColor.RED + "");
|
||||
guiFiller.setItemMeta(meta);
|
||||
|
||||
// c.getW().addComment("Schedule.Boost.Enable", "Do you want to enable scheduler for global boost");
|
||||
|
@ -146,9 +146,9 @@ public class NameTranslatorManager {
|
||||
|
||||
String split = one.split("-")[0];
|
||||
String id = split.contains(":") ? split.split(":")[0] : split;
|
||||
String meta = split.contains(":") ? split.split(":")[1] : "";
|
||||
String meta = split.contains(":") && split.split(":").length > 1 ? split.split(":")[1] : "";
|
||||
|
||||
String MCName = one.split("-")[1];
|
||||
String MCName = one.contains("-") && one.split("-").length > 1 ? one.split("-")[1] : "";
|
||||
String Name = ItemFile.getConfig().getString("ItemList." + one);
|
||||
ListOfNames.add(new NameList(id, meta, Name, MCName));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user