Fix wrong filename in ManagedFile error message

This commit is contained in:
md678685 2019-12-22 23:53:36 +00:00
parent 8ccb70d07d
commit 6a7cf39548
2 changed files with 5 additions and 5 deletions

View File

@ -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);
}
}
}

View File

@ -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).