diff --git a/.gitignore b/.gitignore index 073fb4f..d6e3f8e 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,7 @@ EpicFarming\.iml EpicFarming-API/src/main/EpicFarming-API\.iml EpicFarming-Plugin/src/main/EpicFarming-Plugin\.iml + +EpicFarming-Parent\.iml + +*.iml diff --git a/EpicFarming-Plugin/src/main/java/com/songoda/epicfarming/EpicFarmingPlugin.java b/EpicFarming-Plugin/src/main/java/com/songoda/epicfarming/EpicFarmingPlugin.java index 86e466f..34bd34f 100644 --- a/EpicFarming-Plugin/src/main/java/com/songoda/epicfarming/EpicFarmingPlugin.java +++ b/EpicFarming-Plugin/src/main/java/com/songoda/epicfarming/EpicFarmingPlugin.java @@ -54,6 +54,7 @@ import java.io.InputStreamReader; import java.net.URL; import java.net.URLConnection; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.UUID; import java.util.function.Supplier; @@ -442,6 +443,8 @@ public class EpicFarmingPlugin extends JavaPlugin implements EpicFarming { ItemStack item = new ItemStack(Material.valueOf(EpicFarmingPlugin.getInstance().getConfig().getString("Main.Farm Block Material")), 1); ItemMeta meta = item.getItemMeta(); meta.setDisplayName(Arconix.pl().getApi().format().formatText(Methods.formatName(level.getLevel(), true))); + String line = getLocale().getMessage("general.nametag.lore"); + if (!line.equals("")) meta.setLore(Arrays.asList(line)); item.setItemMeta(meta); return item; } diff --git a/EpicFarming-Plugin/src/main/resources/en_US.lang b/EpicFarming-Plugin/src/main/resources/en_US.lang index b834a50..b4749ab 100644 --- a/EpicFarming-Plugin/src/main/resources/en_US.lang +++ b/EpicFarming-Plugin/src/main/resources/en_US.lang @@ -2,6 +2,7 @@ general.nametag.prefix = "&8[&6EpicFarming&8]" general.nametag.farm = "&eLevel %level% &fFarm" +general.nametag.lore = "" #Interface Messages