diff --git a/.gitignore b/.gitignore index 5683aec..1d6910d 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,5 @@ target/ EpicHoppers-API/EpicHoppers-API\.iml EpicHoppers-Plugin/EpicHoppers-Plugin\.iml + +*.iml diff --git a/EpicHoppers-Plugin/src/main/java/com/songoda/epichoppers/EpicHoppersPlugin.java b/EpicHoppers-Plugin/src/main/java/com/songoda/epichoppers/EpicHoppersPlugin.java index bdf668a..50aaa22 100644 --- a/EpicHoppers-Plugin/src/main/java/com/songoda/epichoppers/EpicHoppersPlugin.java +++ b/EpicHoppers-Plugin/src/main/java/com/songoda/epichoppers/EpicHoppersPlugin.java @@ -492,7 +492,9 @@ public class EpicHoppersPlugin extends JavaPlugin implements EpicHoppers { ItemMeta itemmeta = item.getItemMeta(); itemmeta.setDisplayName(TextComponent.formatText(Methods.formatName(level.getLevel(), true))); String line = getLocale().getMessage("general.nametag.lore"); - if (!line.equals("")) itemmeta.setLore(Arrays.asList(line)); + if (!line.equals("")) { + itemmeta.setLore(Arrays.asList(line.split("\n"))); + } item.setItemMeta(itemmeta); return item; }