1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-29 14:05:25 +01:00

Update JobItems.java

This commit is contained in:
montlikadani 2018-08-16 18:17:31 +02:00 committed by GitHub
parent 976ff8a9f9
commit 5b70bff727
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,7 +70,7 @@ public class JobItems {
if (this.name != null) if (this.name != null)
meta.setDisplayName(ChatColor.translateAlternateColorCodes('&', name)); meta.setDisplayName(ChatColor.translateAlternateColorCodes('&', name));
if (lore != null) { if (lore != null) {
List<String> TranslatedLore = new ArrayList<String>(); List<String> TranslatedLore = new ArrayList<>();
for (String oneLore : lore) { for (String oneLore : lore) {
TranslatedLore.add(ChatColor.translateAlternateColorCodes('&', oneLore.replace("[player]", player.getName()))); TranslatedLore.add(ChatColor.translateAlternateColorCodes('&', oneLore.replace("[player]", player.getName())));
} }