diff --git a/Essentials/src/com/earth2me/essentials/ManagedFile.java b/Essentials/src/com/earth2me/essentials/ManagedFile.java index 6d86ea52c..ab36e2c11 100644 --- a/Essentials/src/com/earth2me/essentials/ManagedFile.java +++ b/Essentials/src/com/earth2me/essentials/ManagedFile.java @@ -1,8 +1,5 @@ package com.earth2me.essentials; -import net.ess3.api.IEssentials; -import org.bukkit.Bukkit; - import java.io.*; import java.math.BigInteger; import java.security.DigestInputStream; @@ -13,6 +10,9 @@ import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.logging.Level; +import java.util.stream.Collectors; +import net.ess3.api.IEssentials; +import org.bukkit.Bukkit; import static com.earth2me.essentials.I18n.tl; @@ -38,7 +38,7 @@ public class ManagedFile { try { copyResourceAscii("/" + filename, file); } catch (IOException ex) { - Bukkit.getLogger().log(Level.SEVERE, tl("itemsCsvNotLoaded"), ex); + Bukkit.getLogger().log(Level.SEVERE, tl("itemsCsvNotLoaded", filename), ex); } } } diff --git a/Essentials/src/messages.properties b/Essentials/src/messages.properties index c25610306..70eb34d0f 100644 --- a/Essentials/src/messages.properties +++ b/Essentials/src/messages.properties @@ -224,7 +224,7 @@ itemNotEnough1=\u00a74You do not have enough of that item to sell. itemNotEnough2=\u00a76If you meant to sell all of your items of that type, use\u00a7c /sell itemname\u00a76. itemNotEnough3=\u00a7c/sell itemname -1\u00a76 will sell all but one item, etc. itemsConverted=\u00a76Converted all items into blocks. -itemsCsvNotLoaded=Could not load items.csv\! +itemsCsvNotLoaded=Could not load {0}\! itemSellAir=You really tried to sell Air? Put an item in your hand. itemsNotConverted=\u00a74You have no items that can be converted into blocks. itemSold=\u00a7aSold for \u00a7c{0} \u00a7a({1} {2} at {3} each).