mirror of
https://github.com/songoda/EpicHoppers.git
synced 2025-02-16 11:51:54 +01:00
Merge branch 'lore' into 'Legacy'
Multiple lore lines See merge request Songoda/EpicHoppers!15 (cherry picked from commit e0eb80b92d1a48160e92592a23c0656efb143b59) fd4feb2a Multiple lore lines
This commit is contained in:
parent
985a0c0b11
commit
d87a9966eb
2
.gitignore
vendored
2
.gitignore
vendored
@ -10,3 +10,5 @@ target/
|
||||
EpicHoppers-API/EpicHoppers-API\.iml
|
||||
|
||||
EpicHoppers-Plugin/EpicHoppers-Plugin\.iml
|
||||
|
||||
*.iml
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user